Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") [: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.001012/0.001012, allocations: 193.1 kB / 7.806 MB, free: 2.496 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.031/1.031, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0008437/0.0008436, allocations: 98.55 kB / 261.4 MB, free: 13.53 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.1539/0.1539, allocations: 43.5 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.129e-06/5.149e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1944, allocations: 58.84 MB / 476.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.765/3.959, allocations: 2.846 GB / 3.311 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/3.959, allocations: 80.84 kB / 3.311 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.646/6.606, allocations: 0.9035 GB / 4.215 GB, free: 31.68 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000307/6.606, allocations: 70.44 kB / 4.215 GB, free: 31.66 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.01691/6.623, allocations: 3.98 MB / 4.218 GB, free: 29.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/6.623, allocations: 8.906 kB / 4.218 GB, free: 29.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007173/6.63, allocations: 0.9129 MB / 4.219 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007001/6.637, allocations: 2.115 MB / 4.221 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002644/6.637, allocations: 98.06 kB / 4.222 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009668/6.638, allocations: 118.8 kB / 4.222 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005899/6.644, allocations: 2.706 MB / 4.224 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006697/6.651, allocations: 2.921 MB / 4.227 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.31e-05/6.651, allocations: 7.906 kB / 4.227 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005694/6.652, allocations: 6.469 kB / 4.227 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002354/6.652, allocations: 180.5 kB / 4.227 GB, free: 26.06 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4599/7.112, allocations: 127.3 MB / 4.352 GB, free: 38.67 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/7.114, allocations: 1.152 MB / 4.353 GB, free: 38.64 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/7.115, allocations: 1.109 MB / 4.354 GB, free: 38.62 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02891/7.144, allocations: 16.97 MB / 4.37 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002122/7.146, allocations: 1.285 MB / 4.372 GB, free: 27.27 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=163): time 3.477e-06/7.146, allocations: 0 / 4.372 GB, free: 27.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=179): time 0.03439/7.18, allocations: 9.901 MB / 4.381 GB, free: 25.72 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/7.18, allocations: 363.9 kB / 4.382 GB, free: 25.31 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/7.182, allocations: 1.112 MB / 4.383 GB, free: 25.14 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001662/7.182, allocations: 31.8 kB / 4.383 GB, free: 25.11 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006262/7.183, allocations: 0.7681 MB / 4.384 GB, free: 24.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005146/7.183, allocations: 0.5786 MB / 4.384 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/7.183, allocations: 0 / 4.384 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001306/7.184, allocations: 392.9 kB / 4.385 GB, free: 40.16 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/7.185, allocations: 1.123 MB / 4.386 GB, free: 40.16 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/7.187, allocations: 1.567 MB / 4.387 GB, free: 39.7 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008482/7.195, allocations: 2.117 MB / 4.389 GB, free: 39.64 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/7.195, allocations: 9.328 kB / 4.389 GB, free: 39.64 MB / 0.5573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01336/7.209, allocations: 4.491 MB / 4.394 GB, free: 39.42 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001527/7.21, allocations: 4.342 MB / 4.398 GB, free: 34.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/7.21, allocations: 12.44 kB / 4.398 GB, free: 34.94 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005763/7.211, allocations: 222.9 kB / 4.398 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002066/7.213, allocations: 0.5284 MB / 4.399 GB, free: 34.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/7.214, allocations: 2.487 MB / 4.401 GB, free: 32.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002905/7.217, allocations: 316.7 kB / 4.401 GB, free: 32.78 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/7.218, allocations: 106.3 kB / 4.401 GB, free: 32.78 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/7.218, allocations: 9.812 kB / 4.401 GB, free: 32.78 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01037/7.228, allocations: 3.419 MB / 4.405 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/7.228, allocations: 10.81 kB / 4.405 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005218/7.229, allocations: 225.9 kB / 4.405 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001984/7.231, allocations: 0.5314 MB / 4.406 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/7.232, allocations: 2.485 MB / 4.408 GB, free: 30.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002724/7.235, allocations: 282.4 kB / 4.408 GB, free: 30.52 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/7.235, allocations: 104.1 kB / 4.408 GB, free: 30.52 MB / 0.5573 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0006943/7.236, allocations: 233.6 kB / 4.409 GB, free: 30.35 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00186/7.238, allocations: 0.6594 MB / 4.409 GB, free: 30.25 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01492/7.253, allocations: 6.799 MB / 4.416 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-05/7.253, allocations: 53.5 kB / 4.416 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/7.253, allocations: 4.125 kB / 4.416 GB, free: 29.75 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01257/7.265, allocations: 5.864 MB / 4.422 GB, free: 29.04 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02142/7.287, allocations: 11.15 MB / 4.433 GB, free: 27.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/7.287, allocations: 7.844 kB / 4.433 GB, free: 27.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/7.288, allocations: 366 kB / 4.433 GB, free: 27.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000874/7.289, allocations: 331.4 kB / 4.433 GB, free: 27.24 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/7.29, allocations: 56.58 kB / 4.433 GB, free: 27.24 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001686/7.291, allocations: 2.669 MB / 4.436 GB, free: 25.15 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.338e-06/7.291, allocations: 9.031 kB / 4.436 GB, free: 25.15 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01681/7.308, allocations: 8.121 MB / 4.444 GB, free: 23.85 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002015/7.31, allocations: 0.6924 MB / 4.444 GB, free: 23.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004696/7.311, allocations: 27.5 kB / 4.444 GB, free: 23.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00174/7.312, allocations: 192.2 kB / 4.445 GB, free: 23.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/7.313, allocations: 148.9 kB / 4.445 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002057/7.313, allocations: 93.95 kB / 4.445 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001488/7.314, allocations: 1.072 MB / 4.446 GB, free: 23.48 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0116/7.326, allocations: 2.666 MB / 4.449 GB, free: 23.46 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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,junctionIdeal.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 (188): * Single equations (assignments): 171 * 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.01294/7.339, allocations: 3.101 MB / 4.452 GB, free: 23.02 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01132/7.35, allocations: 5.275 MB / 4.457 GB, free: 22.83 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-05/7.35, allocations: 0 / 4.457 GB, free: 22.83 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004301/7.355, allocations: 3.189 MB / 4.46 GB, free: 22.75 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004572/7.359, allocations: 0.813 MB / 4.461 GB, free: 22.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/7.37, allocations: 5.781 MB / 4.466 GB, free: 20.58 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002569/7.373, allocations: 2.331 MB / 4.469 GB, free: 18.83 MB / 0.5573 GB Notification: Performance of SimCode: time 2.264e-06/7.373, allocations: 0 / 4.469 GB, free: 18.83 MB / 0.5573 GB Notification: Performance of Templates: time 0.363/7.736, allocations: 89.79 MB / 4.556 GB, free: 103 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes14/BranchingPipes14.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches