Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,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.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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.BranchingPipes2") [: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.00166/0.00166, allocations: 175.2 kB / 8.147 MB, free: 2.207 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.695/1.695, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001194/0.001194, allocations: 90.2 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.2601/0.2601, allocations: 43.5 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.737e-06/8.877e-06, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3076, allocations: 58.83 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.419/6.726, allocations: 2.841 GB / 3.307 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/6.727, allocations: 88.52 kB / 3.307 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.611/10.34, allocations: 0.7994 GB / 4.106 GB, free: 40.26 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003172/10.34, allocations: 58.86 kB / 4.106 GB, free: 40.25 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02008/10.36, allocations: 3.788 MB / 4.11 GB, free: 38.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/10.36, allocations: 9.875 kB / 4.11 GB, free: 38.45 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009266/10.37, allocations: 0.8187 MB / 4.111 GB, free: 38.32 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008681/10.38, allocations: 1.991 MB / 4.113 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002486/10.38, allocations: 85.31 kB / 4.113 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000996/10.38, allocations: 110 kB / 4.113 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008169/10.39, allocations: 2.605 MB / 4.115 GB, free: 37.87 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008709/10.39, allocations: 2.591 MB / 4.118 GB, free: 37.39 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.159e-05/10.39, allocations: 4.031 kB / 4.118 GB, free: 37.39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005766/10.39, allocations: 7.656 kB / 4.118 GB, free: 37.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/10.4, allocations: 159.1 kB / 4.118 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6643/11.06, allocations: 125.3 MB / 4.24 GB, free: 126.6 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002984/11.06, allocations: 1.049 MB / 4.241 GB, free: 126.6 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002573/11.07, allocations: 1.005 MB / 4.242 GB, free: 126.6 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05849/11.12, allocations: 17.08 MB / 4.259 GB, free: 116 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003069/11.13, allocations: 1.188 MB / 4.26 GB, free: 115.8 MB / 0.573 GB Notification: Performance of pre-optimization done (n=145): time 4.84e-06/11.13, allocations: 3.094 kB / 4.26 GB, free: 115.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=157): time 0.06178/11.19, allocations: 9.191 MB / 4.269 GB, free: 114.4 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/11.19, allocations: 361.1 kB / 4.27 GB, free: 114 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/11.19, allocations: 1.042 MB / 4.271 GB, free: 113.9 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005632/11.19, allocations: 28.89 kB / 4.271 GB, free: 113.8 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005788/11.19, allocations: 0.6519 MB / 4.271 GB, free: 113.5 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009373/11.19, allocations: 0.5055 MB / 4.272 GB, free: 113.2 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/11.19, allocations: 6.578 kB / 4.272 GB, free: 113.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001705/11.19, allocations: 378.7 kB / 4.272 GB, free: 112.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002809/11.2, allocations: 1.031 MB / 4.273 GB, free: 112.9 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003547/11.2, allocations: 1.409 MB / 4.275 GB, free: 112.5 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01631/11.22, allocations: 1.984 MB / 4.276 GB, free: 112.5 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.699e-05/11.22, allocations: 3.031 kB / 4.276 GB, free: 112.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02607/11.24, allocations: 4.221 MB / 4.281 GB, free: 112.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008214/11.24, allocations: 3.661 MB / 4.284 GB, free: 108.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.112e-05/11.24, allocations: 12.22 kB / 4.284 GB, free: 108.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004155/11.25, allocations: 0.5189 MB / 4.285 GB, free: 108.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004021/11.25, allocations: 460.8 kB / 4.285 GB, free: 108.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/11.26, allocations: 2.889 MB / 4.288 GB, free: 106.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003895/11.26, allocations: 239.7 kB / 4.288 GB, free: 106.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006669/11.26, allocations: 96.84 kB / 4.288 GB, free: 106.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/11.26, allocations: 10 kB / 4.288 GB, free: 106.4 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02003/11.28, allocations: 3.186 MB / 4.291 GB, free: 106.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.463e-05/11.28, allocations: 10.66 kB / 4.291 GB, free: 106.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007423/11.28, allocations: 191.6 kB / 4.292 GB, free: 106.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004095/11.29, allocations: 473.9 kB / 4.292 GB, free: 106.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/11.29, allocations: 1.92 MB / 4.294 GB, free: 104.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003768/11.29, allocations: 245.8 kB / 4.294 GB, free: 104.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006658/11.29, allocations: 92.7 kB / 4.294 GB, free: 104.8 MB / 0.573 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.0009154/11.29, allocations: 151.5 kB / 4.294 GB, free: 104.7 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002869/11.3, allocations: 0.6114 MB / 4.295 GB, free: 104.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0257/11.32, allocations: 6.735 MB / 4.302 GB, free: 104.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.481e-05/11.32, allocations: 48.19 kB / 4.302 GB, free: 104.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/11.32, allocations: 5.812 kB / 4.302 GB, free: 104.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02142/11.34, allocations: 5.838 MB / 4.307 GB, free: 103.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0338/11.38, allocations: 10.21 MB / 4.317 GB, free: 102.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.53e-05/11.38, allocations: 6.75 kB / 4.317 GB, free: 102.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002649/11.38, allocations: 296.5 kB / 4.318 GB, free: 102.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003587/11.38, allocations: 1.162 MB / 4.319 GB, free: 102.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005206/11.38, allocations: 50.02 kB / 4.319 GB, free: 102.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004145/11.39, allocations: 3.409 MB / 4.322 GB, free: 99.99 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/11.39, allocations: 8.75 kB / 4.322 GB, free: 99.99 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02659/11.41, allocations: 7.661 MB / 4.33 GB, free: 98.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002367/11.42, allocations: 0.6599 MB / 4.33 GB, free: 98.68 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009509/11.42, allocations: 26.31 kB / 4.33 GB, free: 98.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003173/11.42, allocations: 161.4 kB / 4.33 GB, free: 98.67 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005163/11.42, allocations: 132.3 kB / 4.33 GB, free: 98.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002795/11.42, allocations: 75.8 kB / 4.331 GB, free: 98.66 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002492/11.42, allocations: 1.034 MB / 4.332 GB, free: 98.55 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0131/11.44, allocations: 2.504 MB / 4.334 GB, free: 98.51 MB / 0.573 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,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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.01551/11.45, allocations: 2.921 MB / 4.337 GB, free: 98.24 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01221/11.47, allocations: 4.881 MB / 4.342 GB, free: 98.07 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/11.47, allocations: 1.812 kB / 4.342 GB, free: 98.07 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006417/11.47, allocations: 2.978 MB / 4.345 GB, free: 97.98 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007086/11.48, allocations: 0.683 MB / 4.345 GB, free: 97.97 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/11.49, allocations: 5.409 MB / 4.351 GB, free: 96.91 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003901/11.5, allocations: 2.174 MB / 4.353 GB, free: 96.15 MB / 0.573 GB Notification: Performance of SimCode: time 1.894e-06/11.5, allocations: 0.75 kB / 4.353 GB, free: 96.15 MB / 0.573 GB Notification: Performance of Templates: time 0.1777/11.68, allocations: 102.7 MB / 4.453 GB, free: 52.64 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes2/BranchingPipes2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches