Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009532/0.0009533, allocations: 184 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.127/1.127, 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.000859/0.0008589, allocations: 84.39 kB / 261.4 MB, free: 13.55 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.1749/0.1749, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.772e-06/6.792e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2777, allocations: 58.84 MB / 476.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.719/4.997, allocations: 2.842 GB / 3.307 GB, free: 40.84 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/4.997, allocations: 71.97 kB / 3.307 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.486/7.484, allocations: 0.8692 GB / 4.177 GB, free: 31.68 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001538/7.484, allocations: 62.17 kB / 4.177 GB, free: 31.68 MB / 0.5261 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.009519/7.493, allocations: 3.784 MB / 4.18 GB, free: 30.13 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/7.493, allocations: 8.562 kB / 4.18 GB, free: 30.13 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00494/7.498, allocations: 0.8195 MB / 4.181 GB, free: 30 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003844/7.502, allocations: 1.987 MB / 4.183 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.168e-05/7.502, allocations: 81.33 kB / 4.183 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/7.503, allocations: 112.4 kB / 4.183 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00306/7.506, allocations: 2.379 MB / 4.186 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003292/7.509, allocations: 2.606 MB / 4.188 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.118e-05/7.509, allocations: 10.34 kB / 4.188 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/7.509, allocations: 3.719 kB / 4.188 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/7.509, allocations: 157.7 kB / 4.188 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2083/7.718, allocations: 125.6 MB / 4.311 GB, free: 14.04 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/7.719, allocations: 1.048 MB / 4.312 GB, free: 14.02 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/7.72, allocations: 1.004 MB / 4.313 GB, free: 14 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02974/7.75, allocations: 17.09 MB / 4.33 GB, free: 18.68 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002013/7.752, allocations: 1.184 MB / 4.331 GB, free: 18.52 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=145): time 4.338e-06/7.752, allocations: 0 / 4.331 GB, free: 18.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=157): time 0.03242/7.785, allocations: 9.2 MB / 4.34 GB, free: 16.86 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/7.785, allocations: 365.1 kB / 4.34 GB, free: 16.45 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/7.787, allocations: 1.051 MB / 4.341 GB, free: 16.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001757/7.787, allocations: 28.61 kB / 4.341 GB, free: 16.25 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000571/7.787, allocations: 0.7001 MB / 4.342 GB, free: 15.85 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004551/7.788, allocations: 0.5014 MB / 4.342 GB, free: 15.52 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/7.788, allocations: 2.344 kB / 4.342 GB, free: 15.52 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001882/7.788, allocations: 378.4 kB / 4.343 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/7.79, allocations: 1.027 MB / 4.344 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/7.791, allocations: 1.416 MB / 4.345 GB, free: 14.81 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008784/7.8, allocations: 1.984 MB / 4.347 GB, free: 14.77 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/7.8, allocations: 6.969 kB / 4.347 GB, free: 14.76 MB / 0.6042 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01469/7.815, allocations: 4.315 MB / 4.351 GB, free: 14.54 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001122/7.816, allocations: 3.721 MB / 4.355 GB, free: 10.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/7.816, allocations: 9.5 kB / 4.355 GB, free: 10.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002168/7.818, allocations: 0.5241 MB / 4.355 GB, free: 10.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/7.82, allocations: 450.7 kB / 4.356 GB, free: 10.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002522/7.823, allocations: 2.904 MB / 4.359 GB, free: 8.566 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002777/7.826, allocations: 279.4 kB / 4.359 GB, free: 8.523 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003486/7.826, allocations: 95.25 kB / 4.359 GB, free: 8.523 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/7.826, allocations: 3.75 kB / 4.359 GB, free: 8.523 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01073/7.837, allocations: 3.183 MB / 4.362 GB, free: 8.434 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/7.837, allocations: 13.47 kB / 4.362 GB, free: 8.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004603/7.837, allocations: 192 kB / 4.362 GB, free: 8.402 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/7.839, allocations: 472.9 kB / 4.363 GB, free: 8.398 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/7.84, allocations: 1.916 MB / 4.365 GB, free: 6.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002376/7.843, allocations: 253.5 kB / 4.365 GB, free: 6.797 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/7.843, allocations: 96.06 kB / 4.365 GB, free: 6.797 MB / 0.6042 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.0006552/7.844, allocations: 225.1 kB / 4.365 GB, free: 6.617 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001887/7.846, allocations: 0.6057 MB / 4.366 GB, free: 6.531 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01311/7.859, allocations: 6.746 MB / 4.372 GB, free: 2.816 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.175e-05/7.859, allocations: 57.55 kB / 4.372 GB, free: 2.793 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/7.859, allocations: 0 / 4.372 GB, free: 2.793 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2063/8.065, allocations: 5.845 MB / 4.378 GB, free: 147.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/8.082, allocations: 10.22 MB / 4.388 GB, free: 146.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/8.082, allocations: 11 kB / 4.388 GB, free: 146.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/8.083, allocations: 290.4 kB / 4.388 GB, free: 146.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001834/8.085, allocations: 1.169 MB / 4.39 GB, free: 146.6 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/8.085, allocations: 49.89 kB / 4.39 GB, free: 146.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/8.087, allocations: 3.396 MB / 4.393 GB, free: 144.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/8.087, allocations: 8.781 kB / 4.393 GB, free: 144.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01314/8.1, allocations: 7.662 MB / 4.4 GB, free: 143.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/8.102, allocations: 0.664 MB / 4.401 GB, free: 143.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003537/8.102, allocations: 22.25 kB / 4.401 GB, free: 143.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/8.103, allocations: 158.8 kB / 4.401 GB, free: 143.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/8.103, allocations: 134.1 kB / 4.401 GB, free: 143.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/8.104, allocations: 80.25 kB / 4.401 GB, free: 143.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001135/8.105, allocations: 1.034 MB / 4.402 GB, free: 143.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.007863/8.113, allocations: 2.539 MB / 4.405 GB, free: 143.4 MB / 0.6042 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.008991/8.122, allocations: 3.024 MB / 4.408 GB, free: 143.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.005862/8.128, allocations: 4.917 MB / 4.413 GB, free: 143 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/8.128, allocations: 2.156 kB / 4.413 GB, free: 143 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002877/8.13, allocations: 2.973 MB / 4.416 GB, free: 142.9 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003489/8.134, allocations: 0.7561 MB / 4.416 GB, free: 142.9 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007586/8.142, allocations: 5.427 MB / 4.422 GB, free: 141.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00172/8.143, allocations: 2.219 MB / 4.424 GB, free: 141.1 MB / 0.6042 GB Notification: Performance of SimCode: time 6.92e-07/8.143, allocations: 0 / 4.424 GB, free: 141.1 MB / 0.6042 GB Notification: Performance of Templates: time 0.09703/8.24, allocations: 85.54 MB / 4.507 GB, free: 137 MB / 0.6042 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes3/BranchingPipes3.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches