Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") [: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.002399/0.002399, allocations: 190.3 kB / 7.461 MB, free: 2.246 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.062/1.062, allocations: 194.2 MB / 202.1 MB, free: 8.676 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.001653/0.001653, allocations: 111.3 kB / 247.1 MB, free: 6.379 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.1532/0.1532, allocations: 39.94 MB / 331.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.963e-06/7.154e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 54.87 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.553/4.659, allocations: 2.677 GB / 3.114 GB, free: 93.41 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/4.66, allocations: 75.95 kB / 3.114 GB, free: 93.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.934/8.594, allocations: 1.003 GB / 4.117 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005389/8.594, allocations: 72.5 kB / 4.117 GB, free: 23.8 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02366/8.618, allocations: 4.265 MB / 4.121 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.454e-05/8.618, allocations: 9.062 kB / 4.121 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00934/8.628, allocations: 0.9794 MB / 4.122 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0105/8.638, allocations: 2.218 MB / 4.124 GB, free: 19.57 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003898/8.639, allocations: 99.52 kB / 4.125 GB, free: 19.48 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001703/8.64, allocations: 139.8 kB / 4.125 GB, free: 19.35 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007598/8.648, allocations: 2.866 MB / 4.128 GB, free: 16.78 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008931/8.657, allocations: 3.073 MB / 4.131 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/8.657, allocations: 7.938 kB / 4.131 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008603/8.658, allocations: 8 kB / 4.131 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002174/8.658, allocations: 182.4 kB / 4.131 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4926/9.151, allocations: 50.97 MB / 4.18 GB, free: 63.87 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002436/9.153, allocations: 1.264 MB / 4.182 GB, free: 63.86 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/9.155, allocations: 1.198 MB / 4.183 GB, free: 63.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03226/9.187, allocations: 17.22 MB / 4.2 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002857/9.19, allocations: 1.388 MB / 4.201 GB, free: 52.96 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 4.398e-06/9.19, allocations: 2.125 kB / 4.201 GB, free: 52.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.04399/9.234, allocations: 10.68 MB / 4.211 GB, free: 51.38 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/9.234, allocations: 371.8 kB / 4.212 GB, free: 50.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001997/9.236, allocations: 1.155 MB / 4.213 GB, free: 50.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004572/9.237, allocations: 28.89 kB / 4.213 GB, free: 50.77 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000812/9.238, allocations: 0.8231 MB / 4.214 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000746/9.238, allocations: 0.6629 MB / 4.214 GB, free: 50.06 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/9.239, allocations: 0 / 4.214 GB, free: 50.06 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000163/9.239, allocations: 403.4 kB / 4.215 GB, free: 49.76 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/9.241, allocations: 1.21 MB / 4.216 GB, free: 49.75 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/9.243, allocations: 1.738 MB / 4.218 GB, free: 49.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/9.253, allocations: 2.242 MB / 4.22 GB, free: 49.18 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.779e-05/9.253, allocations: 5.594 kB / 4.22 GB, free: 49.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01989/9.273, allocations: 4.851 MB / 4.225 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001559/9.275, allocations: 5.518 MB / 4.23 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.168e-05/9.275, allocations: 12.28 kB / 4.23 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009907/9.276, allocations: 321.6 kB / 4.23 GB, free: 43.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002966/9.279, allocations: 0.6054 MB / 4.231 GB, free: 43.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/9.281, allocations: 3.195 MB / 4.234 GB, free: 40.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004201/9.285, allocations: 320.6 kB / 4.234 GB, free: 40.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007642/9.286, allocations: 130.3 kB / 4.235 GB, free: 40.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/9.286, allocations: 3 kB / 4.235 GB, free: 40.69 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01437/9.3, allocations: 3.741 MB / 4.238 GB, free: 40.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.13e-05/9.3, allocations: 23.3 kB / 4.238 GB, free: 40.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000885/9.301, allocations: 327.1 kB / 4.238 GB, free: 40.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002798/9.304, allocations: 0.5982 MB / 4.239 GB, free: 40.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/9.306, allocations: 3.191 MB / 4.242 GB, free: 37.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003858/9.31, allocations: 298.8 kB / 4.242 GB, free: 37.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006696/9.311, allocations: 123.7 kB / 4.243 GB, free: 37.95 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00139/9.312, allocations: 258.5 kB / 4.243 GB, free: 37.77 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002856/9.315, allocations: 0.7089 MB / 4.244 GB, free: 37.66 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0221/9.337, allocations: 7.755 MB / 4.251 GB, free: 37.16 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.878e-05/9.337, allocations: 64.42 kB / 4.251 GB, free: 37.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-05/9.337, allocations: 3.375 kB / 4.251 GB, free: 37.16 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01754/9.355, allocations: 6.652 MB / 4.258 GB, free: 36.41 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03272/9.388, allocations: 12.49 MB / 4.27 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.835e-05/9.388, allocations: 7.156 kB / 4.27 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002056/9.39, allocations: 419.4 kB / 4.27 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/9.391, allocations: 434.9 kB / 4.271 GB, free: 34.47 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004765/9.392, allocations: 59 kB / 4.271 GB, free: 34.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002174/9.394, allocations: 3.428 MB / 4.274 GB, free: 31.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/9.394, allocations: 5.969 kB / 4.274 GB, free: 31.86 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02216/9.416, allocations: 9.093 MB / 4.283 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002598/9.419, allocations: 0.7269 MB / 4.284 GB, free: 30.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/9.42, allocations: 32.08 kB / 4.284 GB, free: 30.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003477/9.424, allocations: 201.1 kB / 4.284 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000663/9.424, allocations: 174.2 kB / 4.284 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004536/9.425, allocations: 95.47 kB / 4.284 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002929/9.428, allocations: 1.072 MB / 4.285 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01808/9.446, allocations: 2.776 MB / 4.288 GB, free: 29.94 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 43 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.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,junctionVolume.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 (218): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01711/9.463, allocations: 3.313 MB / 4.291 GB, free: 29.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01341/9.476, allocations: 5.942 MB / 4.297 GB, free: 29.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.047e-05/9.477, allocations: 8.062 kB / 4.297 GB, free: 29.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005792/9.482, allocations: 3.616 MB / 4.3 GB, free: 29.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007403/9.49, allocations: 0.9622 MB / 4.301 GB, free: 29.15 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06343/9.553, allocations: 20.78 MB / 4.322 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00574/9.559, allocations: 2.47 MB / 4.324 GB, free: 26.14 MB / 0.5261 GB Notification: Performance of SimCode: time 1.934e-06/9.559, allocations: 0 / 4.324 GB, free: 26.14 MB / 0.5261 GB Notification: Performance of Templates: time 0.576/10.14, allocations: 96.97 MB / 4.419 GB, free: 74.96 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)