Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,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.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.SeriesPipes1") [: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.001657/0.001657, allocations: 172.5 kB / 8.145 MB, free: 2.211 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.654/1.654, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001281/0.001281, allocations: 87.91 kB / 261.8 MB, free: 13.63 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.2576/0.2576, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.674e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.268, allocations: 58.84 MB / 476.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.166/6.434, allocations: 2.827 GB / 3.292 GB, free: 110 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/6.434, allocations: 80.58 kB / 3.292 GB, free: 110 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.839/10.27, allocations: 0.7983 GB / 4.09 GB, free: 35.39 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003099/10.27, allocations: 67.2 kB / 4.091 GB, free: 35.39 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.02008/10.29, allocations: 3.878 MB / 4.094 GB, free: 33.73 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/10.29, allocations: 9.406 kB / 4.094 GB, free: 33.73 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/10.3, allocations: 0.8794 MB / 4.095 GB, free: 33.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009063/10.31, allocations: 2.1 MB / 4.097 GB, free: 33.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/10.31, allocations: 90.81 kB / 4.097 GB, free: 33.14 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008903/10.31, allocations: 120.4 kB / 4.097 GB, free: 33.14 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008242/10.32, allocations: 2.622 MB / 4.1 GB, free: 33.13 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008755/10.33, allocations: 2.862 MB / 4.103 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.72e-05/10.33, allocations: 5.719 kB / 4.103 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003891/10.33, allocations: 6.5 kB / 4.103 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000238/10.33, allocations: 173.7 kB / 4.103 GB, free: 32.58 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3213/10.65, allocations: 94.85 MB / 4.196 GB, free: 21.61 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003168/10.66, allocations: 1.137 MB / 4.197 GB, free: 21.59 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002414/10.66, allocations: 1.03 MB / 4.198 GB, free: 21.57 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06085/10.72, allocations: 16.94 MB / 4.214 GB, free: 26.46 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002956/10.72, allocations: 1.214 MB / 4.215 GB, free: 26.32 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=147): time 4.949e-06/10.72, allocations: 0 / 4.215 GB, free: 26.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=163): time 0.03529/10.76, allocations: 8.387 MB / 4.224 GB, free: 24.62 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002569/10.76, allocations: 388.2 kB / 4.224 GB, free: 24.18 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002555/10.76, allocations: 1.155 MB / 4.225 GB, free: 24 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005221/10.76, allocations: 29.83 kB / 4.225 GB, free: 23.97 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006652/10.76, allocations: 0.731 MB / 4.226 GB, free: 23.45 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008111/10.76, allocations: 0.5402 MB / 4.226 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/10.76, allocations: 0 / 4.226 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002303/10.76, allocations: 394.1 kB / 4.227 GB, free: 22.78 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002854/10.77, allocations: 1.164 MB / 4.228 GB, free: 22.77 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003128/10.77, allocations: 1.608 MB / 4.229 GB, free: 22.26 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02493/10.79, allocations: 3.531 MB / 4.233 GB, free: 22.17 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.697e-05/10.8, allocations: 7.562 kB / 4.233 GB, free: 22.17 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.03351/10.83, allocations: 5.836 MB / 4.239 GB, free: 21.96 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002035/10.83, allocations: 4.619 MB / 4.243 GB, free: 17.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.819e-05/10.83, allocations: 11.47 kB / 4.243 GB, free: 17.11 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/10.83, allocations: 248.3 kB / 4.243 GB, free: 17.08 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004663/10.84, allocations: 0.5228 MB / 4.244 GB, free: 17.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/10.84, allocations: 2.561 MB / 4.246 GB, free: 14.99 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003621/10.84, allocations: 235.4 kB / 4.247 GB, free: 14.95 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004181/10.84, allocations: 104.5 kB / 4.247 GB, free: 14.95 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/10.84, allocations: 3.875 kB / 4.247 GB, free: 14.95 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03027/10.87, allocations: 4.887 MB / 4.251 GB, free: 14.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.555e-05/10.87, allocations: 13.03 kB / 4.251 GB, free: 14.82 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/10.88, allocations: 257.8 kB / 4.252 GB, free: 14.78 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005175/10.88, allocations: 0.5141 MB / 4.252 GB, free: 14.77 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/10.88, allocations: 2.558 MB / 4.255 GB, free: 12.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003937/10.89, allocations: 237.5 kB / 4.255 GB, free: 12.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005658/10.89, allocations: 101.8 kB / 4.255 GB, free: 12.66 MB / 0.5886 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 (246): * Single equations (assignments): 239 * 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: 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 prepare postOptimizeDAE: time 0.0009021/10.89, allocations: 133.3 kB / 4.255 GB, free: 12.57 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003087/10.89, allocations: 0.656 MB / 4.256 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01895/10.91, allocations: 6.664 MB / 4.262 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.932e-05/10.91, allocations: 59.97 kB / 4.262 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/10.91, allocations: 1.281 kB / 4.262 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01389/10.93, allocations: 5.48 MB / 4.268 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02274/10.95, allocations: 9.268 MB / 4.277 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/10.95, allocations: 0 / 4.277 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00321/10.95, allocations: 328.8 kB / 4.277 GB, free: 7.277 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/10.95, allocations: 343 kB / 4.277 GB, free: 7.078 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004457/10.95, allocations: 49.12 kB / 4.277 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002786/10.96, allocations: 2.713 MB / 4.28 GB, free: 4.621 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/10.96, allocations: 0.9375 kB / 4.28 GB, free: 4.621 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01823/10.97, allocations: 7.146 MB / 4.287 GB, free: 0.5273 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002919/10.98, allocations: 0.6905 MB / 4.288 GB, free: 88 kB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00131/10.98, allocations: 18.42 kB / 4.288 GB, free: 76 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.3192/11.3, allocations: 182.7 kB / 4.288 GB, free: 137.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006882/11.3, allocations: 134.9 kB / 4.288 GB, free: 137.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002604/11.3, allocations: 70.09 kB / 4.288 GB, free: 137.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002437/11.3, allocations: 1.108 MB / 4.289 GB, free: 137.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01349/11.31, allocations: 2.704 MB / 4.292 GB, free: 137.2 MB / 0.5886 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.01686/11.33, allocations: 3.06 MB / 4.295 GB, free: 137.1 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01338/11.35, allocations: 5.457 MB / 4.3 GB, free: 136.9 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/11.35, allocations: 1.5 kB / 4.3 GB, free: 136.9 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005899/11.35, allocations: 2.869 MB / 4.303 GB, free: 136.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007628/11.36, allocations: 0.722 MB / 4.304 GB, free: 136.8 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/11.38, allocations: 5.963 MB / 4.31 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00435/11.38, allocations: 2.289 MB / 4.312 GB, free: 135.1 MB / 0.5886 GB Notification: Performance of SimCode: time 1.503e-06/11.38, allocations: 3.906 kB / 4.312 GB, free: 135.1 MB / 0.5886 GB Notification: Performance of Templates: time 0.1908/11.57, allocations: 109.7 MB / 4.419 GB, free: 129.4 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)