Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001793/0.001793, allocations: 201.3 kB / 8.544 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001212/0.001212, allocations: 95.48 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2007/0.2007, allocations: 45.15 MB / 383.4 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.542e-06/6.653e-06, allocations: 4 kB / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1074, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.423/7.531, allocations: 2.83 GB / 3.334 GB, free: 90.88 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/7.531, allocations: 80.61 kB / 3.334 GB, free: 90.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.353/10.88, allocations: 0.8036 GB / 4.138 GB, free: 43.23 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003426/10.88, allocations: 69.25 kB / 4.138 GB, free: 43.21 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.0171/10.9, allocations: 4.079 MB / 4.142 GB, free: 41.26 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/10.9, allocations: 14.92 kB / 4.142 GB, free: 41.26 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007045/10.91, allocations: 0.8685 MB / 4.143 GB, free: 41.12 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006777/10.92, allocations: 2.103 MB / 4.145 GB, free: 40.66 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/10.92, allocations: 89.36 kB / 4.145 GB, free: 40.66 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001015/10.92, allocations: 121.6 kB / 4.145 GB, free: 40.65 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005953/10.92, allocations: 2.949 MB / 4.148 GB, free: 40.64 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00496/10.93, allocations: 2.953 MB / 4.151 GB, free: 40.09 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.354e-05/10.93, allocations: 7.281 kB / 4.151 GB, free: 40.09 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002236/10.93, allocations: 8.719 kB / 4.151 GB, free: 40.09 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/10.93, allocations: 179.5 kB / 4.151 GB, free: 40.09 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5274/11.46, allocations: 141.9 MB / 4.29 GB, free: 117.9 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/11.46, allocations: 1.188 MB / 4.291 GB, free: 117.9 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001161/11.46, allocations: 1.035 MB / 4.292 GB, free: 117.9 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03303/11.49, allocations: 19.39 MB / 4.311 GB, free: 105.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001989/11.49, allocations: 1.271 MB / 4.312 GB, free: 105.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=152): time 4.138e-06/11.49, allocations: 0 / 4.312 GB, free: 105.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=164): time 0.0206/11.51, allocations: 8.332 MB / 4.32 GB, free: 103.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/11.51, allocations: 0.5097 MB / 4.321 GB, free: 103.2 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/11.52, allocations: 1.222 MB / 4.322 GB, free: 103 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000171/11.52, allocations: 29.36 kB / 4.322 GB, free: 103 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005859/11.52, allocations: 0.7712 MB / 4.323 GB, free: 102.7 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004931/11.52, allocations: 0.5371 MB / 4.323 GB, free: 102.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/11.52, allocations: 0 / 4.323 GB, free: 102.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001113/11.52, allocations: 387.3 kB / 4.323 GB, free: 102.1 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/11.52, allocations: 1.182 MB / 4.325 GB, free: 102.1 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001685/11.52, allocations: 1.595 MB / 4.326 GB, free: 101.6 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006305/11.53, allocations: 2.191 MB / 4.328 GB, free: 101.6 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/11.53, allocations: 3.594 kB / 4.328 GB, free: 101.6 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01124/11.54, allocations: 4.776 MB / 4.333 GB, free: 101.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006985/11.54, allocations: 3.926 MB / 4.337 GB, free: 97.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.333e-05/11.54, allocations: 13.7 kB / 4.337 GB, free: 97.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003732/11.54, allocations: 0.8666 MB / 4.338 GB, free: 97.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/11.54, allocations: 474.9 kB / 4.338 GB, free: 97.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003221/11.55, allocations: 3.538 MB / 4.342 GB, free: 95.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/11.55, allocations: 236.6 kB / 4.342 GB, free: 95.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/11.55, allocations: 103.8 kB / 4.342 GB, free: 95.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/11.55, allocations: 3.438 kB / 4.342 GB, free: 95.3 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008885/11.56, allocations: 3.648 MB / 4.345 GB, free: 95.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.582e-05/11.56, allocations: 18.78 kB / 4.345 GB, free: 95.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/11.56, allocations: 341.7 kB / 4.346 GB, free: 95.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/11.56, allocations: 0.4939 MB / 4.346 GB, free: 95.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003507/11.57, allocations: 3.981 MB / 4.35 GB, free: 92.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002763/11.57, allocations: 213.5 kB / 4.35 GB, free: 92.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002905/11.57, allocations: 106.1 kB / 4.35 GB, free: 92.4 MB / 0.6042 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.0006817/11.57, allocations: 239 kB / 4.351 GB, free: 92.23 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001904/11.57, allocations: 0.6249 MB / 4.351 GB, free: 92.13 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009098/11.58, allocations: 6.799 MB / 4.358 GB, free: 91.66 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.16e-05/11.58, allocations: 53.73 kB / 4.358 GB, free: 91.66 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/11.58, allocations: 2.25 kB / 4.358 GB, free: 91.66 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006415/11.59, allocations: 5.733 MB / 4.364 GB, free: 90.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/11.6, allocations: 9.374 MB / 4.373 GB, free: 90.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/11.6, allocations: 2.906 kB / 4.373 GB, free: 90.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/11.6, allocations: 274.6 kB / 4.373 GB, free: 90.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0036/11.6, allocations: 2.069 MB / 4.375 GB, free: 90 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002351/11.61, allocations: 55.45 kB / 4.375 GB, free: 90 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003523/11.61, allocations: 4.277 MB / 4.379 GB, free: 87.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/11.61, allocations: 3.312 kB / 4.379 GB, free: 87.89 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01004/11.62, allocations: 7.251 MB / 4.386 GB, free: 87.27 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/11.62, allocations: 0.7059 MB / 4.387 GB, free: 87.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005039/11.62, allocations: 25.17 kB / 4.387 GB, free: 87.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/11.62, allocations: 156.7 kB / 4.387 GB, free: 87.04 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/11.62, allocations: 124.7 kB / 4.387 GB, free: 87.03 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/11.62, allocations: 75.61 kB / 4.387 GB, free: 87.03 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001508/11.62, allocations: 1.169 MB / 4.389 GB, free: 86.89 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01145/11.64, allocations: 2.778 MB / 4.391 GB, free: 86.78 MB / 0.6042 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.01418/11.65, allocations: 3.105 MB / 4.394 GB, free: 86.49 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007846/11.66, allocations: 5.608 MB / 4.4 GB, free: 86.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/11.66, allocations: 11.66 kB / 4.4 GB, free: 86.07 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003154/11.66, allocations: 2.744 MB / 4.402 GB, free: 85.99 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004145/11.67, allocations: 0.736 MB / 4.403 GB, free: 85.97 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009257/11.67, allocations: 5.704 MB / 4.409 GB, free: 84.99 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001979/11.68, allocations: 2.326 MB / 4.411 GB, free: 84.22 MB / 0.6042 GB Notification: Performance of SimCode: time 1.282e-06/11.68, allocations: 1.031 kB / 4.411 GB, free: 84.22 MB / 0.6042 GB Notification: Performance of Templates: time 0.1253/11.8, allocations: 93.2 MB / 4.502 GB, free: 49.77 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches