Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.BranchingPipes13") [: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.002408/0.002408, allocations: 169.8 kB / 8.145 MB, free: 2.133 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.796/1.796, allocations: 205.2 MB / 213.8 MB, free: 14.02 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.001312/0.001312, allocations: 97.06 kB / 261.8 MB, free: 13.66 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.2666/0.2666, allocations: 43.49 MB / 353.2 MB, free: 2.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.476e-06/8.586e-06, allocations: 0 / 417.7 MB, free: 40.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3091, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.277/6.586, allocations: 2.825 GB / 3.29 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/6.587, allocations: 84.48 kB / 3.291 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.664/10.25, allocations: 0.8641 GB / 4.155 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003661/10.25, allocations: 64.52 kB / 4.155 GB, free: 37.36 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.02417/10.28, allocations: 3.844 MB / 4.158 GB, free: 35.43 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/10.28, allocations: 6.875 kB / 4.158 GB, free: 35.43 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01465/10.29, allocations: 0.8189 MB / 4.159 GB, free: 35.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009318/10.3, allocations: 1.965 MB / 4.161 GB, free: 34.81 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/10.3, allocations: 87.95 kB / 4.161 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008119/10.3, allocations: 104 kB / 4.161 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007816/10.31, allocations: 2.414 MB / 4.164 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008615/10.32, allocations: 2.641 MB / 4.166 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.953e-05/10.32, allocations: 5.719 kB / 4.166 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003863/10.32, allocations: 5.438 kB / 4.166 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002518/10.32, allocations: 153.7 kB / 4.166 GB, free: 34.25 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6434/10.96, allocations: 125.9 MB / 4.289 GB, free: 57.88 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/10.96, allocations: 1.039 MB / 4.29 GB, free: 57.86 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002312/10.97, allocations: 0.9279 MB / 4.291 GB, free: 57.85 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05712/11.02, allocations: 17.02 MB / 4.308 GB, free: 46.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002916/11.03, allocations: 1.148 MB / 4.309 GB, free: 46.5 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=136): time 5.681e-06/11.03, allocations: 3.75 kB / 4.309 GB, free: 46.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=148): time 0.03339/11.06, allocations: 7.57 MB / 4.316 GB, free: 45.11 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/11.06, allocations: 357.5 kB / 4.317 GB, free: 44.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/11.06, allocations: 1.093 MB / 4.318 GB, free: 44.54 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005378/11.06, allocations: 37.39 kB / 4.318 GB, free: 44.51 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006562/11.06, allocations: 0.6766 MB / 4.319 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009599/11.07, allocations: 488.8 kB / 4.319 GB, free: 43.88 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002843/11.07, allocations: 3.5 kB / 4.319 GB, free: 43.88 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001764/11.07, allocations: 379.5 kB / 4.319 GB, free: 43.56 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002749/11.07, allocations: 1.023 MB / 4.32 GB, free: 43.56 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003275/11.07, allocations: 1.384 MB / 4.322 GB, free: 43.16 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0213/11.09, allocations: 2.935 MB / 4.325 GB, free: 43.1 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-05/11.09, allocations: 0 / 4.325 GB, free: 43.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.03104/11.12, allocations: 5.19 MB / 4.33 GB, free: 42.92 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007203/11.13, allocations: 3.668 MB / 4.333 GB, free: 39.08 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.232e-05/11.13, allocations: 9.141 kB / 4.333 GB, free: 39.08 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004329/11.13, allocations: 0.5679 MB / 4.334 GB, free: 39.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003869/11.13, allocations: 441 kB / 4.334 GB, free: 39.03 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004375/11.14, allocations: 3.086 MB / 4.337 GB, free: 36.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003427/11.14, allocations: 218.5 kB / 4.337 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005237/11.14, allocations: 90.77 kB / 4.338 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/11.14, allocations: 7.312 kB / 4.338 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02471/11.17, allocations: 4.125 MB / 4.342 GB, free: 36.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.368e-05/11.17, allocations: 9.375 kB / 4.342 GB, free: 36.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007381/11.17, allocations: 197.9 kB / 4.342 GB, free: 36.78 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003942/11.17, allocations: 456.2 kB / 4.342 GB, free: 36.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/11.17, allocations: 1.921 MB / 4.344 GB, free: 35.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003293/11.18, allocations: 219.5 kB / 4.344 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003766/11.18, allocations: 89.77 kB / 4.344 GB, free: 35.18 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007676/11.18, allocations: 153.6 kB / 4.345 GB, free: 35.08 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00274/11.18, allocations: 0.6092 MB / 4.345 GB, free: 35 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/11.2, allocations: 6.317 MB / 4.351 GB, free: 34.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.169e-05/11.2, allocations: 54.44 kB / 4.351 GB, free: 34.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/11.2, allocations: 3.906 kB / 4.351 GB, free: 34.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01424/11.21, allocations: 5.313 MB / 4.357 GB, free: 33.79 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/11.24, allocations: 8.756 MB / 4.365 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.911e-05/11.24, allocations: 5.5 kB / 4.365 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003202/11.24, allocations: 265.5 kB / 4.365 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005499/11.25, allocations: 1.31 MB / 4.367 GB, free: 32.86 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005731/11.25, allocations: 42.56 kB / 4.367 GB, free: 32.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00581/11.25, allocations: 3.621 MB / 4.37 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.229e-05/11.25, allocations: 8.75 kB / 4.37 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02252/11.28, allocations: 6.682 MB / 4.377 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003014/11.28, allocations: 0.6565 MB / 4.377 GB, free: 29.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001159/11.28, allocations: 28.92 kB / 4.377 GB, free: 29.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003455/11.28, allocations: 161.8 kB / 4.378 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004871/11.28, allocations: 105.3 kB / 4.378 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000248/11.28, allocations: 75.08 kB / 4.378 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002535/11.29, allocations: 1.076 MB / 4.379 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01284/11.3, allocations: 2.644 MB / 4.381 GB, free: 29.76 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (141): * Single equations (assignments): 125 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01582/11.32, allocations: 3.125 MB / 4.384 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01341/11.33, allocations: 4.855 MB / 4.389 GB, free: 29.14 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/11.33, allocations: 6.125 kB / 4.389 GB, free: 29.14 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006125/11.34, allocations: 2.609 MB / 4.392 GB, free: 29.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007674/11.34, allocations: 0.7569 MB / 4.392 GB, free: 29.01 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/11.36, allocations: 5.283 MB / 4.398 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003672/11.36, allocations: 2.182 MB / 4.4 GB, free: 27.09 MB / 0.5417 GB Notification: Performance of SimCode: time 1.583e-06/11.36, allocations: 0 / 4.4 GB, free: 27.09 MB / 0.5417 GB Notification: Performance of Templates: time 0.4037/11.76, allocations: 104.4 MB / 4.502 GB, free: 94.05 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)