Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 191.1 kB / 7.804 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.129/1.129, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008777/0.0008778, allocations: 99 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1706/0.1706, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.441e-06/5.461e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.283, allocations: 58.84 MB / 476.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.692/4.975, allocations: 2.829 GB / 3.294 GB, free: 54.51 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/4.976, allocations: 79.95 kB / 3.294 GB, free: 54.43 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.52/7.496, allocations: 0.9002 GB / 4.194 GB, free: 38.85 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001706/7.496, allocations: 72.28 kB / 4.195 GB, free: 38.85 MB / 0.5417 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.0113/7.507, allocations: 4.05 MB / 4.198 GB, free: 37.16 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/7.507, allocations: 6.875 kB / 4.198 GB, free: 37.16 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005547/7.513, allocations: 0.91 MB / 4.199 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004033/7.517, allocations: 2.098 MB / 4.201 GB, free: 36.57 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-05/7.517, allocations: 94.59 kB / 4.201 GB, free: 36.57 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002551/7.517, allocations: 115.4 kB / 4.202 GB, free: 36.57 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003469/7.521, allocations: 2.759 MB / 4.204 GB, free: 36.56 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003419/7.524, allocations: 2.954 MB / 4.207 GB, free: 36.05 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.556e-05/7.524, allocations: 9.844 kB / 4.207 GB, free: 36.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002067/7.524, allocations: 6.438 kB / 4.207 GB, free: 36.04 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/7.524, allocations: 174.2 kB / 4.207 GB, free: 36.04 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2162/7.741, allocations: 127.3 MB / 4.332 GB, free: 20 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/7.742, allocations: 1.133 MB / 4.333 GB, free: 19.97 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/7.744, allocations: 1.011 MB / 4.334 GB, free: 19.96 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03041/7.774, allocations: 17.01 MB / 4.35 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002173/7.776, allocations: 1.219 MB / 4.352 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=153): time 4.398e-06/7.776, allocations: 0 / 4.352 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of matching and sorting (n=169): time 0.02115/7.798, allocations: 8.157 MB / 4.36 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/7.798, allocations: 363.7 kB / 4.36 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/7.8, allocations: 1.176 MB / 4.361 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.000169/7.8, allocations: 28.27 kB / 4.361 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005747/7.801, allocations: 0.7862 MB / 4.362 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004386/7.801, allocations: 0.5471 MB / 4.362 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/7.801, allocations: 1.094 kB / 4.362 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001569/7.801, allocations: 390.8 kB / 4.363 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/7.803, allocations: 1.119 MB / 4.364 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001824/7.805, allocations: 1.531 MB / 4.365 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01139/7.816, allocations: 3.052 MB / 4.368 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/7.816, allocations: 3.188 kB / 4.368 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01609/7.832, allocations: 5.43 MB / 4.374 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001213/7.834, allocations: 4.339 MB / 4.378 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.452e-05/7.834, allocations: 15.2 kB / 4.378 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005596/7.834, allocations: 223.9 kB / 4.378 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002024/7.836, allocations: 0.5173 MB / 4.379 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/7.838, allocations: 2.488 MB / 4.381 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/7.841, allocations: 283.9 kB / 4.381 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002986/7.841, allocations: 104.7 kB / 4.381 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/7.841, allocations: 5.438 kB / 4.381 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01351/7.854, allocations: 4.347 MB / 4.386 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.064e-05/7.855, allocations: 10.72 kB / 4.386 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000552/7.855, allocations: 224.4 kB / 4.386 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/7.857, allocations: 0.515 MB / 4.386 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/7.859, allocations: 2.486 MB / 4.389 GB, free: 11.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/7.861, allocations: 258.5 kB / 4.389 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002446/7.861, allocations: 103.6 kB / 4.389 GB, free: 11.12 MB / 0.6198 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.0007348/7.862, allocations: 230 kB / 4.389 GB, free: 10.92 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001942/7.864, allocations: 0.6543 MB / 4.39 GB, free: 10.52 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007646/7.872, allocations: 6.067 MB / 4.396 GB, free: 7.051 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-05/7.872, allocations: 54.94 kB / 4.396 GB, free: 7.027 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/7.872, allocations: 4 kB / 4.396 GB, free: 7.023 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005715/7.877, allocations: 5.052 MB / 4.401 GB, free: 3.895 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1924/8.07, allocations: 9.189 MB / 4.41 GB, free: 156.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/8.07, allocations: 3.797 kB / 4.41 GB, free: 156.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/8.071, allocations: 335 kB / 4.41 GB, free: 156.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008011/8.072, allocations: 328.1 kB / 4.41 GB, free: 156.8 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001819/8.072, allocations: 45.23 kB / 4.411 GB, free: 156.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/8.074, allocations: 2.66 MB / 4.413 GB, free: 154.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/8.074, allocations: 0 / 4.413 GB, free: 154.7 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008404/8.082, allocations: 6.781 MB / 4.42 GB, free: 154.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/8.083, allocations: 0.6902 MB / 4.42 GB, free: 154.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004205/8.084, allocations: 23.77 kB / 4.42 GB, free: 154.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/8.085, allocations: 181.2 kB / 4.421 GB, free: 154.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/8.085, allocations: 129.8 kB / 4.421 GB, free: 154.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/8.086, allocations: 74.47 kB / 4.421 GB, free: 154.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001234/8.087, allocations: 1.13 MB / 4.422 GB, free: 154.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.007637/8.095, allocations: 2.773 MB / 4.425 GB, free: 154.1 MB / 0.6198 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.00883/8.103, allocations: 3.215 MB / 4.428 GB, free: 153.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006605/8.11, allocations: 5.244 MB / 4.433 GB, free: 153.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.82e-06/8.11, allocations: 0 / 4.433 GB, free: 153.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002637/8.113, allocations: 2.64 MB / 4.435 GB, free: 153.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003951/8.117, allocations: 0.8288 MB / 4.436 GB, free: 153.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008592/8.125, allocations: 5.573 MB / 4.442 GB, free: 152.7 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00216/8.127, allocations: 2.315 MB / 4.444 GB, free: 152 MB / 0.6198 GB Notification: Performance of SimCode: time 9.12e-07/8.127, allocations: 0 / 4.444 GB, free: 152 MB / 0.6198 GB Notification: Performance of Templates: time 0.1076/8.235, allocations: 91.63 MB / 4.533 GB, free: 147.5 MB / 0.6198 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches