Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002426/0.002426, allocations: 182.9 kB / 7.456 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.279/1.279, allocations: 194.2 MB / 202.1 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001904/0.001904, allocations: 122.3 kB / 247.1 MB, free: 6.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1867/0.1867, allocations: 39.94 MB / 331.9 MB, free: 4.977 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.963e-06/6.994e-06, allocations: 0 / 392.8 MB, free: 75.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1603, allocations: 54.87 MB / 447.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.398/6.559, allocations: 2.672 GB / 3.11 GB, free: 78.29 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/6.559, allocations: 79.95 kB / 3.11 GB, free: 78.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.807/9.367, allocations: 0.8639 GB / 3.974 GB, free: 37.65 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001758/9.367, allocations: 63.5 kB / 3.974 GB, free: 37.64 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01155/9.378, allocations: 3.764 MB / 3.977 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/9.378, allocations: 7.062 kB / 3.977 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006079/9.384, allocations: 0.8209 MB / 3.978 GB, free: 35.89 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006094/9.391, allocations: 1.99 MB / 3.98 GB, free: 35.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/9.391, allocations: 87.7 kB / 3.98 GB, free: 35.46 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004851/9.391, allocations: 111.8 kB / 3.98 GB, free: 35.46 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004061/9.395, allocations: 2.36 MB / 3.983 GB, free: 35.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003737/9.399, allocations: 2.588 MB / 3.985 GB, free: 34.97 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.216e-05/9.399, allocations: 6.5 kB / 3.985 GB, free: 34.97 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000215/9.399, allocations: 4.469 kB / 3.985 GB, free: 34.97 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001466/9.4, allocations: 160.8 kB / 3.985 GB, free: 34.97 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2329/9.632, allocations: 109.4 MB / 4.092 GB, free: 25.43 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/9.634, allocations: 1.032 MB / 4.093 GB, free: 25.4 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/9.636, allocations: 0.9811 MB / 4.094 GB, free: 25.39 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03349/9.669, allocations: 17.47 MB / 4.111 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001799/9.671, allocations: 1.167 MB / 4.112 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=145): time 4.078e-06/9.671, allocations: 0 / 4.112 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of matching and sorting (n=157): time 0.03307/9.704, allocations: 9.122 MB / 4.121 GB, free: 10.56 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001673/9.704, allocations: 358.1 kB / 4.122 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/9.706, allocations: 1.036 MB / 4.123 GB, free: 9.469 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000151/9.706, allocations: 25.7 kB / 4.123 GB, free: 9.438 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004587/9.706, allocations: 0.7101 MB / 4.123 GB, free: 8.906 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003699/9.707, allocations: 0.5074 MB / 4.124 GB, free: 8.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/9.707, allocations: 8 kB / 4.124 GB, free: 8.492 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001503/9.707, allocations: 384.8 kB / 4.124 GB, free: 8.164 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/9.708, allocations: 1.004 MB / 4.125 GB, free: 7.629 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/9.709, allocations: 1.429 MB / 4.127 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008269/9.718, allocations: 1.966 MB / 4.128 GB, free: 5.547 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/9.718, allocations: 4 kB / 4.128 GB, free: 5.543 MB / 0.5573 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01408/9.732, allocations: 4.294 MB / 4.133 GB, free: 3.086 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.2079/9.94, allocations: 4.242 MB / 4.137 GB, free: 115.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.523e-05/9.94, allocations: 13.03 kB / 4.137 GB, free: 115.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002332/9.942, allocations: 0.5167 MB / 4.137 GB, free: 115.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/9.944, allocations: 468.9 kB / 4.138 GB, free: 115.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001965/9.946, allocations: 2.908 MB / 4.141 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002613/9.949, allocations: 268.8 kB / 4.141 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000219/9.949, allocations: 101 kB / 4.141 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 8.916e-06/9.949, allocations: 4.562 kB / 4.141 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01088/9.96, allocations: 3.169 MB / 4.144 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/9.96, allocations: 12.19 kB / 4.144 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005141/9.961, allocations: 191.2 kB / 4.144 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002231/9.963, allocations: 481.6 kB / 4.145 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/9.964, allocations: 1.921 MB / 4.147 GB, free: 111.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/9.966, allocations: 239.7 kB / 4.147 GB, free: 111.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/9.967, allocations: 95.67 kB / 4.147 GB, free: 111.9 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005554/9.967, allocations: 233.5 kB / 4.147 GB, free: 111.8 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001694/9.969, allocations: 0.6129 MB / 4.148 GB, free: 111.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/9.982, allocations: 6.724 MB / 4.154 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.049e-05/9.982, allocations: 54.98 kB / 4.154 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/9.982, allocations: 0 / 4.154 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01071/9.993, allocations: 5.812 MB / 4.16 GB, free: 110.7 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/10.01, allocations: 10.15 MB / 4.17 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/10.01, allocations: 3.656 kB / 4.17 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/10.01, allocations: 295 kB / 4.17 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/10.01, allocations: 1.128 MB / 4.171 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/10.01, allocations: 46.59 kB / 4.171 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002779/10.02, allocations: 3.394 MB / 4.175 GB, free: 107.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/10.02, allocations: 16.94 kB / 4.175 GB, free: 107.4 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01493/10.03, allocations: 7.616 MB / 4.182 GB, free: 106.4 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/10.03, allocations: 0.6523 MB / 4.183 GB, free: 106.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/10.03, allocations: 24.45 kB / 4.183 GB, free: 106.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/10.04, allocations: 157.8 kB / 4.183 GB, free: 106.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002641/10.04, allocations: 126.6 kB / 4.183 GB, free: 106.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/10.04, allocations: 76.72 kB / 4.183 GB, free: 106.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001356/10.04, allocations: 0.9714 MB / 4.184 GB, free: 106.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01036/10.05, allocations: 2.503 MB / 4.187 GB, free: 106.1 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (153): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01127/10.06, allocations: 3.021 MB / 4.189 GB, free: 105.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006896/10.07, allocations: 4.884 MB / 4.194 GB, free: 105.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/10.07, allocations: 3.562 kB / 4.194 GB, free: 105.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003221/10.07, allocations: 2.96 MB / 4.197 GB, free: 105.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003806/10.07, allocations: 0.7443 MB / 4.198 GB, free: 105.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04496/10.12, allocations: 19.81 MB / 4.217 GB, free: 104.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/10.12, allocations: 2.215 MB / 4.219 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of SimCode: time 7.42e-07/10.12, allocations: 2.344 kB / 4.219 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of Templates: time 0.1088/10.23, allocations: 84.57 MB / 4.302 GB, free: 94.76 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)