Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01162/0.01162, allocations: 174.3 kB / 15.12 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 221.3 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 86.86 kB / 269.6 MB, free: 13.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8065/0.8065, allocations: 90.6 MB / 408.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003774, allocations: 11.98 kB / 485.3 MB, free: 1.977 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.405, allocations: 66.28 MB / 0.5387 GB, free: 45.59 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 0.8657/1.271, allocations: 424.9 MB / 0.9536 GB, free: 1.422 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.08502/1.356, allocations: 60.75 MB / 1.013 GB, free: 4.559 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006338/1.362, allocations: 51.75 kB / 1.013 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.01063/1.373, allocations: 2.672 MB / 1.016 GB, free: 1.824 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.5894/1.962, allocations: 13.7 MB / 1.029 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.03759/2, allocations: 9.063 MB / 1.038 GB, free: 5.582 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01279/2.013, allocations: 4.342 MB / 1.042 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005814/2.019, allocations: 1.956 MB / 1.044 GB, free: 21.23 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009744/2.028, allocations: 2.571 MB / 1.047 GB, free: 21.21 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007229/2.036, allocations: 2.053 MB / 1.049 GB, free: 21.21 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.002416/2.038, allocations: 192 kB / 1.049 GB, free: 21.21 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.1066/2.145, allocations: 38.61 MB / 1.086 GB, free: 18.15 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.003755/2.149, allocations: 1.208 MB / 1.088 GB, free: 17.86 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.005094/2.154, allocations: 1.014 MB / 1.089 GB, free: 17.83 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.06165/2.215, allocations: 17.11 MB / 1.105 GB, free: 7.293 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.842e-06/2.216, allocations: 4 kB / 1.105 GB, free: 7.289 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.199e-06/2.216, allocations: 0.9844 kB / 1.105 GB, free: 7.289 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0004169/2.216, allocations: 0 / 1.105 GB, free: 7.289 MB / 0.698 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.03549/2.251, allocations: 9.256 MB / 1.114 GB, free: 14.58 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 7.51e-05/2.252, allocations: 8.031 kB / 1.114 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003692/2.255, allocations: 0.5822 MB / 1.115 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003569/2.259, allocations: 0.5096 MB / 1.115 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007912/2.267, allocations: 2.256 MB / 1.118 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005991/2.267, allocations: 324.1 kB / 1.118 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002955/2.27, allocations: 428.7 kB / 1.118 GB, free: 11.76 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02306/2.294, allocations: 7.256 MB / 1.125 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002998/2.294, allocations: 0 / 1.125 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002573/2.297, allocations: 177.4 kB / 1.126 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007591/2.297, allocations: 399.7 kB / 1.126 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0191/2.316, allocations: 8.235 MB / 1.134 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0572/2.374, allocations: 27.99 MB / 1.161 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009064/2.383, allocations: 4.423 MB / 1.166 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0097/2.393, allocations: 8.078 MB / 1.174 GB, free: 12.93 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/2.393, allocations: 83.5 kB / 1.174 GB, free: 12.88 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=491): time 3.302e-05/2.393, allocations: 0 / 1.174 GB, free: 12.88 MB / 0.7605 GB Notification: Performance of matching and sorting (n=495): time 0.07396/2.467, allocations: 20.9 MB / 1.194 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002031/2.467, allocations: 132.2 kB / 1.194 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005543/2.473, allocations: 1.639 MB / 1.196 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.002172/2.475, allocations: 104.4 kB / 1.196 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.002156/2.477, allocations: 1.406 MB / 1.197 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.00469/2.482, allocations: 1.647 MB / 1.199 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001898/2.484, allocations: 78.17 kB / 1.199 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0007728/2.485, allocations: 461.8 kB / 1.199 GB, free: 9.984 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009696/2.494, allocations: 2.687 MB / 1.202 GB, free: 8.379 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009685/2.504, allocations: 2.941 MB / 1.205 GB, free: 6.578 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/2.515, allocations: 3.041 MB / 1.208 GB, free: 4.898 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-05/2.515, allocations: 0 / 1.208 GB, free: 4.898 MB / 0.7761 GB Notification: Performance of matching and sorting (n=503) (initialization): time 0.03239/2.547, allocations: 7.68 MB / 1.215 GB, free: 15.93 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 7.798e-05/2.547, allocations: 8 kB / 1.215 GB, free: 15.93 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.819e-05/2.547, allocations: 0 / 1.215 GB, free: 15.93 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01021/2.557, allocations: 1.852 MB / 1.217 GB, free: 14.36 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/2.561, allocations: 0.7466 MB / 1.218 GB, free: 13.68 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/2.578, allocations: 11.76 MB / 1.229 GB, free: 4.574 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0044/2.582, allocations: 316.5 kB / 1.23 GB, free: 4.32 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002186/2.585, allocations: 411.2 kB / 1.23 GB, free: 3.977 MB / 0.7917 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): 363 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 4 * 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 {2 4,2 4,2 4,1 5,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.005302/2.59, allocations: 1.108 MB / 1.231 GB, free: 3.371 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/2.592, allocations: 320.1 kB / 1.231 GB, free: 3.055 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03359/2.626, allocations: 9.678 MB / 1.241 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003316/2.626, allocations: 61.05 kB / 1.241 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.474e-05/2.626, allocations: 12 kB / 1.241 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000204/2.626, allocations: 23.91 kB / 1.241 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04345/2.67, allocations: 15.86 MB / 1.256 GB, free: 2.293 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-05/2.67, allocations: 3.984 kB / 1.256 GB, free: 2.289 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003884/2.674, allocations: 0.7616 MB / 1.257 GB, free: 1.586 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007315/2.681, allocations: 1.869 MB / 1.259 GB, free: 15.99 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001296/2.682, allocations: 216.3 kB / 1.259 GB, free: 15.85 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/2.697, allocations: 11.77 MB / 1.271 GB, free: 6.734 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/2.697, allocations: 0 / 1.271 GB, free: 6.734 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02599/2.723, allocations: 12.45 MB / 1.283 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/2.725, allocations: 363.9 kB / 1.283 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00175/2.727, allocations: 99.83 kB / 1.283 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004058/2.731, allocations: 332 kB / 1.284 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001512/2.732, allocations: 412.8 kB / 1.284 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001477/2.734, allocations: 406.7 kB / 1.284 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.002391/2.736, allocations: 1.12 MB / 1.286 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.31e-07/2.736, allocations: 4 kB / 1.286 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.01832/2.754, allocations: 4.673 MB / 1.29 GB, free: 8.48 MB / 0.8386 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 (416): * Single equations (assignments): 375 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 4 * 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,2 4,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.05221/2.807, allocations: 21.4 MB / 1.311 GB, free: 8.352 MB / 0.8542 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow3.inlet.state.X[1], dynamicPressureInflow3.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source3_outlet_Medium_ThermodynamicState1.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source1_outlet_Medium_ThermodynamicState283.X Notification: Performance of simCode: created initialization part: time 0.01893/2.826, allocations: 8.074 MB / 1.319 GB, free: 2.91 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/2.826, allocations: 3.75 kB / 1.319 GB, free: 2.91 MB / 0.8542 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source1_outlet_Medium_ThermodynamicState579.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow3.inlet.state.X[1], dynamicPressureInflow3.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source3_outlet_Medium_ThermodynamicState875.X Notification: Performance of simCode: created simulation system equations: time 0.01148/2.837, allocations: 4.8 MB / 1.324 GB, free: 15.65 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008374/2.846, allocations: 1.202 MB / 1.325 GB, free: 14.46 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3779/3.224, allocations: 35.3 MB / 1.359 GB, free: 434.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00371/3.227, allocations: 2.9 MB / 1.362 GB, free: 434.1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.009301/3.237, allocations: 1.594 MB / 1.364 GB, free: 434.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005274/3.242, allocations: 1.981 MB / 1.366 GB, free: 433.5 MB / 0.8698 GB Notification: Performance of SimCode: time 1.393e-06/3.242, allocations: 0 / 1.366 GB, free: 433.5 MB / 0.8698 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).