Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") [: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.001602/0.001603, allocations: 204 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001486/0.001486, allocations: 97.44 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2231/0.2231, allocations: 45.14 MB / 383.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.107e-06/9.308e-06, allocations: 0 / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1457, allocations: 63.23 MB / 0.5038 GB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.903/8.049, allocations: 2.848 GB / 3.352 GB, free: 72.98 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/8.049, allocations: 71.97 kB / 3.352 GB, free: 72.91 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.959/11.01, allocations: 0.8787 GB / 4.23 GB, free: 18.25 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001717/11.01, allocations: 55.91 kB / 4.23 GB, free: 18.2 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01259/11.02, allocations: 3.792 MB / 4.234 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/11.02, allocations: 8.031 kB / 4.234 GB, free: 14.35 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005818/11.03, allocations: 0.8204 MB / 4.235 GB, free: 13.52 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004611/11.03, allocations: 1.991 MB / 4.237 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/11.03, allocations: 79.98 kB / 4.237 GB, free: 11.44 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002951/11.03, allocations: 112 kB / 4.237 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003489/11.04, allocations: 2.373 MB / 4.239 GB, free: 8.953 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003382/11.04, allocations: 2.614 MB / 4.242 GB, free: 6.176 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.888e-05/11.04, allocations: 7.938 kB / 4.242 GB, free: 6.168 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/11.04, allocations: 4 kB / 4.242 GB, free: 6.164 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/11.04, allocations: 155.2 kB / 4.242 GB, free: 6.012 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4921/11.53, allocations: 141.4 MB / 4.38 GB, free: 45.33 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/11.53, allocations: 1.052 MB / 4.381 GB, free: 45.3 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/11.53, allocations: 0.9974 MB / 4.382 GB, free: 45.29 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03605/11.57, allocations: 19.47 MB / 4.401 GB, free: 32.04 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002046/11.57, allocations: 1.192 MB / 4.402 GB, free: 31.88 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=145): time 3.417e-06/11.57, allocations: 0 / 4.402 GB, free: 31.88 MB / 0.6042 GB Notification: Performance of matching and sorting (n=157): time 0.03618/11.61, allocations: 9.252 MB / 4.411 GB, free: 30.43 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002158/11.61, allocations: 357.5 kB / 4.412 GB, free: 46.02 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/11.61, allocations: 1.054 MB / 4.413 GB, free: 45.86 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003273/11.61, allocations: 29.05 kB / 4.413 GB, free: 45.82 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005818/11.61, allocations: 0.6977 MB / 4.413 GB, free: 45.51 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004981/11.61, allocations: 0.5096 MB / 4.414 GB, free: 45.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/11.61, allocations: 0 / 4.414 GB, free: 45.25 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001802/11.61, allocations: 375.1 kB / 4.414 GB, free: 44.95 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/11.61, allocations: 1.026 MB / 4.415 GB, free: 44.95 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/11.62, allocations: 1.415 MB / 4.417 GB, free: 44.56 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008873/11.62, allocations: 2.001 MB / 4.419 GB, free: 44.52 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.55e-05/11.62, allocations: 3.781 kB / 4.419 GB, free: 44.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01528/11.64, allocations: 4.335 MB / 4.423 GB, free: 44.29 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001614/11.64, allocations: 3.719 MB / 4.427 GB, free: 40.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/11.64, allocations: 11.66 kB / 4.427 GB, free: 40.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002265/11.64, allocations: 0.5261 MB / 4.427 GB, free: 40.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/11.65, allocations: 454.8 kB / 4.428 GB, free: 40.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/11.65, allocations: 2.907 MB / 4.43 GB, free: 38.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00315/11.65, allocations: 272.3 kB / 4.431 GB, free: 38.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/11.65, allocations: 99.61 kB / 4.431 GB, free: 38.27 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/11.65, allocations: 6.094 kB / 4.431 GB, free: 38.27 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01074/11.66, allocations: 3.203 MB / 4.434 GB, free: 38.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/11.66, allocations: 12.7 kB / 4.434 GB, free: 38.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004459/11.66, allocations: 188.7 kB / 4.434 GB, free: 38.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001879/11.67, allocations: 468.1 kB / 4.434 GB, free: 38.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/11.67, allocations: 1.927 MB / 4.436 GB, free: 36.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/11.67, allocations: 244.8 kB / 4.437 GB, free: 36.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/11.67, allocations: 96.92 kB / 4.437 GB, free: 36.55 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.000671/11.67, allocations: 227 kB / 4.437 GB, free: 36.39 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001771/11.67, allocations: 0.6131 MB / 4.437 GB, free: 36.29 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01383/11.69, allocations: 6.758 MB / 4.444 GB, free: 35.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.983e-05/11.69, allocations: 58.06 kB / 4.444 GB, free: 35.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/11.69, allocations: 0 / 4.444 GB, free: 35.79 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01259/11.7, allocations: 5.857 MB / 4.45 GB, free: 35.06 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0193/11.72, allocations: 10.25 MB / 4.46 GB, free: 33.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/11.72, allocations: 7.969 kB / 4.46 GB, free: 33.78 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/11.72, allocations: 294.1 kB / 4.46 GB, free: 33.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/11.72, allocations: 1.172 MB / 4.461 GB, free: 33.68 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001987/11.72, allocations: 51.75 kB / 4.461 GB, free: 33.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002864/11.72, allocations: 3.39 MB / 4.465 GB, free: 31.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/11.72, allocations: 7.75 kB / 4.465 GB, free: 31.57 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01479/11.74, allocations: 7.673 MB / 4.472 GB, free: 30.45 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001454/11.74, allocations: 0.664 MB / 4.473 GB, free: 30.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004024/11.74, allocations: 31.83 kB / 4.473 GB, free: 30.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/11.74, allocations: 153 kB / 4.473 GB, free: 30.21 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/11.74, allocations: 129 kB / 4.473 GB, free: 30.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/11.74, allocations: 75.67 kB / 4.473 GB, free: 30.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001321/11.74, allocations: 1.033 MB / 4.474 GB, free: 30.09 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01069/11.76, allocations: 2.561 MB / 4.477 GB, free: 30.09 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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 (155): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01188/11.77, allocations: 3.056 MB / 4.48 GB, free: 29.67 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007488/11.77, allocations: 4.912 MB / 4.484 GB, free: 29.07 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/11.77, allocations: 2.344 kB / 4.484 GB, free: 29.07 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0033/11.78, allocations: 2.974 MB / 4.487 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004007/11.78, allocations: 0.7433 MB / 4.488 GB, free: 27.18 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008151/11.79, allocations: 5.437 MB / 4.493 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001925/11.79, allocations: 2.213 MB / 4.496 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of SimCode: time 1.283e-06/11.79, allocations: 0 / 4.496 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of Templates: time 0.3681/12.16, allocations: 85.77 MB / 4.579 GB, free: 135.8 MB / 0.6198 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes3/BranchingPipes3.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches