Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00164/0.00164, allocations: 171.6 kB / 8.148 MB, free: 2.195 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.724/1.724, 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.001299/0.001298, allocations: 95.81 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.262/0.262, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.565e-06/7.654e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2684, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.028/6.296, allocations: 2.846 GB / 3.312 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/6.296, allocations: 72.53 kB / 3.312 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.785/11.08, allocations: 1.009 GB / 4.321 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003774/11.08, allocations: 68.52 kB / 4.321 GB, free: 34.8 MB / 0.5417 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.02162/11.1, allocations: 4.269 MB / 4.325 GB, free: 33.01 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/11.1, allocations: 8.469 kB / 4.325 GB, free: 33.01 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/11.12, allocations: 0.9789 MB / 4.326 GB, free: 32.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009853/11.13, allocations: 2.212 MB / 4.328 GB, free: 32.4 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00029/11.13, allocations: 102.2 kB / 4.328 GB, free: 32.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/11.13, allocations: 137.3 kB / 4.329 GB, free: 32.39 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009444/11.14, allocations: 2.88 MB / 4.331 GB, free: 32.38 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/11.15, allocations: 3.093 MB / 4.334 GB, free: 31.79 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001175/11.15, allocations: 13.92 kB / 4.334 GB, free: 31.79 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006309/11.15, allocations: 6.812 kB / 4.334 GB, free: 31.79 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002804/11.15, allocations: 183.8 kB / 4.335 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2042/11.35, allocations: 64.6 MB / 4.398 GB, free: 23.79 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003709/11.36, allocations: 1.284 MB / 4.399 GB, free: 23.76 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003156/11.36, allocations: 1.234 MB / 4.4 GB, free: 23.73 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06001/11.42, allocations: 16.83 MB / 4.417 GB, free: 12.71 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00386/11.42, allocations: 1.42 MB / 4.418 GB, free: 12.54 MB / 0.573 GB Notification: Performance of pre-optimization done (n=186): time 5.57e-06/11.42, allocations: 3.531 kB / 4.418 GB, free: 12.54 MB / 0.573 GB Notification: Performance of matching and sorting (n=206): time 0.07103/11.5, allocations: 10.78 MB / 4.429 GB, free: 10.61 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001981/11.5, allocations: 366.7 kB / 4.429 GB, free: 10.2 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002783/11.5, allocations: 1.173 MB / 4.43 GB, free: 10.02 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007851/11.5, allocations: 32.36 kB / 4.43 GB, free: 9.992 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007837/11.5, allocations: 0.7652 MB / 4.431 GB, free: 9.461 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001181/11.5, allocations: 0.6653 MB / 4.431 GB, free: 9.02 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/11.5, allocations: 0 / 4.431 GB, free: 9.02 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002428/11.5, allocations: 407.4 kB / 4.432 GB, free: 8.707 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003441/11.5, allocations: 1.231 MB / 4.433 GB, free: 8.699 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004382/11.51, allocations: 1.729 MB / 4.435 GB, free: 8.184 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01759/11.53, allocations: 2.257 MB / 4.437 GB, free: 8.137 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.199e-05/11.53, allocations: 6.562 kB / 4.437 GB, free: 8.137 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.0279/11.55, allocations: 4.776 MB / 4.442 GB, free: 7.945 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002045/11.56, allocations: 4.88 MB / 4.446 GB, free: 18.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.494e-05/11.56, allocations: 16.5 kB / 4.446 GB, free: 18.82 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/11.56, allocations: 315.9 kB / 4.447 GB, free: 18.78 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005513/11.56, allocations: 0.6118 MB / 4.447 GB, free: 18.77 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/11.57, allocations: 3.188 MB / 4.45 GB, free: 16.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004957/11.57, allocations: 311.1 kB / 4.451 GB, free: 16.11 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005636/11.57, allocations: 131.4 kB / 4.451 GB, free: 16.11 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/11.57, allocations: 3.75 kB / 4.451 GB, free: 16.11 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02274/11.6, allocations: 3.756 MB / 4.455 GB, free: 16 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.652e-05/11.6, allocations: 15.97 kB / 4.455 GB, free: 16 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/11.6, allocations: 322.1 kB / 4.455 GB, free: 15.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005652/11.6, allocations: 0.5981 MB / 4.455 GB, free: 15.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003754/11.61, allocations: 3.19 MB / 4.459 GB, free: 13.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005026/11.61, allocations: 314.1 kB / 4.459 GB, free: 13.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008419/11.61, allocations: 121 kB / 4.459 GB, free: 13.3 MB / 0.5886 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 $DER.junctionVolume.medium.d:DUMMY_DER(fixed = false ) "Density of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (283): * Single equations (assignments): 276 * 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.001149/11.61, allocations: 162.6 kB / 4.459 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00347/11.62, allocations: 0.7141 MB / 4.46 GB, free: 13.09 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03469/11.65, allocations: 7.778 MB / 4.467 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000145/11.65, allocations: 62.5 kB / 4.467 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/11.65, allocations: 1.781 kB / 4.467 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02934/11.68, allocations: 6.69 MB / 4.474 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04535/11.73, allocations: 12.61 MB / 4.486 GB, free: 4.031 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.032e-05/11.73, allocations: 11.94 kB / 4.486 GB, free: 4.02 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00394/11.73, allocations: 422.1 kB / 4.487 GB, free: 3.703 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/11.73, allocations: 438.2 kB / 4.487 GB, free: 3.449 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006513/11.73, allocations: 61.08 kB / 4.487 GB, free: 3.414 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003559/11.74, allocations: 3.427 MB / 4.491 GB, free: 352 kB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.58e-05/11.74, allocations: 13.97 kB / 4.491 GB, free: 340 kB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3118/12.05, allocations: 9.139 MB / 4.499 GB, free: 119.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005245/12.06, allocations: 0.7486 MB / 4.5 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002004/12.06, allocations: 33.25 kB / 4.5 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006024/12.06, allocations: 208.9 kB / 4.5 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000604/12.06, allocations: 179.5 kB / 4.501 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003329/12.06, allocations: 99.19 kB / 4.501 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002549/12.07, allocations: 1.129 MB / 4.502 GB, free: 119.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01637/12.08, allocations: 2.82 MB / 4.505 GB, free: 119.6 MB / 0.5886 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 (220): * Single equations (assignments): 200 * 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.01809/12.1, allocations: 3.305 MB / 4.508 GB, free: 119.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01643/12.12, allocations: 5.931 MB / 4.514 GB, free: 119.3 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.636e-05/12.12, allocations: 3.344 kB / 4.514 GB, free: 119.3 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.008242/12.13, allocations: 3.619 MB / 4.517 GB, free: 119.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009937/12.14, allocations: 0.9621 MB / 4.518 GB, free: 119.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/12.16, allocations: 6.434 MB / 4.524 GB, free: 117.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004912/12.16, allocations: 2.431 MB / 4.527 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of SimCode: time 2.665e-06/12.16, allocations: 2.688 kB / 4.527 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of Templates: time 0.2271/12.39, allocations: 129.3 MB / 4.653 GB, free: 100.2 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)