Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM") translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8107/0.8107, allocations: 89.6 MB / 380.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003969, allocations: 9.938 kB / 459.9 MB, free: 24.44 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1468, allocations: 68.82 MB / 0.5163 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.6411/0.788, allocations: 277.6 MB / 0.7874 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.5105/1.299, allocations: 33.5 MB / 0.8201 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003201/1.302, allocations: 28.72 kB / 0.8201 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.005822/1.308, allocations: 1.38 MB / 0.8215 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02814/1.336, allocations: 6.479 MB / 0.8278 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.01334/1.349, allocations: 3.043 MB / 0.8308 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.006626/1.356, allocations: 2.179 MB / 0.8329 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002387/1.358, allocations: 0.8796 MB / 0.8338 GB, free: 23.14 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005865/1.364, allocations: 1.73 MB / 0.8354 GB, free: 23.12 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/1.368, allocations: 1.058 MB / 0.8365 GB, free: 23.12 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0005999/1.369, allocations: 96.44 kB / 0.8366 GB, free: 23.11 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03987/1.408, allocations: 13.89 MB / 0.8501 GB, free: 23.1 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002106/1.411, allocations: 0.5919 MB / 0.8507 GB, free: 23.1 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002802/1.413, allocations: 495.7 kB / 0.8512 GB, free: 23.07 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02068/1.434, allocations: 6.246 MB / 0.8573 GB, free: 22.19 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/1.434, allocations: 0 / 0.8573 GB, free: 22.19 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.104e-06/1.434, allocations: 0 / 0.8573 GB, free: 22.19 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001221/1.434, allocations: 0 / 0.8573 GB, free: 22.19 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.01201/1.446, allocations: 3.833 MB / 0.861 GB, free: 19.84 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/1.446, allocations: 10.44 kB / 0.861 GB, free: 19.84 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/1.448, allocations: 252.5 kB / 0.8613 GB, free: 19.72 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002677/1.45, allocations: 1.168 MB / 0.8624 GB, free: 19.18 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/1.45, allocations: 143.9 kB / 0.8626 GB, free: 19.17 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004304/1.451, allocations: 204.9 kB / 0.8628 GB, free: 19.16 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004969/1.456, allocations: 3.045 MB / 0.8657 GB, free: 18.49 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.061e-05/1.456, allocations: 0 / 0.8657 GB, free: 18.49 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001806/1.456, allocations: 79.25 kB / 0.8658 GB, free: 18.49 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002559/1.456, allocations: 187.5 kB / 0.866 GB, free: 18.45 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004217/1.461, allocations: 3.346 MB / 0.8693 GB, free: 17.96 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01743/1.478, allocations: 12.52 MB / 0.8815 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003103/1.481, allocations: 1.635 MB / 0.8831 GB, free: 8.902 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003893/1.485, allocations: 3.85 MB / 0.8868 GB, free: 4.559 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.536e-05/1.485, allocations: 56.3 kB / 0.8869 GB, free: 4.516 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=196): time 8.706e-06/1.485, allocations: 0 / 0.8869 GB, free: 4.516 MB / 0.6231 GB Notification: Performance of matching and sorting (n=200): time 0.0155/1.501, allocations: 8.36 MB / 0.8951 GB, free: 1.781 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/1.501, allocations: 103.1 kB / 0.8952 GB, free: 1.688 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/1.502, allocations: 1.168 MB / 0.8963 GB, free: 1.227 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0003007/1.503, allocations: 58.27 kB / 0.8964 GB, free: 1.188 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005935/1.503, allocations: 0.7563 MB / 0.8971 GB, free: 0.7188 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006729/1.504, allocations: 0.6754 MB / 0.8977 GB, free: 144 kB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/1.504, allocations: 34.91 kB / 0.8978 GB, free: 136 kB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001822/1.504, allocations: 368.7 kB / 0.8981 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0015/1.506, allocations: 1.025 MB / 0.8991 GB, free: 15.16 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/1.507, allocations: 1.139 MB / 0.9002 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/1.509, allocations: 1.17 MB / 0.9014 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/1.509, allocations: 0 / 0.9014 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.00474/1.514, allocations: 3.019 MB / 0.9043 GB, free: 11.74 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/1.514, allocations: 4 kB / 0.9043 GB, free: 11.74 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/1.514, allocations: 2.625 kB / 0.9043 GB, free: 11.74 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/1.515, allocations: 475.2 kB / 0.9048 GB, free: 11.37 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/1.516, allocations: 331.4 kB / 0.9051 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00706/1.523, allocations: 5.936 MB / 0.9109 GB, free: 6.418 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/1.525, allocations: 149.1 kB / 0.9111 GB, free: 6.301 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000374/1.526, allocations: 122.5 kB / 0.9112 GB, free: 6.199 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 160 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001044/1.527, allocations: 0.4969 MB / 0.9117 GB, free: 5.895 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003992/1.527, allocations: 169.9 kB / 0.9118 GB, free: 5.727 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007504/1.535, allocations: 4.655 MB / 0.9164 GB, free: 2.336 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.315e-05/1.535, allocations: 23.95 kB / 0.9164 GB, free: 2.312 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/1.535, allocations: 8 kB / 0.9164 GB, free: 2.305 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/1.535, allocations: 11.95 kB / 0.9164 GB, free: 2.293 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01097/1.546, allocations: 6.301 MB / 0.9226 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/1.546, allocations: 10.33 kB / 0.9226 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/1.547, allocations: 302.7 kB / 0.9229 GB, free: 13.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/1.549, allocations: 492.4 kB / 0.9233 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002996/1.549, allocations: 84.2 kB / 0.9234 GB, free: 13.34 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007522/1.557, allocations: 5.951 MB / 0.9292 GB, free: 8.656 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/1.557, allocations: 10.42 kB / 0.9292 GB, free: 8.648 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007748/1.564, allocations: 4.834 MB / 0.9339 GB, free: 5.371 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009769/1.565, allocations: 287.7 kB / 0.9342 GB, free: 5.105 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003945/1.566, allocations: 42.73 kB / 0.9343 GB, free: 5.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/1.567, allocations: 142.1 kB / 0.9344 GB, free: 4.977 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003535/1.568, allocations: 168 kB / 0.9346 GB, free: 4.828 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002398/1.568, allocations: 116 kB / 0.9347 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001324/1.569, allocations: 0.923 MB / 0.9356 GB, free: 4.082 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.51e-07/1.569, allocations: 0 / 0.9356 GB, free: 4.082 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00578/1.575, allocations: 1.635 MB / 0.9372 GB, free: 2.648 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (160): * Single equations (assignments): 148 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005344/1.58, allocations: 1.977 MB / 0.9391 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.005757/1.586, allocations: 3.235 MB / 0.9423 GB, free: 14.63 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.586, allocations: 0 / 0.9423 GB, free: 14.63 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003345/1.589, allocations: 1.989 MB / 0.9442 GB, free: 13.21 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003649/1.593, allocations: 0.6808 MB / 0.9449 GB, free: 12.67 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008696/1.602, allocations: 5.508 MB / 0.9502 GB, free: 7.758 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/1.603, allocations: 1.672 MB / 0.9519 GB, free: 6.133 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.002726/1.606, allocations: 1.07 MB / 0.9529 GB, free: 5.066 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006422/1.607, allocations: 206 kB / 0.9531 GB, free: 4.883 MB / 0.67 GB Notification: Performance of SimCode: time 1.873e-06/1.607, allocations: 0 / 0.9531 GB, free: 4.883 MB / 0.67 GB Error: Internal error Expression.listToArray2: Number of elements in the list does not match the dimension size. Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics).