Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") [: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.001595/0.001595, allocations: 179.9 kB / 8.519 MB, free: 1.852 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.355/1.355, allocations: 221.4 MB / 230.3 MB, free: 7.621 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.001047/0.001047, allocations: 82 kB / 281.2 MB, free: 5.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2067/0.2067, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.015e-06/8.025e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1562, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.552/7.708, allocations: 2.829 GB / 3.323 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/7.709, allocations: 74.41 kB / 3.324 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.626/10.34, allocations: 0.8045 GB / 4.128 GB, free: 46.57 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002262/10.34, allocations: 69.62 kB / 4.128 GB, free: 46.56 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01541/10.35, allocations: 4.092 MB / 4.132 GB, free: 44.84 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/10.35, allocations: 15.44 kB / 4.132 GB, free: 44.84 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006571/10.36, allocations: 0.8645 MB / 4.133 GB, free: 44.7 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005589/10.36, allocations: 2.107 MB / 4.135 GB, free: 44.23 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/10.36, allocations: 89.45 kB / 4.135 GB, free: 44.23 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004718/10.36, allocations: 122.9 kB / 4.135 GB, free: 44.23 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004445/10.37, allocations: 2.943 MB / 4.138 GB, free: 44.22 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004153/10.37, allocations: 2.957 MB / 4.141 GB, free: 43.68 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.146e-05/10.37, allocations: 6.594 kB / 4.141 GB, free: 43.68 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002342/10.37, allocations: 3.969 kB / 4.141 GB, free: 43.68 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/10.37, allocations: 176 kB / 4.141 GB, free: 43.67 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2289/10.6, allocations: 126.2 MB / 4.264 GB, free: 12.84 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002/10.6, allocations: 1.191 MB / 4.266 GB, free: 12.81 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001291/10.6, allocations: 1.036 MB / 4.267 GB, free: 12.8 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03321/10.64, allocations: 17.02 MB / 4.283 GB, free: 17.59 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002754/10.64, allocations: 1.273 MB / 4.284 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=152): time 4.539e-06/10.64, allocations: 0 / 4.284 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of matching and sorting (n=164): time 0.02155/10.66, allocations: 8.335 MB / 4.293 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002494/10.66, allocations: 0.5046 MB / 4.293 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002/10.66, allocations: 1.221 MB / 4.294 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.000333/10.67, allocations: 32.02 kB / 4.294 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006709/10.67, allocations: 0.7782 MB / 4.295 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005332/10.67, allocations: 0.5311 MB / 4.296 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/10.67, allocations: 5.25 kB / 4.296 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001764/10.67, allocations: 386.9 kB / 4.296 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/10.67, allocations: 1.177 MB / 4.297 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001908/10.67, allocations: 1.607 MB / 4.299 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005905/10.68, allocations: 2.031 MB / 4.301 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.13e-05/10.68, allocations: 3.094 kB / 4.301 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01231/10.69, allocations: 4.62 MB / 4.305 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001404/10.69, allocations: 3.919 MB / 4.309 GB, free: 8.996 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.645e-05/10.69, allocations: 17.33 kB / 4.309 GB, free: 8.996 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003759/10.69, allocations: 0.8628 MB / 4.31 GB, free: 8.941 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/10.7, allocations: 477.4 kB / 4.31 GB, free: 8.934 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003924/10.7, allocations: 3.533 MB / 4.314 GB, free: 22.83 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003204/10.7, allocations: 243.7 kB / 4.314 GB, free: 22.79 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000401/10.7, allocations: 110.2 kB / 4.314 GB, free: 22.79 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/10.7, allocations: 12.28 kB / 4.314 GB, free: 22.79 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009414/10.71, allocations: 3.481 MB / 4.317 GB, free: 22.33 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.341e-05/10.71, allocations: 15.61 kB / 4.318 GB, free: 22.32 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/10.71, allocations: 346.5 kB / 4.318 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/10.72, allocations: 0.4893 MB / 4.318 GB, free: 21.74 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003879/10.72, allocations: 3.978 MB / 4.322 GB, free: 18.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00262/10.72, allocations: 215.7 kB / 4.322 GB, free: 18.1 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002554/10.72, allocations: 108.2 kB / 4.323 GB, free: 18.03 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,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 (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006873/10.72, allocations: 230 kB / 4.323 GB, free: 17.82 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001946/10.73, allocations: 0.6259 MB / 4.323 GB, free: 17.43 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008912/10.74, allocations: 6.79 MB / 4.33 GB, free: 13.62 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.402e-05/10.74, allocations: 53.61 kB / 4.33 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/10.74, allocations: 9.531 kB / 4.33 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007015/10.74, allocations: 5.734 MB / 4.336 GB, free: 10.14 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01381/10.76, allocations: 9.38 MB / 4.345 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/10.76, allocations: 0 / 4.345 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/10.76, allocations: 276.9 kB / 4.345 GB, free: 4.977 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003937/10.76, allocations: 2.072 MB / 4.347 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002555/10.76, allocations: 53.92 kB / 4.347 GB, free: 3.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004726/10.77, allocations: 4.288 MB / 4.351 GB, free: 160 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/10.77, allocations: 4.031 kB / 4.351 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2641/11.03, allocations: 7.243 MB / 4.358 GB, free: 158.8 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/11.03, allocations: 0.7083 MB / 4.359 GB, free: 158.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004249/11.03, allocations: 28.11 kB / 4.359 GB, free: 158.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/11.03, allocations: 153.3 kB / 4.359 GB, free: 158.7 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002382/11.03, allocations: 118.1 kB / 4.359 GB, free: 158.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/11.03, allocations: 71.7 kB / 4.359 GB, free: 158.7 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001445/11.04, allocations: 1.169 MB / 4.361 GB, free: 158.6 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0103/11.05, allocations: 2.768 MB / 4.363 GB, free: 158.6 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse8.phase,$cse8.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,$cse37.phase,$cse37.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 (145): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0141/11.06, allocations: 3.07 MB / 4.366 GB, free: 158.4 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.008081/11.07, allocations: 5.607 MB / 4.372 GB, free: 158 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/11.07, allocations: 4.5 kB / 4.372 GB, free: 158 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.00317/11.07, allocations: 2.739 MB / 4.374 GB, free: 157.9 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004546/11.08, allocations: 0.7434 MB / 4.375 GB, free: 157.9 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/11.09, allocations: 5.712 MB / 4.381 GB, free: 156.9 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002194/11.09, allocations: 2.332 MB / 4.383 GB, free: 156.2 MB / 0.6355 GB Notification: Performance of SimCode: time 7.91e-07/11.09, allocations: 2.719 kB / 4.383 GB, free: 156.2 MB / 0.6355 GB Notification: Performance of Templates: time 0.1248/11.21, allocations: 93.24 MB / 4.474 GB, free: 152.2 MB / 0.6355 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes1/BranchingPipes1.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches