Dear Sir or Madam,
I'm trying to put together an array of components similar to what I am reading in the tutorial. I'm starting off with a circuit model with two resistors, trying understand how to code properly before using larger arrays and the TLine models provided. Using the two files attached, I'm getting 2 errors that reads as follows below. Is there something I am missing? The error looks like it does not know what p or n is. But I thought that the dependencies of the resistor, p and n, will be known since the resistor has an extends...OnePort line in the Basic.mo file. Can someone please help me in understanding how to code the two array component model properly? Many thanks in advance for the advice.
Clayton
********************************************
JVM started.
Traceback (most recent call last):
File "C:\Users\Clayton_Young\Documents\projects\closed_loop\modelica\tlinetest.py", line 9, in <module>
fmu_name = compile_fmu("tlinetest1","tlinetest.mo") #model of interest in the file
File "C:\JModelica.org-1.6\Python\jmodelica\fmi.py", line 130, in compile_fmu
comp.compile_FMU(class_name, file_name, target, compile_to)
File "C:\JModelica.org-1.6\Python\jmodelica\compiler.py", line 516, in compile_FMU
self._handle_exception(ex)
File "C:\JModelica.org-1.6\Python\jmodelica\compiler.py", line 699, in _handle_exception
raise CompilerError(errors,compliance_errors,warnings)
jmodelica.compiler.CompilerError:
2 error(s), 0 compliance error(s) and 1 warning(s) found:
Error: in file 'tlinetest.mo':
Semantic error at line 25, column 16:
Cannot find class or component declaration for n
Error: in file 'tlinetest.mo':
Semantic error at line 27, column 21:
Cannot find class or component declaration for p
Warning: in file 'C:\JModelica.org-1.6\ThirdParty\MSL\Modelica\Electrical\Analog\Basic.mo':
At line 67, column 40:
Assuming 'each' for the binding expression to the variable R