Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.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.TestDynamicTopology,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestDynamicTopology",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.0009919/0.000992, allocations: 100.1 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.0009466/0.0009467, 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.498/1.498, 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.7744/0.7744, allocations: 89.65 MB / 380.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003803, allocations: 15.98 kB / 460 MB, free: 24.28 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1536, allocations: 68.84 MB / 0.5165 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.244/1.398, allocations: 425.6 MB / 0.9321 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.06299/1.461, allocations: 46.09 MB / 0.9771 GB, free: 8.609 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007522/1.468, allocations: 57.84 kB / 0.9772 GB, free: 8.57 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.01093/1.479, allocations: 2.687 MB / 0.9798 GB, free: 6.203 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.04625/1.526, allocations: 13.82 MB / 0.9933 GB, free: 8.988 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.01563/1.541, allocations: 4.463 MB / 0.9977 GB, free: 4.664 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009786/1.551, allocations: 4.587 MB / 1.002 GB, free: 256 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003238/1.554, allocations: 1.986 MB / 1.004 GB, free: 14.21 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005912/1.56, allocations: 2.68 MB / 1.007 GB, free: 11.91 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003883/1.564, allocations: 2.174 MB / 1.009 GB, free: 10.17 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001258/1.565, allocations: 200 kB / 1.009 GB, free: 9.973 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05916/1.625, allocations: 30.86 MB / 1.039 GB, free: 11.19 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.002471/1.627, allocations: 1.25 MB / 1.04 GB, free: 9.938 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002218/1.629, allocations: 1.038 MB / 1.041 GB, free: 8.891 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.03622/1.666, allocations: 14.1 MB / 1.055 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/1.666, allocations: 0 / 1.055 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 4.368e-06/1.666, allocations: 0 / 1.055 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0002914/1.666, allocations: 3.938 kB / 1.055 GB, free: 10.76 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1130 * Number of variables: 1130 Notification: Performance of Generate backend data structure: time 0.02668/1.693, allocations: 8.134 MB / 1.063 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/1.693, allocations: 8.031 kB / 1.063 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001544/1.694, allocations: 0.5927 MB / 1.064 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001085/1.695, allocations: 0.5327 MB / 1.064 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004468/1.7, allocations: 2.421 MB / 1.067 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/1.7, allocations: 316.4 kB / 1.067 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006473/1.701, allocations: 431.8 kB / 1.067 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/1.711, allocations: 7.116 MB / 1.074 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.789e-05/1.712, allocations: 4 kB / 1.074 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003937/1.712, allocations: 172 kB / 1.074 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005088/1.713, allocations: 412.6 kB / 1.075 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/1.726, allocations: 8.116 MB / 1.083 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3416/2.068, allocations: 27.68 MB / 1.11 GB, free: 328.7 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006403/2.074, allocations: 4.242 MB / 1.114 GB, free: 326.9 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0053/2.079, allocations: 8.132 MB / 1.122 GB, free: 317.9 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.035e-05/2.08, allocations: 86.36 kB / 1.122 GB, free: 317.8 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=475): time 1.218e-05/2.08, allocations: 0 / 1.122 GB, free: 317.8 MB / 0.7481 GB Notification: Performance of matching and sorting (n=479): time 0.04525/2.125, allocations: 19.7 MB / 1.141 GB, free: 308.3 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/2.125, allocations: 126.7 kB / 1.141 GB, free: 308.2 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002876/2.128, allocations: 2.1 MB / 1.143 GB, free: 307.4 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0007009/2.129, allocations: 101.5 kB / 1.143 GB, free: 307.3 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008283/2.129, allocations: 1.526 MB / 1.145 GB, free: 306.2 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001493/2.131, allocations: 1.6 MB / 1.146 GB, free: 304.9 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006475/2.132, allocations: 79.73 kB / 1.147 GB, free: 304.9 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002145/2.132, allocations: 458.3 kB / 1.147 GB, free: 304.5 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003653/2.135, allocations: 2.533 MB / 1.149 GB, free: 303.4 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004354/2.14, allocations: 2.779 MB / 1.152 GB, free: 302.3 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004712/2.145, allocations: 2.875 MB / 1.155 GB, free: 301 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-05/2.145, allocations: 3.938 kB / 1.155 GB, free: 301 MB / 0.7481 GB Notification: Performance of matching and sorting (n=491) (initialization): time 0.01633/2.161, allocations: 7.38 MB / 1.162 GB, free: 297.9 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/2.161, allocations: 3.938 kB / 1.162 GB, free: 297.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/2.161, allocations: 7.922 kB / 1.162 GB, free: 297.9 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006806/2.168, allocations: 1.789 MB / 1.164 GB, free: 297.1 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/2.171, allocations: 0.7018 MB / 1.165 GB, free: 296.9 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/2.182, allocations: 11.72 MB / 1.176 GB, free: 287.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003963/2.186, allocations: 321.6 kB / 1.176 GB, free: 287.5 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009837/2.187, allocations: 277.3 kB / 1.177 GB, free: 287.4 MB / 0.7481 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 (404): * Single equations (assignments): 367 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {1 5,2 4,2 4,1 5,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0029/2.19, allocations: 1.118 MB / 1.178 GB, free: 286.6 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001307/2.192, allocations: 349.4 kB / 1.178 GB, free: 286.4 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01717/2.209, allocations: 11.01 MB / 1.189 GB, free: 280.4 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00013/2.209, allocations: 46.91 kB / 1.189 GB, free: 280.4 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-05/2.209, allocations: 11.72 kB / 1.189 GB, free: 280.4 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-05/2.209, allocations: 23.91 kB / 1.189 GB, free: 280.4 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0364/2.245, allocations: 15.12 MB / 1.204 GB, free: 265.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-05/2.246, allocations: 3.938 kB / 1.204 GB, free: 265.6 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004293/2.25, allocations: 0.6749 MB / 1.204 GB, free: 264.9 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0096/2.259, allocations: 1.827 MB / 1.206 GB, free: 263.1 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001783/2.261, allocations: 166.9 kB / 1.206 GB, free: 263 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/2.273, allocations: 11.74 MB / 1.218 GB, free: 250.9 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/2.273, allocations: 3.938 kB / 1.218 GB, free: 250.9 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/2.292, allocations: 11.65 MB / 1.229 GB, free: 239.2 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/2.293, allocations: 440.4 kB / 1.23 GB, free: 238.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001747/2.295, allocations: 92.38 kB / 1.23 GB, free: 238.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004163/2.299, allocations: 321.5 kB / 1.23 GB, free: 238.3 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001186/2.301, allocations: 373.3 kB / 1.23 GB, free: 238 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009607/2.302, allocations: 266.3 kB / 1.231 GB, free: 237.7 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002315/2.304, allocations: 1.522 MB / 1.232 GB, free: 236.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/2.304, allocations: 0 / 1.232 GB, free: 236.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.01125/2.315, allocations: 3.443 MB / 1.235 GB, free: 233.1 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (dynamicJunctionNM1.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow3.inlet.m_flow,dynamicPressureOutflow4.inlet.m_flow,dynamicPressureOutflow5.inlet.m_flow,dynamicJunctionNM.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow1.inlet.m_flow,dynamicPressureOutflow1.inlet.m_flow,dynamicPressureOutflow2.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 (400): * Single equations (assignments): 363 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {1 5,2 4,2 4,1 5,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02902/2.344, allocations: 18.3 MB / 1.253 GB, free: 215.5 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.011/2.355, allocations: 7.382 MB / 1.26 GB, free: 208.1 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/2.355, allocations: 6.781 kB / 1.26 GB, free: 208.1 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.006152/2.361, allocations: 4.314 MB / 1.265 GB, free: 203.8 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006329/2.368, allocations: 1.35 MB / 1.266 GB, free: 202.5 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06486/2.433, allocations: 36.35 MB / 1.302 GB, free: 164.7 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003162/2.436, allocations: 2.957 MB / 1.304 GB, free: 161.7 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.00756/2.443, allocations: 2.363 MB / 1.307 GB, free: 159.5 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00426/2.448, allocations: 1.94 MB / 1.309 GB, free: 157.6 MB / 0.7481 GB Notification: Performance of SimCode: time 1.413e-06/2.448, allocations: 0 / 1.309 GB, free: 157.6 MB / 0.7481 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).