Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002639/0.002639, 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.782/1.782, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001298/0.001297, allocations: 88.31 kB / 261.8 MB, free: 13.62 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.276/0.276, allocations: 43.5 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.636e-06/8.947e-06, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3149, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.268/6.583, allocations: 2.846 GB / 3.311 GB, free: 99.64 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/6.583, allocations: 80.61 kB / 3.311 GB, free: 99.64 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.88/10.46, allocations: 0.9035 GB / 4.215 GB, free: 6.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002874/10.46, allocations: 63.83 kB / 4.215 GB, free: 6.512 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01817/10.48, allocations: 3.986 MB / 4.218 GB, free: 2.473 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/10.48, allocations: 8.031 kB / 4.218 GB, free: 2.465 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01001/10.49, allocations: 0.9139 MB / 4.219 GB, free: 1.547 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008689/10.5, allocations: 2.115 MB / 4.221 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002765/10.5, allocations: 95.89 kB / 4.222 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008576/10.5, allocations: 124 kB / 4.222 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009407/10.51, allocations: 2.702 MB / 4.224 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/10.52, allocations: 2.924 MB / 4.227 GB, free: 9.363 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-05/10.52, allocations: 7.938 kB / 4.227 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004362/10.52, allocations: 12 kB / 4.227 GB, free: 9.344 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002956/10.52, allocations: 171.7 kB / 4.227 GB, free: 9.176 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.663/11.19, allocations: 127.3 MB / 4.352 GB, free: 39.39 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003109/11.19, allocations: 1.156 MB / 4.353 GB, free: 39.36 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00252/11.19, allocations: 1.099 MB / 4.354 GB, free: 39.35 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05913/11.25, allocations: 16.98 MB / 4.37 GB, free: 28.16 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003696/11.25, allocations: 1.277 MB / 4.372 GB, free: 27.99 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 5.39e-06/11.25, allocations: 0 / 4.372 GB, free: 27.99 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.08724/11.34, allocations: 9.893 MB / 4.381 GB, free: 42.38 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002625/11.34, allocations: 360.7 kB / 4.382 GB, free: 41.98 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/11.35, allocations: 1.114 MB / 4.383 GB, free: 41.81 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0007292/11.35, allocations: 33.11 kB / 4.383 GB, free: 41.78 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009818/11.35, allocations: 0.7394 MB / 4.384 GB, free: 41.37 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001332/11.35, allocations: 0.5717 MB / 4.384 GB, free: 41.07 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003314/11.35, allocations: 1.031 kB / 4.384 GB, free: 41.07 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0003222/11.35, allocations: 393.6 kB / 4.384 GB, free: 40.76 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004232/11.35, allocations: 1.125 MB / 4.386 GB, free: 40.75 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004768/11.36, allocations: 1.571 MB / 4.387 GB, free: 40.3 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02233/11.38, allocations: 2.112 MB / 4.389 GB, free: 40.25 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.529e-05/11.38, allocations: 3.625 kB / 4.389 GB, free: 40.25 MB / 0.5886 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.03572/11.42, allocations: 4.393 MB / 4.393 GB, free: 40.07 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001837/11.42, allocations: 4.267 MB / 4.398 GB, free: 35.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-05/11.42, allocations: 14.56 kB / 4.398 GB, free: 35.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/11.42, allocations: 226.4 kB / 4.398 GB, free: 35.56 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00478/11.42, allocations: 0.5314 MB / 4.398 GB, free: 35.55 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/11.43, allocations: 2.481 MB / 4.401 GB, free: 33.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00423/11.43, allocations: 286 kB / 4.401 GB, free: 33.44 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005225/11.43, allocations: 114.2 kB / 4.401 GB, free: 33.44 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/11.43, allocations: 3.125 kB / 4.401 GB, free: 33.44 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02067/11.45, allocations: 3.417 MB / 4.405 GB, free: 33.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.184e-05/11.45, allocations: 13.19 kB / 4.405 GB, free: 33.34 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009326/11.45, allocations: 229.4 kB / 4.405 GB, free: 33.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004527/11.46, allocations: 0.5218 MB / 4.405 GB, free: 33.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/11.46, allocations: 2.486 MB / 4.408 GB, free: 31.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004063/11.47, allocations: 286.2 kB / 4.408 GB, free: 31.18 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003728/11.47, allocations: 105.3 kB / 4.408 GB, free: 31.18 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (250): * Single equations (assignments): 244 * 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.0008374/11.47, allocations: 163.8 kB / 4.408 GB, free: 31.08 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002873/11.47, allocations: 0.6584 MB / 4.409 GB, free: 30.98 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02769/11.5, allocations: 6.789 MB / 4.415 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-05/11.5, allocations: 51.7 kB / 4.416 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/11.5, allocations: 3.375 kB / 4.416 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02385/11.52, allocations: 5.868 MB / 4.421 GB, free: 29.77 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03941/11.56, allocations: 11.17 MB / 4.432 GB, free: 28.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.02e-05/11.56, allocations: 6.938 kB / 4.432 GB, free: 28.02 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003056/11.56, allocations: 366.1 kB / 4.433 GB, free: 28.01 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/11.56, allocations: 326.4 kB / 4.433 GB, free: 27.96 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003637/11.57, allocations: 56.95 kB / 4.433 GB, free: 27.96 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/11.57, allocations: 2.674 MB / 4.436 GB, free: 25.87 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.341e-05/11.57, allocations: 13.62 kB / 4.436 GB, free: 25.86 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03002/11.6, allocations: 8.108 MB / 4.443 GB, free: 24.58 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/11.6, allocations: 0.7007 MB / 4.444 GB, free: 24.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008715/11.6, allocations: 28.39 kB / 4.444 GB, free: 24.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00344/11.6, allocations: 200.7 kB / 4.444 GB, free: 24.32 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000517/11.61, allocations: 152.2 kB / 4.444 GB, free: 24.32 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002872/11.61, allocations: 89 kB / 4.445 GB, free: 24.31 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002335/11.61, allocations: 1.07 MB / 4.446 GB, free: 24.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01262/11.62, allocations: 2.662 MB / 4.448 GB, free: 24.2 MB / 0.5886 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 (188): * Single equations (assignments): 171 * 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.01572/11.64, allocations: 3.107 MB / 4.451 GB, free: 23.31 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0126/11.65, allocations: 5.218 MB / 4.456 GB, free: 20.32 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/11.65, allocations: 0 / 4.456 GB, free: 20.32 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006986/11.66, allocations: 3.175 MB / 4.459 GB, free: 18.75 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007818/11.66, allocations: 0.808 MB / 4.46 GB, free: 18.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/11.68, allocations: 5.802 MB / 4.466 GB, free: 14.12 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003744/11.68, allocations: 2.286 MB / 4.468 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of SimCode: time 1.643e-06/11.68, allocations: 0 / 4.468 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of Templates: time 0.4512/12.13, allocations: 109.7 MB / 4.575 GB, free: 118.7 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)