Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,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|splitter.medium.h|splitter.medium.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.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.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.BranchingPipes4") [: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.001547/0.001547, allocations: 175.6 kB / 8.148 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.689/1.689, 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.001259/0.001259, allocations: 91.73 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.2837/0.2837, allocations: 43.48 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.116e-06/8.435e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2949, allocations: 58.83 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.403/6.698, allocations: 2.829 GB / 3.294 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/6.698, allocations: 75.73 kB / 3.294 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.973/10.67, allocations: 0.9002 GB / 4.194 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002854/10.67, allocations: 67.62 kB / 4.194 GB, free: 26.32 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.0184/10.69, allocations: 4.058 MB / 4.198 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/10.69, allocations: 8.031 kB / 4.198 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009949/10.7, allocations: 0.9139 MB / 4.199 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008555/10.71, allocations: 2.091 MB / 4.201 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/10.71, allocations: 95.98 kB / 4.201 GB, free: 19.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007794/10.71, allocations: 116 kB / 4.202 GB, free: 18.97 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008019/10.72, allocations: 2.753 MB / 4.204 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008013/10.73, allocations: 2.956 MB / 4.207 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.053e-05/10.73, allocations: 11.84 kB / 4.207 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003913/10.73, allocations: 4 kB / 4.207 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002204/10.73, allocations: 175.8 kB / 4.207 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6517/11.38, allocations: 127.3 MB / 4.332 GB, free: 38.72 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003276/11.38, allocations: 1.131 MB / 4.333 GB, free: 38.7 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002506/11.38, allocations: 1.01 MB / 4.334 GB, free: 38.68 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06064/11.44, allocations: 17.02 MB / 4.35 GB, free: 27.5 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00308/11.45, allocations: 1.217 MB / 4.352 GB, free: 27.33 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 5.33e-06/11.45, allocations: 2.906 kB / 4.352 GB, free: 27.33 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.03644/11.48, allocations: 8.148 MB / 4.359 GB, free: 25.85 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002369/11.48, allocations: 358.6 kB / 4.36 GB, free: 25.44 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002703/11.49, allocations: 1.179 MB / 4.361 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005809/11.49, allocations: 28.11 kB / 4.361 GB, free: 25.24 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007436/11.49, allocations: 0.7507 MB / 4.362 GB, free: 24.82 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009807/11.49, allocations: 0.5487 MB / 4.362 GB, free: 24.54 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002483/11.49, allocations: 0 / 4.362 GB, free: 24.54 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002447/11.49, allocations: 391.8 kB / 4.363 GB, free: 24.23 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002976/11.49, allocations: 1.121 MB / 4.364 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003394/11.5, allocations: 1.531 MB / 4.365 GB, free: 23.76 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02196/11.52, allocations: 3.056 MB / 4.368 GB, free: 23.69 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-05/11.52, allocations: 3.656 kB / 4.368 GB, free: 23.69 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0309/11.55, allocations: 5.324 MB / 4.373 GB, free: 39.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001803/11.55, allocations: 4.271 MB / 4.378 GB, free: 35.02 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.411e-05/11.55, allocations: 8.812 kB / 4.378 GB, free: 35.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/11.55, allocations: 230.2 kB / 4.378 GB, free: 34.99 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004576/11.56, allocations: 0.5269 MB / 4.378 GB, free: 34.98 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002663/11.56, allocations: 2.483 MB / 4.381 GB, free: 32.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003805/11.56, allocations: 244 kB / 4.381 GB, free: 32.87 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004261/11.56, allocations: 111 kB / 4.381 GB, free: 32.87 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/11.56, allocations: 3.844 kB / 4.381 GB, free: 32.87 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02542/11.59, allocations: 4.35 MB / 4.385 GB, free: 32.75 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-05/11.59, allocations: 9.75 kB / 4.385 GB, free: 32.75 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009169/11.59, allocations: 235 kB / 4.386 GB, free: 32.71 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004358/11.6, allocations: 0.509 MB / 4.386 GB, free: 32.71 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002582/11.6, allocations: 2.486 MB / 4.389 GB, free: 30.63 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/11.6, allocations: 246.5 kB / 4.389 GB, free: 30.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/11.6, allocations: 108.2 kB / 4.389 GB, free: 30.6 MB / 0.573 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 (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_b.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,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.0008178/11.6, allocations: 152.7 kB / 4.389 GB, free: 30.5 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002757/11.61, allocations: 0.6579 MB / 4.39 GB, free: 30.4 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01508/11.62, allocations: 6.065 MB / 4.396 GB, free: 29.93 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-05/11.62, allocations: 54.61 kB / 4.396 GB, free: 29.93 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/11.62, allocations: 128 / 4.396 GB, free: 29.93 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01108/11.63, allocations: 5.049 MB / 4.401 GB, free: 29.23 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02102/11.65, allocations: 9.019 MB / 4.409 GB, free: 28.08 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/11.65, allocations: 3.797 kB / 4.409 GB, free: 28.08 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/11.66, allocations: 335.1 kB / 4.41 GB, free: 28.08 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/11.66, allocations: 320.9 kB / 4.41 GB, free: 28.03 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004342/11.66, allocations: 52.03 kB / 4.41 GB, free: 28.03 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002567/11.66, allocations: 2.658 MB / 4.413 GB, free: 25.94 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/11.66, allocations: 3.906 kB / 4.413 GB, free: 25.94 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01807/11.68, allocations: 6.773 MB / 4.419 GB, free: 25.38 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002511/11.68, allocations: 0.6973 MB / 4.42 GB, free: 25.15 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009919/11.68, allocations: 25.61 kB / 4.42 GB, free: 25.14 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003591/11.69, allocations: 191.9 kB / 4.42 GB, free: 25.12 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000681/11.69, allocations: 129.9 kB / 4.42 GB, free: 25.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003031/11.69, allocations: 75.33 kB / 4.42 GB, free: 25.12 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002819/11.69, allocations: 1.128 MB / 4.421 GB, free: 25.01 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01386/11.7, allocations: 2.78 MB / 4.424 GB, free: 24.97 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.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,splitter.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 (175): * Single equations (assignments): 158 * 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.01624/11.72, allocations: 3.22 MB / 4.427 GB, free: 24.51 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0149/11.73, allocations: 5.189 MB / 4.432 GB, free: 24.33 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/11.74, allocations: 4.281 kB / 4.432 GB, free: 24.33 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005547/11.74, allocations: 2.634 MB / 4.435 GB, free: 24.25 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008314/11.75, allocations: 0.8229 MB / 4.436 GB, free: 24.21 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/11.77, allocations: 5.585 MB / 4.441 GB, free: 22.33 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004531/11.77, allocations: 2.269 MB / 4.443 GB, free: 20.64 MB / 0.573 GB Notification: Performance of SimCode: time 2.415e-06/11.77, allocations: 0 / 4.443 GB, free: 20.64 MB / 0.573 GB Notification: Performance of Templates: time 0.4572/12.23, allocations: 111 MB / 4.552 GB, free: 104.8 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches