Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,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.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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.BranchingPipes3") [: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.002421/0.002421, allocations: 174.7 kB / 8.147 MB, free: 2.211 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.793/1.793, 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.001273/0.001273, allocations: 98.3 kB / 261.8 MB, free: 13.64 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.3598/0.3598, allocations: 43.49 MB / 353.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/8.075e-06, allocations: 0 / 417.7 MB, free: 40.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2945, allocations: 58.84 MB / 476.5 MB, free: 5.102 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.467/6.761, allocations: 2.842 GB / 3.307 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/6.761, allocations: 80.72 kB / 3.307 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.837/10.6, allocations: 0.8692 GB / 4.177 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003369/10.6, allocations: 65.89 kB / 4.177 GB, free: 34.34 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.01873/10.62, allocations: 3.779 MB / 4.18 GB, free: 32.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/10.62, allocations: 12.22 kB / 4.18 GB, free: 32.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009497/10.63, allocations: 0.8164 MB / 4.181 GB, free: 32.08 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008926/10.64, allocations: 1.99 MB / 4.183 GB, free: 31.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002765/10.64, allocations: 81.62 kB / 4.183 GB, free: 31.17 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009905/10.64, allocations: 115.7 kB / 4.183 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008356/10.65, allocations: 2.373 MB / 4.186 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009405/10.66, allocations: 2.608 MB / 4.188 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.513e-05/10.66, allocations: 6.219 kB / 4.188 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003953/10.66, allocations: 10.19 kB / 4.188 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002698/10.66, allocations: 155.2 kB / 4.188 GB, free: 29.19 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.66/11.32, allocations: 125.6 MB / 4.311 GB, free: 42.59 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/11.32, allocations: 1.044 MB / 4.312 GB, free: 42.56 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002615/11.32, allocations: 1.002 MB / 4.313 GB, free: 42.55 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06672/11.39, allocations: 17.09 MB / 4.33 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003146/11.39, allocations: 1.181 MB / 4.331 GB, free: 31.11 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=145): time 5.651e-06/11.39, allocations: 0 / 4.331 GB, free: 31.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=157): time 0.06155/11.45, allocations: 9.199 MB / 4.34 GB, free: 29.66 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/11.45, allocations: 362.7 kB / 4.34 GB, free: 29.25 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/11.46, allocations: 1.055 MB / 4.341 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005932/11.46, allocations: 33.02 kB / 4.341 GB, free: 29.05 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005912/11.46, allocations: 0.6645 MB / 4.342 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008617/11.46, allocations: 0.5012 MB / 4.342 GB, free: 28.42 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002101/11.46, allocations: 5.094 kB / 4.342 GB, free: 28.42 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002533/11.46, allocations: 379 kB / 4.343 GB, free: 44.11 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002603/11.46, allocations: 1.025 MB / 4.344 GB, free: 44.11 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/11.46, allocations: 1.414 MB / 4.345 GB, free: 43.71 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01597/11.48, allocations: 1.984 MB / 4.347 GB, free: 43.67 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.089e-05/11.48, allocations: 3.438 kB / 4.347 GB, free: 43.67 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02553/11.51, allocations: 4.227 MB / 4.351 GB, free: 43.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001524/11.51, allocations: 3.659 MB / 4.355 GB, free: 39.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.36e-05/11.51, allocations: 13.06 kB / 4.355 GB, free: 39.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00415/11.51, allocations: 0.5248 MB / 4.355 GB, free: 39.61 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003907/11.52, allocations: 447.9 kB / 4.356 GB, free: 39.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003799/11.52, allocations: 2.901 MB / 4.358 GB, free: 37.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003838/11.52, allocations: 245 kB / 4.359 GB, free: 37.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004338/11.52, allocations: 97.11 kB / 4.359 GB, free: 37.49 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/11.52, allocations: 6.938 kB / 4.359 GB, free: 37.48 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01921/11.54, allocations: 3.187 MB / 4.362 GB, free: 37.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.912e-05/11.54, allocations: 9.625 kB / 4.362 GB, free: 37.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007376/11.54, allocations: 196 kB / 4.362 GB, free: 37.37 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003869/11.55, allocations: 461.5 kB / 4.363 GB, free: 37.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/11.55, allocations: 1.919 MB / 4.364 GB, free: 35.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003728/11.55, allocations: 244.3 kB / 4.365 GB, free: 35.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004423/11.55, allocations: 99.31 kB / 4.365 GB, free: 35.77 MB / 0.5573 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008383/11.55, allocations: 164 kB / 4.365 GB, free: 35.67 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002838/11.56, allocations: 0.6085 MB / 4.365 GB, free: 35.58 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02465/11.58, allocations: 6.734 MB / 4.372 GB, free: 35.07 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.534e-05/11.58, allocations: 51.31 kB / 4.372 GB, free: 35.07 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/11.58, allocations: 3.25 kB / 4.372 GB, free: 35.07 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02048/11.6, allocations: 5.844 MB / 4.378 GB, free: 34.35 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03296/11.64, allocations: 10.23 MB / 4.388 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/11.64, allocations: 3.594 kB / 4.388 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002524/11.64, allocations: 298.5 kB / 4.388 GB, free: 33.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003529/11.64, allocations: 1.17 MB / 4.389 GB, free: 32.98 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004821/11.64, allocations: 45.86 kB / 4.389 GB, free: 32.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004372/11.65, allocations: 3.399 MB / 4.393 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.394e-05/11.65, allocations: 12.81 kB / 4.393 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02616/11.67, allocations: 7.664 MB / 4.4 GB, free: 29.74 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002525/11.68, allocations: 0.6606 MB / 4.401 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009331/11.68, allocations: 22.19 kB / 4.401 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00327/11.68, allocations: 166.3 kB / 4.401 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004845/11.68, allocations: 131.2 kB / 4.401 GB, free: 29.48 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002799/11.68, allocations: 76.86 kB / 4.401 GB, free: 29.48 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002628/11.68, allocations: 1.038 MB / 4.402 GB, free: 29.38 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01289/11.7, allocations: 2.537 MB / 4.405 GB, free: 29.38 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (155): * Single equations (assignments): 139 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01555/11.71, allocations: 3.025 MB / 4.408 GB, free: 28.95 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01142/11.72, allocations: 4.87 MB / 4.412 GB, free: 28.77 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/11.72, allocations: 3.719 kB / 4.412 GB, free: 28.77 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00617/11.73, allocations: 2.965 MB / 4.415 GB, free: 28.69 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007839/11.74, allocations: 0.7579 MB / 4.416 GB, free: 28.64 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01502/11.75, allocations: 5.434 MB / 4.421 GB, free: 27.37 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003575/11.76, allocations: 2.187 MB / 4.423 GB, free: 26.58 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/11.76, allocations: 0 / 4.423 GB, free: 26.58 MB / 0.5573 GB Notification: Performance of Templates: time 0.4114/12.17, allocations: 104.3 MB / 4.525 GB, free: 107.1 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)