Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") [: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 3.2.3+maint.om/package.mo): time 0.0008824/0.0008824, allocations: 188.3 kB / 7.803 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9681/0.9681, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008031/0.0008032, allocations: 92.7 kB / 261.4 MB, free: 13.52 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1454/0.1454, allocations: 43.49 MB / 352.8 MB, free: 1.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.969e-06/5.009e-06, allocations: 0 / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1943, allocations: 58.84 MB / 476.5 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8271/1.021, allocations: 0.6583 GB / 1.124 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/1.022, allocations: 75.95 kB / 1.124 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.557/2.579, allocations: 0.5421 GB / 1.666 GB, free: 42.32 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000211/2.579, allocations: 59.55 kB / 1.666 GB, free: 42.3 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.008799/2.588, allocations: 3.046 MB / 1.669 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/2.588, allocations: 11.12 kB / 1.669 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003724/2.592, allocations: 443.7 kB / 1.669 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005697/2.597, allocations: 1.944 MB / 1.671 GB, free: 40.54 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.371e-05/2.597, allocations: 58.03 kB / 1.671 GB, free: 40.54 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003519/2.598, allocations: 101.9 kB / 1.671 GB, free: 40.54 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003387/2.601, allocations: 2.188 MB / 1.673 GB, free: 40.53 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003045/2.604, allocations: 2.425 MB / 1.676 GB, free: 40.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.253e-05/2.604, allocations: 7.125 kB / 1.676 GB, free: 40.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/2.605, allocations: 5.781 kB / 1.676 GB, free: 40.11 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/2.605, allocations: 162.3 kB / 1.676 GB, free: 40.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01215/2.617, allocations: 11.47 MB / 1.687 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/2.618, allocations: 1.042 MB / 1.688 GB, free: 33.71 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/2.619, allocations: 1.007 MB / 1.689 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008101/2.62, allocations: 457.8 kB / 1.69 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001382/2.621, allocations: 1.181 MB / 1.691 GB, free: 33.24 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 3.236e-06/2.622, allocations: 3.281 kB / 1.691 GB, free: 33.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=173): time 0.0359/2.657, allocations: 9.541 MB / 1.7 GB, free: 32.34 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/2.658, allocations: 362 kB / 1.7 GB, free: 31.94 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001608/2.659, allocations: 1.075 MB / 1.701 GB, free: 31.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003482/2.66, allocations: 31.77 kB / 1.702 GB, free: 31.74 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000571/2.66, allocations: 0.6584 MB / 1.702 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005726/2.661, allocations: 0.5607 MB / 1.703 GB, free: 30.99 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/2.661, allocations: 3.969 kB / 1.703 GB, free: 30.99 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001502/2.661, allocations: 380.3 kB / 1.703 GB, free: 30.68 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/2.662, allocations: 1.01 MB / 1.704 GB, free: 30.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/2.664, allocations: 1.434 MB / 1.705 GB, free: 30.26 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0094/2.673, allocations: 2.445 MB / 1.708 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/2.673, allocations: 3.906 kB / 1.708 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01171/2.685, allocations: 4.081 MB / 1.712 GB, free: 30.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005722/2.686, allocations: 3.646 MB / 1.715 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/2.686, allocations: 9.219 kB / 1.715 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003554/2.686, allocations: 174.9 kB / 1.716 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/2.688, allocations: 0.5207 MB / 1.716 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/2.689, allocations: 2.368 MB / 1.718 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/2.692, allocations: 172.2 kB / 1.719 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002949/2.692, allocations: 185.9 kB / 1.719 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.987e-06/2.692, allocations: 6.781 kB / 1.719 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01096/2.703, allocations: 3.535 MB / 1.722 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/2.703, allocations: 7.125 kB / 1.722 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003131/2.703, allocations: 172.3 kB / 1.722 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/2.706, allocations: 0.5195 MB / 1.723 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/2.707, allocations: 2.366 MB / 1.725 GB, free: 22.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/2.709, allocations: 161.4 kB / 1.725 GB, free: 22.01 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003577/2.709, allocations: 184.2 kB / 1.726 GB, free: 22.01 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.0006888/2.71, allocations: 227.1 kB / 1.726 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004324/2.711, allocations: 190.3 kB / 1.726 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01508/2.726, allocations: 4.272 MB / 1.73 GB, free: 21.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.902e-05/2.726, allocations: 16.53 kB / 1.73 GB, free: 21.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/2.726, allocations: 0 / 1.73 GB, free: 21.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01201/2.738, allocations: 3.534 MB / 1.734 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0186/2.756, allocations: 6.86 MB / 1.74 GB, free: 20.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/2.756, allocations: 7.469 kB / 1.74 GB, free: 20.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/2.758, allocations: 406.6 kB / 1.741 GB, free: 20.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004182/2.759, allocations: 166.1 kB / 1.741 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/2.759, allocations: 71.59 kB / 1.741 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/2.761, allocations: 3.038 MB / 1.744 GB, free: 17.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.096e-05/2.761, allocations: 12.39 kB / 1.744 GB, free: 17.32 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01464/2.775, allocations: 5.336 MB / 1.749 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/2.777, allocations: 0.5124 MB / 1.75 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006958/2.777, allocations: 30.09 kB / 1.75 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001917/2.779, allocations: 92.31 kB / 1.75 GB, free: 16.06 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003191/2.78, allocations: 142.3 kB / 1.75 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003517/2.78, allocations: 151.8 kB / 1.75 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001569/2.782, allocations: 0.8021 MB / 1.751 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008093/2.79, allocations: 1.82 MB / 1.753 GB, free: 15.69 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (183): * Single equations (assignments): 177 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007554/2.797, allocations: 2.69 MB / 1.755 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007029/2.804, allocations: 3.979 MB / 1.759 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/2.804, allocations: 7.578 kB / 1.759 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002285/2.807, allocations: 1.379 MB / 1.76 GB, free: 29.58 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004295/2.811, allocations: 0.7595 MB / 1.761 GB, free: 29.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009401/2.82, allocations: 4.054 MB / 1.765 GB, free: 27.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003425/2.824, allocations: 2.135 MB / 1.767 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of SimCode: time 1.553e-06/2.824, allocations: 0 / 1.767 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of Templates: time 0.2927/3.117, allocations: 73.1 MB / 1.839 GB, free: 97.07 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes15/BranchingPipes15.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches