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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009649/0.0009649, allocations: 99.55 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.001001/0.001002, allocations: 177.3 kB / 15.94 MB, free: 228 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.483/1.483, allocations: 223.2 MB / 239.9 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7574/0.7574, allocations: 89.65 MB / 380.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003965, allocations: 15.72 kB / 460 MB, free: 24.33 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1583, allocations: 68.84 MB / 0.5165 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.6647/0.823, allocations: 277.6 MB / 0.7875 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.4735/1.297, allocations: 33.51 MB / 0.8202 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002563/1.299, allocations: 27.62 kB / 0.8203 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004667/1.304, allocations: 1.378 MB / 0.8216 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02387/1.328, allocations: 6.477 MB / 0.8279 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.01027/1.338, allocations: 3.042 MB / 0.8309 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005513/1.344, allocations: 2.18 MB / 0.833 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00219/1.346, allocations: 0.8861 MB / 0.8339 GB, free: 23.17 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005612/1.351, allocations: 1.726 MB / 0.8356 GB, free: 23.15 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002673/1.354, allocations: 1.063 MB / 0.8366 GB, free: 23.15 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0004/1.354, allocations: 95.19 kB / 0.8367 GB, free: 23.15 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03279/1.387, allocations: 13.89 MB / 0.8503 GB, free: 23.14 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001835/1.389, allocations: 0.5896 MB / 0.8509 GB, free: 23.14 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001636/1.391, allocations: 493.6 kB / 0.8513 GB, free: 23.11 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02112/1.412, allocations: 6.245 MB / 0.8574 GB, free: 22.16 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/1.412, allocations: 1.469 kB / 0.8574 GB, free: 22.16 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.735e-06/1.412, allocations: 0 / 0.8574 GB, free: 22.16 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 9.967e-05/1.412, allocations: 0 / 0.8574 GB, free: 22.16 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.01266/1.425, allocations: 3.84 MB / 0.8612 GB, free: 19.81 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/1.425, allocations: 13.72 kB / 0.8612 GB, free: 19.8 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006442/1.426, allocations: 282.6 kB / 0.8615 GB, free: 19.71 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004834/1.426, allocations: 253.6 kB / 0.8617 GB, free: 19.59 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002028/1.428, allocations: 1.164 MB / 0.8628 GB, free: 19.05 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.695e-05/1.428, allocations: 141.9 kB / 0.863 GB, free: 19.04 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/1.428, allocations: 204.9 kB / 0.8632 GB, free: 19.04 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003915/1.432, allocations: 3.046 MB / 0.8661 GB, free: 18.36 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/1.432, allocations: 1.969 kB / 0.8661 GB, free: 18.36 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001644/1.433, allocations: 78.27 kB / 0.8662 GB, free: 18.36 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002024/1.433, allocations: 188.5 kB / 0.8664 GB, free: 18.32 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004547/1.437, allocations: 3.346 MB / 0.8697 GB, free: 17.83 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01423/1.452, allocations: 12.52 MB / 0.8819 GB, free: 9.027 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/1.454, allocations: 1.634 MB / 0.8835 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002809/1.457, allocations: 3.853 MB / 0.8873 GB, free: 4.422 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/1.457, allocations: 59.41 kB / 0.8873 GB, free: 4.379 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=196): time 5.51e-06/1.457, allocations: 0 / 0.8873 GB, free: 4.379 MB / 0.6231 GB Notification: Performance of matching and sorting (n=200): time 0.01422/1.471, allocations: 8.356 MB / 0.8955 GB, free: 1.648 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.99e-05/1.471, allocations: 99.61 kB / 0.8956 GB, free: 1.555 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/1.473, allocations: 1.161 MB / 0.8967 GB, free: 0.9844 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001612/1.473, allocations: 58.27 kB / 0.8968 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005474/1.474, allocations: 0.7613 MB / 0.8975 GB, free: 484 kB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005314/1.474, allocations: 0.6754 MB / 0.8982 GB, free: 15.89 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/1.474, allocations: 34.56 kB / 0.8982 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001366/1.474, allocations: 374.2 kB / 0.8985 GB, free: 15.54 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/1.476, allocations: 1.024 MB / 0.8995 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/1.477, allocations: 1.143 MB / 0.9007 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/1.479, allocations: 1.164 MB / 0.9018 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/1.479, allocations: 0 / 0.9018 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005015/1.484, allocations: 3.019 MB / 0.9047 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/1.484, allocations: 4 kB / 0.9047 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/1.484, allocations: 0 / 0.9047 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/1.485, allocations: 478 kB / 0.9052 GB, free: 11.12 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/1.487, allocations: 331.9 kB / 0.9055 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007028/1.494, allocations: 5.942 MB / 0.9113 GB, free: 6.168 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/1.496, allocations: 141.5 kB / 0.9115 GB, free: 6.055 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003975/1.496, allocations: 124.5 kB / 0.9116 GB, free: 5.953 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.001016/1.497, allocations: 0.5029 MB / 0.9121 GB, free: 5.641 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003815/1.498, allocations: 165.9 kB / 0.9122 GB, free: 5.477 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007018/1.505, allocations: 4.655 MB / 0.9168 GB, free: 2.082 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.742e-05/1.505, allocations: 22.44 kB / 0.9168 GB, free: 2.062 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/1.505, allocations: 8 kB / 0.9168 GB, free: 2.055 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.271e-05/1.505, allocations: 11.95 kB / 0.9168 GB, free: 2.043 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/1.515, allocations: 6.302 MB / 0.923 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/1.515, allocations: 0 / 0.923 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/1.516, allocations: 303.5 kB / 0.9233 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/1.518, allocations: 499.9 kB / 0.9237 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001648/1.518, allocations: 84.17 kB / 0.9238 GB, free: 13.09 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006807/1.525, allocations: 5.958 MB / 0.9296 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.525, allocations: 256 / 0.9296 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007186/1.532, allocations: 4.826 MB / 0.9343 GB, free: 5.121 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/1.533, allocations: 293.7 kB / 0.9346 GB, free: 4.852 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003691/1.533, allocations: 45.73 kB / 0.9347 GB, free: 4.836 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/1.535, allocations: 143.1 kB / 0.9348 GB, free: 4.723 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003878/1.535, allocations: 171.6 kB / 0.935 GB, free: 4.574 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/1.535, allocations: 114.2 kB / 0.9351 GB, free: 4.48 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001349/1.537, allocations: 0.9209 MB / 0.936 GB, free: 3.832 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/1.537, allocations: 0 / 0.936 GB, free: 3.832 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.006165/1.543, allocations: 1.634 MB / 0.9376 GB, free: 2.398 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.01294/1.556, allocations: 8.716 MB / 0.9461 GB, free: 11.48 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005153/1.561, allocations: 3.238 MB / 0.9492 GB, free: 9.211 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/1.561, allocations: 0 / 0.9492 GB, free: 9.211 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003031/1.564, allocations: 1.985 MB / 0.9512 GB, free: 7.789 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003768/1.568, allocations: 0.6782 MB / 0.9518 GB, free: 7.242 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02703/1.595, allocations: 15.93 MB / 0.9674 GB, free: 9.797 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/1.596, allocations: 1.672 MB / 0.969 GB, free: 8.176 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.003261/1.6, allocations: 1.081 MB / 0.9701 GB, free: 7.102 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/1.601, allocations: 0.8537 MB / 0.9709 GB, free: 6.863 MB / 0.6856 GB Notification: Performance of SimCode: time 3.136e-06/1.601, allocations: 2.734 kB / 0.9709 GB, free: 6.863 MB / 0.6856 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/jenkins1/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).