Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") [: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.001229/0.001228, allocations: 196.1 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.35/1.35, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009792/0.0009795, allocations: 91.31 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2235/0.2235, allocations: 45.15 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.903e-06/6.913e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1555, allocations: 63.23 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.794/7.95, allocations: 2.83 GB / 3.334 GB, free: 77.06 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/7.95, allocations: 71.97 kB / 3.334 GB, free: 76.99 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.876/10.83, allocations: 0.8105 GB / 4.145 GB, free: 43.36 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002643/10.83, allocations: 65.22 kB / 4.145 GB, free: 43.35 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.01511/10.84, allocations: 4.094 MB / 4.149 GB, free: 41.39 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/10.84, allocations: 8.625 kB / 4.149 GB, free: 41.39 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007325/10.85, allocations: 0.8729 MB / 4.15 GB, free: 41.25 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009765/10.86, allocations: 2.18 MB / 4.152 GB, free: 40.78 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002893/10.86, allocations: 88.44 kB / 4.152 GB, free: 40.78 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/10.86, allocations: 115.8 kB / 4.152 GB, free: 40.78 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006248/10.87, allocations: 2.95 MB / 4.155 GB, free: 40.77 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005652/10.87, allocations: 2.954 MB / 4.158 GB, free: 40.23 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-05/10.87, allocations: 9.594 kB / 4.158 GB, free: 40.22 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/10.87, allocations: 11.03 kB / 4.158 GB, free: 40.22 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/10.87, allocations: 168 kB / 4.158 GB, free: 40.22 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5104/11.38, allocations: 142 MB / 4.297 GB, free: 89.44 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/11.38, allocations: 1.189 MB / 4.298 GB, free: 89.42 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/11.39, allocations: 1.033 MB / 4.299 GB, free: 89.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.034/11.42, allocations: 19.4 MB / 4.318 GB, free: 76.95 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00208/11.42, allocations: 1.267 MB / 4.319 GB, free: 76.79 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=152): time 3.897e-06/11.42, allocations: 0 / 4.319 GB, free: 76.79 MB / 0.5886 GB Notification: Performance of matching and sorting (n=164): time 0.02118/11.44, allocations: 8.329 MB / 4.327 GB, free: 75.31 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/11.44, allocations: 0.5076 MB / 4.328 GB, free: 74.71 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/11.45, allocations: 1.22 MB / 4.329 GB, free: 74.55 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0003733/11.45, allocations: 27.89 kB / 4.329 GB, free: 74.52 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007534/11.45, allocations: 0.774 MB / 4.33 GB, free: 74.18 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000665/11.45, allocations: 0.5377 MB / 4.33 GB, free: 73.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/11.45, allocations: 0 / 4.33 GB, free: 73.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001181/11.45, allocations: 388.8 kB / 4.33 GB, free: 73.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/11.45, allocations: 1.183 MB / 4.332 GB, free: 73.59 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/11.45, allocations: 1.592 MB / 4.333 GB, free: 73.14 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006548/11.46, allocations: 2.196 MB / 4.335 GB, free: 73.12 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/11.46, allocations: 3.562 kB / 4.335 GB, free: 73.12 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01215/11.47, allocations: 4.78 MB / 4.34 GB, free: 72.91 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006831/11.47, allocations: 3.923 MB / 4.344 GB, free: 68.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.105e-05/11.47, allocations: 11.19 kB / 4.344 GB, free: 68.93 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003793/11.47, allocations: 0.8645 MB / 4.345 GB, free: 68.89 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00222/11.48, allocations: 475.7 kB / 4.345 GB, free: 68.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/11.48, allocations: 3.525 MB / 4.349 GB, free: 66.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/11.48, allocations: 244.7 kB / 4.349 GB, free: 66.79 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003228/11.48, allocations: 107.2 kB / 4.349 GB, free: 66.79 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/11.48, allocations: 3.75 kB / 4.349 GB, free: 66.79 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009491/11.49, allocations: 3.644 MB / 4.352 GB, free: 66.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.152e-05/11.49, allocations: 16.25 kB / 4.352 GB, free: 66.71 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/11.49, allocations: 356.9 kB / 4.353 GB, free: 66.68 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002184/11.5, allocations: 496.8 kB / 4.353 GB, free: 66.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003329/11.5, allocations: 3.986 MB / 4.357 GB, free: 63.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00259/11.5, allocations: 216.1 kB / 4.357 GB, free: 63.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003054/11.5, allocations: 104 kB / 4.357 GB, free: 63.9 MB / 0.5886 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,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,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.0007134/11.5, allocations: 227.2 kB / 4.358 GB, free: 63.73 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001948/11.5, allocations: 0.6248 MB / 4.358 GB, free: 63.63 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009456/11.51, allocations: 6.801 MB / 4.365 GB, free: 63.17 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.074e-05/11.51, allocations: 53.59 kB / 4.365 GB, free: 63.17 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/11.51, allocations: 6.781 kB / 4.365 GB, free: 63.17 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006614/11.52, allocations: 5.735 MB / 4.371 GB, free: 62.46 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/11.53, allocations: 9.372 MB / 4.38 GB, free: 61.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/11.53, allocations: 0 / 4.38 GB, free: 61.59 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/11.53, allocations: 278.9 kB / 4.38 GB, free: 61.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003697/11.54, allocations: 2.069 MB / 4.382 GB, free: 61.48 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001857/11.54, allocations: 50.27 kB / 4.382 GB, free: 61.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003506/11.54, allocations: 4.281 MB / 4.386 GB, free: 59.35 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/11.54, allocations: 0 / 4.386 GB, free: 59.35 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009901/11.55, allocations: 7.251 MB / 4.393 GB, free: 58.73 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/11.55, allocations: 0.7084 MB / 4.394 GB, free: 58.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005494/11.55, allocations: 22.16 kB / 4.394 GB, free: 58.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/11.56, allocations: 162.2 kB / 4.394 GB, free: 58.47 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002919/11.56, allocations: 125.4 kB / 4.394 GB, free: 58.47 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001761/11.56, allocations: 69.84 kB / 4.394 GB, free: 58.47 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001826/11.56, allocations: 1.167 MB / 4.396 GB, free: 58.32 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01073/11.57, allocations: 2.779 MB / 4.398 GB, free: 58.2 MB / 0.5886 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.01264/11.58, allocations: 3.094 MB / 4.401 GB, free: 57.76 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.007998/11.59, allocations: 5.612 MB / 4.407 GB, free: 57.34 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/11.59, allocations: 3.438 kB / 4.407 GB, free: 57.34 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003389/11.59, allocations: 2.749 MB / 4.409 GB, free: 57.25 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003958/11.6, allocations: 0.7424 MB / 4.41 GB, free: 57.21 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009288/11.61, allocations: 5.699 MB / 4.416 GB, free: 56.02 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002063/11.61, allocations: 2.328 MB / 4.418 GB, free: 55.22 MB / 0.5886 GB Notification: Performance of SimCode: time 1.212e-06/11.61, allocations: 0 / 4.418 GB, free: 55.22 MB / 0.5886 GB Notification: Performance of Templates: time 0.1289/11.74, allocations: 93.28 MB / 4.509 GB, free: 10.05 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes12/BranchingPipes12.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches