Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") [: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.002505/0.002505, allocations: 197.8 kB / 8.542 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, 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.001184/0.001184, allocations: 92.06 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2701/0.2701, allocations: 45.14 MB / 383.4 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.514e-06/7.544e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1648, allocations: 63.25 MB / 0.5038 GB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.418/7.583, allocations: 2.852 GB / 3.355 GB, free: 68.61 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/7.583, allocations: 79.95 kB / 3.355 GB, free: 68.54 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.015/10.6, allocations: 0.9135 GB / 4.269 GB, free: 2.906 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0003625/10.6, allocations: 67.84 kB / 4.269 GB, free: 2.844 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.2356/10.83, allocations: 3.989 MB / 4.273 GB, free: 84.08 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/10.83, allocations: 12.28 kB / 4.273 GB, free: 84.08 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007082/10.84, allocations: 0.9133 MB / 4.274 GB, free: 83.94 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005562/10.85, allocations: 2.112 MB / 4.276 GB, free: 83.6 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/10.85, allocations: 101 kB / 4.276 GB, free: 83.59 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006858/10.85, allocations: 115.9 kB / 4.276 GB, free: 83.59 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004444/10.85, allocations: 2.705 MB / 4.279 GB, free: 83.58 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003902/10.86, allocations: 2.921 MB / 4.281 GB, free: 83.04 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.192e-05/10.86, allocations: 6.969 kB / 4.281 GB, free: 83.04 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002206/10.86, allocations: 9.172 kB / 4.281 GB, free: 83.04 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/10.86, allocations: 181.2 kB / 4.282 GB, free: 83.03 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2412/11.1, allocations: 143 MB / 4.421 GB, free: 38.4 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001788/11.1, allocations: 1.161 MB / 4.423 GB, free: 38.38 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/11.1, allocations: 1.096 MB / 4.424 GB, free: 38.37 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03636/11.14, allocations: 19.36 MB / 4.442 GB, free: 41.22 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002442/11.14, allocations: 1.279 MB / 4.444 GB, free: 41.05 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=163): time 5.269e-06/11.14, allocations: 0 / 4.444 GB, free: 41.05 MB / 0.6355 GB Notification: Performance of matching and sorting (n=179): time 0.03784/11.18, allocations: 9.953 MB / 4.453 GB, free: 39.34 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002408/11.18, allocations: 363.5 kB / 4.454 GB, free: 38.93 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/11.18, allocations: 1.114 MB / 4.455 GB, free: 38.77 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0005723/11.18, allocations: 29.83 kB / 4.455 GB, free: 38.73 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007791/11.18, allocations: 0.7753 MB / 4.456 GB, free: 38.37 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007394/11.18, allocations: 0.5756 MB / 4.456 GB, free: 37.99 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/11.18, allocations: 2.031 kB / 4.456 GB, free: 37.99 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002176/11.18, allocations: 384.2 kB / 4.457 GB, free: 37.69 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/11.18, allocations: 1.125 MB / 4.458 GB, free: 37.68 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/11.19, allocations: 1.579 MB / 4.459 GB, free: 37.22 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009359/11.19, allocations: 2.126 MB / 4.461 GB, free: 37.17 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.67e-05/11.19, allocations: 3.688 kB / 4.461 GB, free: 37.17 MB / 0.6355 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01526/11.21, allocations: 4.512 MB / 4.466 GB, free: 36.94 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001501/11.21, allocations: 4.341 MB / 4.47 GB, free: 32.46 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/11.21, allocations: 11.31 kB / 4.47 GB, free: 32.46 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005998/11.21, allocations: 228.9 kB / 4.47 GB, free: 32.43 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002473/11.21, allocations: 0.533 MB / 4.471 GB, free: 32.42 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/11.22, allocations: 2.495 MB / 4.473 GB, free: 30.33 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/11.22, allocations: 316.5 kB / 4.473 GB, free: 30.29 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003091/11.22, allocations: 113.5 kB / 4.474 GB, free: 30.28 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/11.22, allocations: 3.312 kB / 4.474 GB, free: 30.28 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01129/11.23, allocations: 3.431 MB / 4.477 GB, free: 30.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/11.23, allocations: 9.062 kB / 4.477 GB, free: 30.18 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005374/11.23, allocations: 231.5 kB / 4.477 GB, free: 30.15 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002097/11.23, allocations: 0.5205 MB / 4.478 GB, free: 30.14 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/11.24, allocations: 2.485 MB / 4.48 GB, free: 28.06 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002752/11.24, allocations: 292.5 kB / 4.48 GB, free: 28.02 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002501/11.24, allocations: 103.2 kB / 4.48 GB, free: 28.02 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,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 (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007245/11.24, allocations: 227.1 kB / 4.481 GB, free: 27.84 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00204/11.24, allocations: 0.6596 MB / 4.481 GB, free: 27.74 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01563/11.26, allocations: 6.821 MB / 4.488 GB, free: 27.24 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.874e-05/11.26, allocations: 57.39 kB / 4.488 GB, free: 27.23 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/11.26, allocations: 3.906 kB / 4.488 GB, free: 27.23 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01327/11.27, allocations: 5.892 MB / 4.494 GB, free: 26.52 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0217/11.29, allocations: 11.18 MB / 4.505 GB, free: 24.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/11.29, allocations: 7.125 kB / 4.505 GB, free: 24.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/11.29, allocations: 368.6 kB / 4.505 GB, free: 24.75 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008729/11.3, allocations: 325.3 kB / 4.505 GB, free: 24.7 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/11.3, allocations: 58.8 kB / 4.505 GB, free: 24.7 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.224/11.52, allocations: 2.67 MB / 4.508 GB, free: 146.2 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/11.52, allocations: 10.84 kB / 4.508 GB, free: 146.2 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01762/11.54, allocations: 8.137 MB / 4.516 GB, free: 145.1 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/11.54, allocations: 0.7015 MB / 4.517 GB, free: 145 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004661/11.54, allocations: 32.36 kB / 4.517 GB, free: 145 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001683/11.54, allocations: 182.4 kB / 4.517 GB, free: 145 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002811/11.54, allocations: 147.2 kB / 4.517 GB, free: 145 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/11.54, allocations: 89.62 kB / 4.517 GB, free: 145 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001426/11.54, allocations: 1.073 MB / 4.518 GB, free: 144.9 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.009357/11.55, allocations: 2.694 MB / 4.521 GB, free: 144.9 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (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) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.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,$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) * 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 (188): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01036/11.56, allocations: 3.129 MB / 4.524 GB, free: 144.7 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.007466/11.57, allocations: 5.27 MB / 4.529 GB, free: 144.6 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/11.57, allocations: 3.25 kB / 4.529 GB, free: 144.6 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.003857/11.57, allocations: 3.183 MB / 4.532 GB, free: 144.5 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004573/11.58, allocations: 0.8094 MB / 4.533 GB, free: 144.5 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/11.59, allocations: 5.778 MB / 4.539 GB, free: 143.4 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002314/11.59, allocations: 2.331 MB / 4.541 GB, free: 142.6 MB / 0.6355 GB Notification: Performance of SimCode: time 1.412e-06/11.59, allocations: 2.078 kB / 4.541 GB, free: 142.6 MB / 0.6355 GB Notification: Performance of Templates: time 0.1129/11.7, allocations: 89.96 MB / 4.629 GB, free: 138.7 MB / 0.6355 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes14/BranchingPipes14.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches