Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 180.6 kB / 8.519 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 221.4 MB / 230.3 MB, free: 3.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 98.5 kB / 281.2 MB, free: 1.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4973/0.4973, allocations: 44.14 MB / 376.1 MB, free: 43.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.19e-05/1.192e-05, allocations: 0 / 444 MB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5446/0.5446, allocations: 61.9 MB / 0.4941 GB, free: 42.43 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.703/7.248, allocations: 2.851 GB / 3.345 GB, free: 77.58 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/7.248, allocations: 82.58 kB / 3.345 GB, free: 77.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.068/10.32, allocations: 1.02 GB / 4.366 GB, free: 35.19 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002073/10.32, allocations: 72.48 kB / 4.366 GB, free: 35.18 MB / 0.5573 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.01349/10.33, allocations: 4.262 MB / 4.37 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/10.33, allocations: 8.453 kB / 4.37 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007017/10.34, allocations: 0.9871 MB / 4.371 GB, free: 33 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005237/10.34, allocations: 2.217 MB / 4.373 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/10.34, allocations: 98.61 kB / 4.373 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003433/10.34, allocations: 134.2 kB / 4.373 GB, free: 32.47 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004132/10.35, allocations: 2.888 MB / 4.376 GB, free: 32.45 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004541/10.35, allocations: 3.089 MB / 4.379 GB, free: 31.36 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.599e-05/10.35, allocations: 17.72 kB / 4.379 GB, free: 31.35 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002829/10.35, allocations: 6.594 kB / 4.379 GB, free: 31.35 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/10.35, allocations: 185.8 kB / 4.379 GB, free: 31.32 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1116/10.46, allocations: 64.6 MB / 4.442 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002086/10.47, allocations: 1.289 MB / 4.444 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/10.47, allocations: 1.231 MB / 4.445 GB, free: 9.613 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.254/10.72, allocations: 17.22 MB / 4.462 GB, free: 104.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002595/10.72, allocations: 1.421 MB / 4.463 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=186): time 4.158e-06/10.72, allocations: 0 / 4.463 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=206): time 0.0389/10.76, allocations: 10.78 MB / 4.474 GB, free: 103.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.619e-05/10.76, allocations: 371.9 kB / 4.474 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/10.76, allocations: 1.176 MB / 4.475 GB, free: 102.5 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0003076/10.77, allocations: 30.77 kB / 4.475 GB, free: 102.4 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.00055/10.77, allocations: 0.8033 MB / 4.476 GB, free: 102.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005526/10.77, allocations: 0.6612 MB / 4.477 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/10.77, allocations: 3.312 kB / 4.477 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001089/10.77, allocations: 396.2 kB / 4.477 GB, free: 101.4 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/10.77, allocations: 1.234 MB / 4.478 GB, free: 101.4 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/10.77, allocations: 1.736 MB / 4.48 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009515/10.78, allocations: 2.253 MB / 4.482 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.021e-05/10.78, allocations: 3 kB / 4.482 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01577/10.8, allocations: 4.886 MB / 4.487 GB, free: 100.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008129/10.8, allocations: 4.981 MB / 4.492 GB, free: 95.61 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/10.8, allocations: 14.69 kB / 4.492 GB, free: 95.61 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009121/10.8, allocations: 330.2 kB / 4.492 GB, free: 95.57 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002664/10.8, allocations: 0.6058 MB / 4.493 GB, free: 95.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/10.8, allocations: 3.191 MB / 4.496 GB, free: 92.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/10.81, allocations: 334.4 kB / 4.496 GB, free: 92.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003974/10.81, allocations: 123.9 kB / 4.496 GB, free: 92.96 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.659e-06/10.81, allocations: 7.219 kB / 4.496 GB, free: 92.96 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01178/10.82, allocations: 3.76 MB / 4.5 GB, free: 92.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/10.82, allocations: 15.91 kB / 4.5 GB, free: 92.88 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007842/10.82, allocations: 324.1 kB / 4.5 GB, free: 92.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002357/10.82, allocations: 0.6028 MB / 4.501 GB, free: 92.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/10.82, allocations: 3.195 MB / 4.504 GB, free: 90.24 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002861/10.83, allocations: 307.7 kB / 4.504 GB, free: 90.23 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002483/10.83, allocations: 125.3 kB / 4.504 GB, free: 90.23 MB / 0.5886 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.0006662/10.83, allocations: 242.8 kB / 4.505 GB, free: 90.06 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00192/10.83, allocations: 0.7081 MB / 4.505 GB, free: 89.96 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0166/10.84, allocations: 7.786 MB / 4.513 GB, free: 89.46 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.832e-05/10.84, allocations: 67.2 kB / 4.513 GB, free: 89.46 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/10.84, allocations: 0 / 4.513 GB, free: 89.46 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01425/10.86, allocations: 6.695 MB / 4.519 GB, free: 88.72 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02422/10.88, allocations: 12.62 MB / 4.532 GB, free: 86.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/10.88, allocations: 9.406 kB / 4.532 GB, free: 86.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/10.89, allocations: 419.9 kB / 4.532 GB, free: 86.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/10.89, allocations: 443.1 kB / 4.533 GB, free: 86.79 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002016/10.89, allocations: 59.91 kB / 4.533 GB, free: 86.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/10.89, allocations: 3.431 MB / 4.536 GB, free: 84.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/10.89, allocations: 3.906 kB / 4.536 GB, free: 84.18 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01791/10.91, allocations: 9.142 MB / 4.545 GB, free: 82.79 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/10.91, allocations: 0.7499 MB / 4.546 GB, free: 82.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007425/10.91, allocations: 32.44 kB / 4.546 GB, free: 82.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002191/10.91, allocations: 196 kB / 4.546 GB, free: 82.54 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003596/10.91, allocations: 190.2 kB / 4.546 GB, free: 82.54 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002314/10.91, allocations: 94.98 kB / 4.546 GB, free: 82.54 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001651/10.91, allocations: 1.126 MB / 4.547 GB, free: 82.39 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01297/10.93, allocations: 2.826 MB / 4.55 GB, free: 82.3 MB / 0.5886 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.01176/10.94, allocations: 3.313 MB / 4.553 GB, free: 81.99 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008656/10.95, allocations: 6.001 MB / 4.559 GB, free: 81.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/10.95, allocations: 1.688 kB / 4.559 GB, free: 81.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004135/10.95, allocations: 3.635 MB / 4.563 GB, free: 81.72 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005181/10.96, allocations: 0.9583 MB / 4.564 GB, free: 81.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/10.97, allocations: 6.426 MB / 4.57 GB, free: 80.47 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00245/10.97, allocations: 2.479 MB / 4.572 GB, free: 79.69 MB / 0.5886 GB Notification: Performance of SimCode: time 7.41e-07/10.97, allocations: 0 / 4.572 GB, free: 79.69 MB / 0.5886 GB Notification: Performance of Templates: time 0.1375/11.11, allocations: 98.22 MB / 4.668 GB, free: 55.12 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches