Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,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.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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.SeriesPipes12") [: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.002584/0.002584, allocations: 178 kB / 8.152 MB, free: 2.188 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.626/1.626, 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.001265/0.001265, allocations: 87.59 kB / 261.8 MB, free: 13.64 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.2889/0.2889, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.358e-06/9.639e-06, allocations: 0 / 417.7 MB, free: 40.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3288, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.458/6.787, allocations: 2.827 GB / 3.292 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/6.788, allocations: 84.19 kB / 3.292 GB, free: 103.7 MB / 0.4948 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.865/10.65, allocations: 0.7996 GB / 4.092 GB, free: 39.74 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003357/10.65, allocations: 73.03 kB / 4.092 GB, free: 39.73 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.01978/10.67, allocations: 3.867 MB / 4.096 GB, free: 37.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/10.67, allocations: 12.03 kB / 4.096 GB, free: 37.91 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/10.68, allocations: 0.8818 MB / 4.096 GB, free: 37.77 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009384/10.69, allocations: 2.097 MB / 4.099 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003026/10.69, allocations: 99.3 kB / 4.099 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/10.69, allocations: 112.7 kB / 4.099 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008691/10.7, allocations: 2.622 MB / 4.101 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009517/10.71, allocations: 2.865 MB / 4.104 GB, free: 36.76 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-05/10.71, allocations: 9.719 kB / 4.104 GB, free: 36.75 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004032/10.71, allocations: 7.594 kB / 4.104 GB, free: 36.75 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000251/10.71, allocations: 170 kB / 4.104 GB, free: 36.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3218/11.04, allocations: 94.83 MB / 4.197 GB, free: 25.14 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003456/11.04, allocations: 1.139 MB / 4.198 GB, free: 25.12 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002811/11.04, allocations: 1.026 MB / 4.199 GB, free: 25.09 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06386/11.11, allocations: 16.95 MB / 4.216 GB, free: 13.97 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003387/11.11, allocations: 1.213 MB / 4.217 GB, free: 13.83 MB / 0.573 GB Notification: Performance of pre-optimization done (n=147): time 5.841e-06/11.11, allocations: 0 / 4.217 GB, free: 13.83 MB / 0.573 GB Notification: Performance of matching and sorting (n=163): time 0.03703/11.15, allocations: 8.391 MB / 4.225 GB, free: 9.758 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002552/11.15, allocations: 387.7 kB / 4.225 GB, free: 9.301 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/11.15, allocations: 1.144 MB / 4.226 GB, free: 8.574 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005824/11.15, allocations: 33.7 kB / 4.226 GB, free: 8.535 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006911/11.15, allocations: 0.7364 MB / 4.227 GB, free: 7.926 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008661/11.15, allocations: 0.5409 MB / 4.228 GB, free: 7.496 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/11.15, allocations: 0 / 4.228 GB, free: 7.496 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002384/11.15, allocations: 395.8 kB / 4.228 GB, free: 7.156 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/11.15, allocations: 1.153 MB / 4.229 GB, free: 6.539 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003255/11.16, allocations: 1.608 MB / 4.231 GB, free: 5.359 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02541/11.18, allocations: 3.533 MB / 4.234 GB, free: 3.438 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.758e-05/11.18, allocations: 4 kB / 4.234 GB, free: 3.434 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.03747/11.22, allocations: 6.543 MB / 4.241 GB, free: 0 / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.2441/11.46, allocations: 4.612 MB / 4.245 GB, free: 124.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-05/11.46, allocations: 21.11 kB / 4.245 GB, free: 124.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01361/11.48, allocations: 2.086 MB / 4.247 GB, free: 124.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002372/11.48, allocations: 319.8 kB / 4.247 GB, free: 124.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/11.49, allocations: 4.291 MB / 4.252 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/11.5, allocations: 239.8 kB / 4.252 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003909/11.5, allocations: 99.56 kB / 4.252 GB, free: 123.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/11.5, allocations: 5.562 kB / 4.252 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03017/11.53, allocations: 5.32 MB / 4.257 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.827e-05/11.53, allocations: 17.75 kB / 4.257 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01013/11.54, allocations: 1.563 MB / 4.259 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002784/11.54, allocations: 352.5 kB / 4.259 GB, free: 123.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007112/11.55, allocations: 3.001 MB / 4.262 GB, free: 123.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003607/11.55, allocations: 229 kB / 4.262 GB, free: 123.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004148/11.55, allocations: 106.1 kB / 4.262 GB, free: 123.1 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.0007158/11.55, allocations: 113.4 kB / 4.262 GB, free: 123.1 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002862/11.56, allocations: 0.6528 MB / 4.263 GB, free: 123.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01602/11.57, allocations: 6.674 MB / 4.27 GB, free: 122.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.076e-05/11.57, allocations: 55.17 kB / 4.27 GB, free: 122.6 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/11.57, allocations: 3.719 kB / 4.27 GB, free: 122.6 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01164/11.58, allocations: 5.483 MB / 4.275 GB, free: 122 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02122/11.6, allocations: 9.262 MB / 4.284 GB, free: 121.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/11.6, allocations: 5.625 kB / 4.284 GB, free: 121.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003144/11.61, allocations: 329.4 kB / 4.284 GB, free: 121.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/11.61, allocations: 335.9 kB / 4.285 GB, free: 121.2 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004181/11.61, allocations: 52.48 kB / 4.285 GB, free: 121.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/11.61, allocations: 2.716 MB / 4.287 GB, free: 119.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/11.61, allocations: 3.281 kB / 4.287 GB, free: 119.2 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01756/11.63, allocations: 7.153 MB / 4.294 GB, free: 118.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00249/11.63, allocations: 0.6853 MB / 4.295 GB, free: 118.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009497/11.63, allocations: 23.22 kB / 4.295 GB, free: 118.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003411/11.64, allocations: 176.9 kB / 4.295 GB, free: 118.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005419/11.64, allocations: 124.5 kB / 4.295 GB, free: 118.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000265/11.64, allocations: 70.16 kB / 4.295 GB, free: 118.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002623/11.64, allocations: 1.111 MB / 4.296 GB, free: 118.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01333/11.65, allocations: 2.696 MB / 4.299 GB, free: 118.3 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.01635/11.67, allocations: 3.064 MB / 4.302 GB, free: 118.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01318/11.68, allocations: 5.526 MB / 4.308 GB, free: 117.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/11.68, allocations: 6.125 kB / 4.308 GB, free: 117.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005616/11.69, allocations: 2.86 MB / 4.31 GB, free: 117.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007395/11.7, allocations: 0.7339 MB / 4.311 GB, free: 117.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0159/11.71, allocations: 5.956 MB / 4.317 GB, free: 116.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00356/11.72, allocations: 2.255 MB / 4.319 GB, free: 116.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.723e-06/11.72, allocations: 2.812 kB / 4.319 GB, free: 116.2 MB / 0.573 GB Notification: Performance of Templates: time 0.1728/11.89, allocations: 92.31 MB / 4.409 GB, free: 102 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)