Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") [: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.002742/0.002742, allocations: 181.4 kB / 7.461 MB, free: 2.488 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.591/1.591, allocations: 194.2 MB / 202.1 MB, free: 8.664 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.001688/0.001688, allocations: 119.1 kB / 247.1 MB, free: 6.328 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.2217/0.2217, allocations: 39.95 MB / 331.9 MB, free: 4.895 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.145e-06/8.175e-06, allocations: 4 kB / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1276, allocations: 54.86 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.653/5.781, allocations: 2.676 GB / 3.113 GB, free: 83.78 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001597/5.781, allocations: 72.72 kB / 3.113 GB, free: 83.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.935/8.715, allocations: 0.8979 GB / 4.011 GB, free: 35.34 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003397/8.716, allocations: 70.55 kB / 4.011 GB, free: 35.33 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01712/8.733, allocations: 3.979 MB / 4.015 GB, free: 33.56 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/8.733, allocations: 6.156 kB / 4.015 GB, free: 33.56 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007743/8.741, allocations: 0.9137 MB / 4.016 GB, free: 33.42 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007293/8.748, allocations: 2.116 MB / 4.018 GB, free: 32.96 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/8.748, allocations: 97.88 kB / 4.018 GB, free: 32.96 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/8.749, allocations: 121.5 kB / 4.018 GB, free: 32.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005832/8.755, allocations: 2.691 MB / 4.021 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00466/8.76, allocations: 2.907 MB / 4.024 GB, free: 32.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.176e-05/8.76, allocations: 9.422 kB / 4.024 GB, free: 32.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002395/8.76, allocations: 10.47 kB / 4.024 GB, free: 32.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/8.761, allocations: 177.2 kB / 4.024 GB, free: 32.39 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2404/9.001, allocations: 111.1 MB / 4.133 GB, free: 21.33 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/9.003, allocations: 1.136 MB / 4.134 GB, free: 21.32 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/9.004, allocations: 1.082 MB / 4.135 GB, free: 21.3 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03424/9.039, allocations: 17.37 MB / 4.152 GB, free: 4.508 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002116/9.041, allocations: 1.26 MB / 4.153 GB, free: 3.793 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 4.008e-06/9.041, allocations: 0 / 4.153 GB, free: 3.793 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.2814/9.322, allocations: 9.979 MB / 4.163 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.814e-05/9.322, allocations: 363.6 kB / 4.163 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/9.324, allocations: 1.095 MB / 4.164 GB, free: 116.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003795/9.324, allocations: 32.67 kB / 4.164 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005775/9.325, allocations: 0.7807 MB / 4.165 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005218/9.325, allocations: 0.5787 MB / 4.166 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/9.325, allocations: 3.938 kB / 4.166 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001097/9.325, allocations: 388.2 kB / 4.166 GB, free: 115.6 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/9.327, allocations: 1.11 MB / 4.167 GB, free: 115.6 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/9.328, allocations: 1.591 MB / 4.169 GB, free: 115.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008922/9.337, allocations: 2.088 MB / 4.171 GB, free: 115.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.253e-05/9.337, allocations: 3.625 kB / 4.171 GB, free: 115.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01519/9.353, allocations: 4.473 MB / 4.175 GB, free: 114.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008454/9.354, allocations: 4.878 MB / 4.18 GB, free: 109.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/9.354, allocations: 11.47 kB / 4.18 GB, free: 109.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006008/9.354, allocations: 230.1 kB / 4.18 GB, free: 109.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00228/9.356, allocations: 0.5301 MB / 4.18 GB, free: 109.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/9.358, allocations: 2.491 MB / 4.183 GB, free: 107.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003119/9.361, allocations: 300.7 kB / 4.183 GB, free: 107.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002856/9.361, allocations: 117 kB / 4.183 GB, free: 107.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/9.361, allocations: 3.625 kB / 4.183 GB, free: 107.8 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01108/9.372, allocations: 3.405 MB / 4.187 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/9.372, allocations: 16.94 kB / 4.187 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005546/9.373, allocations: 228.2 kB / 4.187 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002111/9.375, allocations: 0.5271 MB / 4.187 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/9.377, allocations: 2.486 MB / 4.19 GB, free: 105.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002786/9.379, allocations: 278.4 kB / 4.19 GB, free: 105.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002281/9.38, allocations: 109.2 kB / 4.19 GB, free: 105.6 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007016/9.38, allocations: 237 kB / 4.19 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002009/9.382, allocations: 0.6607 MB / 4.191 GB, free: 105.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01622/9.399, allocations: 6.78 MB / 4.198 GB, free: 104.9 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.506e-05/9.399, allocations: 50.39 kB / 4.198 GB, free: 104.9 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/9.399, allocations: 3.688 kB / 4.198 GB, free: 104.9 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01375/9.412, allocations: 5.845 MB / 4.203 GB, free: 104.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.025/9.437, allocations: 11.05 MB / 4.214 GB, free: 102.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.349e-05/9.437, allocations: 7.719 kB / 4.214 GB, free: 102.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001738/9.439, allocations: 365.5 kB / 4.215 GB, free: 102.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009549/9.44, allocations: 323.1 kB / 4.215 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003239/9.441, allocations: 59.89 kB / 4.215 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/9.442, allocations: 2.67 MB / 4.218 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/9.442, allocations: 9.156 kB / 4.218 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01898/9.461, allocations: 8.071 MB / 4.225 GB, free: 99.11 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001982/9.463, allocations: 0.6775 MB / 4.226 GB, free: 98.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008536/9.464, allocations: 29.03 kB / 4.226 GB, free: 98.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002346/9.466, allocations: 184.8 kB / 4.226 GB, free: 98.87 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/9.467, allocations: 151.2 kB / 4.226 GB, free: 98.86 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002503/9.467, allocations: 84.27 kB / 4.227 GB, free: 98.86 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001835/9.469, allocations: 1.011 MB / 4.228 GB, free: 98.75 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01141/9.48, allocations: 2.635 MB / 4.23 GB, free: 98.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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,junctionIdeal.medium.phase) * 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 (186): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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.01227/9.492, allocations: 3.109 MB / 4.233 GB, free: 98.42 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009354/9.502, allocations: 5.235 MB / 4.238 GB, free: 98.23 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.566e-05/9.502, allocations: 0 / 4.238 GB, free: 98.23 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005153/9.507, allocations: 3.18 MB / 4.241 GB, free: 98.16 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005231/9.512, allocations: 0.8006 MB / 4.242 GB, free: 98.15 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04868/9.561, allocations: 20.16 MB / 4.262 GB, free: 96.94 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003065/9.564, allocations: 2.322 MB / 4.264 GB, free: 96.17 MB / 0.5573 GB Notification: Performance of SimCode: time 1.323e-06/9.564, allocations: 0 / 4.264 GB, free: 96.17 MB / 0.5573 GB Notification: Performance of Templates: time 0.1229/9.687, allocations: 88.82 MB / 4.351 GB, free: 76.1 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)