Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.00166, allocations: 185.8 kB / 8.153 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.809/1.809, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 92.56 kB / 261.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2847/0.2847, allocations: 43.49 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.448e-06/9.969e-06, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3068, allocations: 58.84 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.262/6.569, allocations: 2.827 GB / 3.292 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/6.569, allocations: 84.73 kB / 3.292 GB, free: 110.5 MB / 0.5105 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 3.949/10.52, allocations: 0.8618 GB / 4.154 GB, free: 36.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002808/10.52, allocations: 63.12 kB / 4.154 GB, free: 36.14 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01824/10.54, allocations: 3.869 MB / 4.158 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/10.54, allocations: 9.844 kB / 4.158 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009861/10.55, allocations: 0.8869 MB / 4.159 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008702/10.56, allocations: 2.107 MB / 4.161 GB, free: 33.68 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/10.56, allocations: 93.05 kB / 4.161 GB, free: 33.68 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009376/10.56, allocations: 114.7 kB / 4.161 GB, free: 33.67 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007975/10.56, allocations: 2.62 MB / 4.164 GB, free: 33.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008572/10.57, allocations: 2.868 MB / 4.166 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.655e-05/10.57, allocations: 8.781 kB / 4.166 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003881/10.57, allocations: 7.875 kB / 4.166 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002283/10.57, allocations: 170.8 kB / 4.167 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3277/10.9, allocations: 94.85 MB / 4.259 GB, free: 21.09 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003775/10.91, allocations: 1.136 MB / 4.26 GB, free: 21.03 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00276/10.91, allocations: 1.033 MB / 4.261 GB, free: 20.46 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.309/11.22, allocations: 16.93 MB / 4.278 GB, free: 125.6 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00321/11.22, allocations: 1.21 MB / 4.279 GB, free: 125.5 MB / 0.573 GB Notification: Performance of pre-optimization done (n=147): time 5.24e-06/11.22, allocations: 0 / 4.279 GB, free: 125.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=163): time 0.0377/11.26, allocations: 8.383 MB / 4.287 GB, free: 124.1 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/11.26, allocations: 384.6 kB / 4.288 GB, free: 123.6 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/11.26, allocations: 1.156 MB / 4.289 GB, free: 123.5 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006053/11.26, allocations: 29.05 kB / 4.289 GB, free: 123.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007664/11.26, allocations: 0.7348 MB / 4.289 GB, free: 123 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001096/11.26, allocations: 0.54 MB / 4.29 GB, free: 122.8 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002835/11.26, allocations: 0 / 4.29 GB, free: 122.8 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001906/11.26, allocations: 395.1 kB / 4.29 GB, free: 122.4 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003274/11.27, allocations: 1.16 MB / 4.291 GB, free: 122.4 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0037/11.27, allocations: 1.604 MB / 4.293 GB, free: 121.9 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02589/11.3, allocations: 3.538 MB / 4.296 GB, free: 121.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.577e-05/11.3, allocations: 0 / 4.296 GB, free: 121.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.03645/11.33, allocations: 6.453 MB / 4.303 GB, free: 121.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001081/11.34, allocations: 4.62 MB / 4.307 GB, free: 117 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-05/11.34, allocations: 13.28 kB / 4.307 GB, free: 117 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0138/11.35, allocations: 2.093 MB / 4.309 GB, free: 117 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002477/11.35, allocations: 311.5 kB / 4.31 GB, free: 117 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01319/11.36, allocations: 4.292 MB / 4.314 GB, free: 116.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/11.37, allocations: 234.7 kB / 4.314 GB, free: 116.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000493/11.37, allocations: 109.7 kB / 4.314 GB, free: 116.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/11.37, allocations: 5.281 kB / 4.314 GB, free: 116.4 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03061/11.4, allocations: 5.32 MB / 4.319 GB, free: 116.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.688e-05/11.4, allocations: 15.94 kB / 4.319 GB, free: 116.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01035/11.41, allocations: 1.565 MB / 4.321 GB, free: 116.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002846/11.41, allocations: 353.9 kB / 4.321 GB, free: 116.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007113/11.42, allocations: 2.996 MB / 4.324 GB, free: 115.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003549/11.42, allocations: 240 kB / 4.324 GB, free: 115.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005146/11.42, allocations: 99.88 kB / 4.324 GB, free: 115.8 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 85} Notification: Performance of prepare postOptimizeDAE: time 0.0007807/11.43, allocations: 114.6 kB / 4.325 GB, free: 115.7 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002928/11.43, allocations: 0.6536 MB / 4.325 GB, free: 115.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01645/11.44, allocations: 6.674 MB / 4.332 GB, free: 115.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.468e-05/11.44, allocations: 59.42 kB / 4.332 GB, free: 115.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/11.44, allocations: 2.969 kB / 4.332 GB, free: 115.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01224/11.46, allocations: 5.484 MB / 4.337 GB, free: 114.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/11.48, allocations: 9.256 MB / 4.346 GB, free: 113.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/11.48, allocations: 0 / 4.346 GB, free: 113.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003149/11.48, allocations: 331.9 kB / 4.347 GB, free: 113.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001622/11.48, allocations: 339.8 kB / 4.347 GB, free: 113.6 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005397/11.48, allocations: 51.69 kB / 4.347 GB, free: 113.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/11.49, allocations: 2.72 MB / 4.35 GB, free: 111.5 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/11.49, allocations: 2.406 kB / 4.35 GB, free: 111.5 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01792/11.5, allocations: 7.148 MB / 4.357 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002534/11.51, allocations: 0.6885 MB / 4.357 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001066/11.51, allocations: 22.25 kB / 4.357 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003692/11.51, allocations: 175 kB / 4.357 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006958/11.51, allocations: 129.1 kB / 4.358 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002844/11.51, allocations: 65.38 kB / 4.358 GB, free: 110.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002811/11.52, allocations: 1.114 MB / 4.359 GB, free: 110.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01372/11.53, allocations: 2.695 MB / 4.361 GB, free: 110.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01646/11.55, allocations: 3.052 MB / 4.364 GB, free: 110.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01442/11.56, allocations: 5.532 MB / 4.37 GB, free: 110 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/11.56, allocations: 4.562 kB / 4.37 GB, free: 110 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005948/11.57, allocations: 2.861 MB / 4.372 GB, free: 110 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007679/11.57, allocations: 0.7332 MB / 4.373 GB, free: 109.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0175/11.59, allocations: 5.964 MB / 4.379 GB, free: 109 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004023/11.6, allocations: 2.252 MB / 4.381 GB, free: 108.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.944e-06/11.6, allocations: 0 / 4.381 GB, free: 108.2 MB / 0.573 GB Notification: Performance of Templates: time 0.1734/11.77, allocations: 92.31 MB / 4.471 GB, free: 80.29 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)