Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") [: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 trunk/package.mo): time 0.001597/0.001597, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001205/0.001205, allocations: 92.03 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2714/0.2714, allocations: 45.15 MB / 383.4 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.243e-05/1.255e-05, allocations: 4 kB / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.189, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.272/7.461, allocations: 2.852 GB / 3.356 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/7.461, allocations: 79.95 kB / 3.356 GB, free: 65.45 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.362/10.82, allocations: 1.02 GB / 4.376 GB, free: 38.62 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002956/10.82, allocations: 77.44 kB / 4.377 GB, free: 38.61 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01595/10.84, allocations: 4.267 MB / 4.381 GB, free: 36.71 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/10.84, allocations: 15.81 kB / 4.381 GB, free: 36.71 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007673/10.85, allocations: 0.9776 MB / 4.382 GB, free: 36.55 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007334/10.85, allocations: 2.228 MB / 4.384 GB, free: 36.09 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002988/10.85, allocations: 99.8 kB / 4.384 GB, free: 36.09 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001201/10.86, allocations: 133.3 kB / 4.384 GB, free: 36.09 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006485/10.86, allocations: 2.888 MB / 4.387 GB, free: 36.07 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007905/10.87, allocations: 3.091 MB / 4.39 GB, free: 35.47 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.154e-05/10.87, allocations: 12.69 kB / 4.39 GB, free: 35.47 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006015/10.87, allocations: 6.594 kB / 4.39 GB, free: 35.47 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002016/10.87, allocations: 186.8 kB / 4.39 GB, free: 35.46 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1205/10.99, allocations: 70.82 MB / 4.459 GB, free: 21.26 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/10.99, allocations: 1.289 MB / 4.461 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/11, allocations: 1.232 MB / 4.462 GB, free: 21.21 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2567/11.25, allocations: 19.21 MB / 4.48 GB, free: 113.6 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002158/11.25, allocations: 1.415 MB / 4.482 GB, free: 113.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=186): time 4.339e-06/11.25, allocations: 0 / 4.482 GB, free: 113.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=206): time 0.04091/11.3, allocations: 10.84 MB / 4.492 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/11.3, allocations: 361.5 kB / 4.493 GB, free: 111.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/11.3, allocations: 1.176 MB / 4.494 GB, free: 111.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0004513/11.3, allocations: 25.7 kB / 4.494 GB, free: 111.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006507/11.3, allocations: 0.8106 MB / 4.495 GB, free: 110.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006945/11.3, allocations: 0.66 MB / 4.495 GB, free: 110.6 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/11.3, allocations: 1.188 kB / 4.495 GB, free: 110.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001124/11.3, allocations: 397.6 kB / 4.496 GB, free: 110.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/11.3, allocations: 1.239 MB / 4.497 GB, free: 110.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/11.3, allocations: 1.731 MB / 4.499 GB, free: 109.7 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009524/11.31, allocations: 2.267 MB / 4.501 GB, free: 109.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-05/11.31, allocations: 3 kB / 4.501 GB, free: 109.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01597/11.33, allocations: 4.905 MB / 4.506 GB, free: 109.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008607/11.33, allocations: 4.981 MB / 4.511 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/11.33, allocations: 13.98 kB / 4.511 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008949/11.33, allocations: 335.1 kB / 4.511 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002789/11.33, allocations: 0.6051 MB / 4.511 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002022/11.34, allocations: 3.189 MB / 4.515 GB, free: 101.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003967/11.34, allocations: 341.2 kB / 4.515 GB, free: 101.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005714/11.34, allocations: 122.7 kB / 4.515 GB, free: 101.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/11.34, allocations: 7.5 kB / 4.515 GB, free: 101.8 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01294/11.35, allocations: 3.778 MB / 4.519 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/11.35, allocations: 13.28 kB / 4.519 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008124/11.35, allocations: 331.2 kB / 4.519 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/11.36, allocations: 0.596 MB / 4.52 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/11.36, allocations: 3.192 MB / 4.523 GB, free: 99.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003072/11.36, allocations: 316.1 kB / 4.523 GB, free: 99.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002922/11.36, allocations: 118.9 kB / 4.523 GB, free: 99.05 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007529/11.36, allocations: 247.3 kB / 4.523 GB, free: 98.88 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00215/11.36, allocations: 0.7108 MB / 4.524 GB, free: 98.78 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01702/11.38, allocations: 7.806 MB / 4.532 GB, free: 98.28 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.096e-05/11.38, allocations: 70.62 kB / 4.532 GB, free: 98.28 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/11.38, allocations: 0 / 4.532 GB, free: 98.28 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01457/11.4, allocations: 6.705 MB / 4.538 GB, free: 97.54 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02394/11.42, allocations: 12.64 MB / 4.551 GB, free: 95.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/11.42, allocations: 7.406 kB / 4.551 GB, free: 95.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001827/11.42, allocations: 422.8 kB / 4.551 GB, free: 95.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/11.42, allocations: 445 kB / 4.552 GB, free: 95.61 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000228/11.42, allocations: 54.22 kB / 4.552 GB, free: 95.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/11.43, allocations: 3.425 MB / 4.555 GB, free: 93 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.567e-06/11.43, allocations: 12.38 kB / 4.555 GB, free: 93 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01771/11.44, allocations: 9.172 MB / 4.564 GB, free: 91.61 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/11.44, allocations: 0.7449 MB / 4.565 GB, free: 91.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005065/11.45, allocations: 26.52 kB / 4.565 GB, free: 91.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00192/11.45, allocations: 206.4 kB / 4.565 GB, free: 91.36 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003254/11.45, allocations: 183.7 kB / 4.565 GB, free: 91.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/11.45, allocations: 101.3 kB / 4.565 GB, free: 91.35 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001467/11.45, allocations: 1.123 MB / 4.566 GB, free: 91.2 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01173/11.46, allocations: 2.841 MB / 4.569 GB, free: 91.16 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 43 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.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,junctionVolume.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 (220): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01242/11.47, allocations: 3.334 MB / 4.572 GB, free: 90.84 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.008858/11.48, allocations: 5.991 MB / 4.578 GB, free: 90.65 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/11.48, allocations: 4.891 kB / 4.578 GB, free: 90.65 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003989/11.49, allocations: 3.635 MB / 4.582 GB, free: 90.57 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00474/11.49, allocations: 0.9584 MB / 4.583 GB, free: 90.56 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/11.5, allocations: 6.432 MB / 4.589 GB, free: 89.32 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002217/11.5, allocations: 2.476 MB / 4.591 GB, free: 88.54 MB / 0.6042 GB Notification: Performance of SimCode: time 7.62e-07/11.5, allocations: 0 / 4.591 GB, free: 88.54 MB / 0.6042 GB Notification: Performance of Templates: time 0.1275/11.63, allocations: 98.36 MB / 4.687 GB, free: 68.04 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes18/BranchingPipes18.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches