Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.000924/0.000924, allocations: 192.4 kB / 7.803 MB, free: 2.496 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.082/1.082, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008407/0.0008408, allocations: 83.45 kB / 261.4 MB, free: 13.54 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.1532/0.1532, allocations: 43.5 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.27e-06/5.29e-06, allocations: 0 / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2196, allocations: 58.83 MB / 476.6 MB, free: 5.305 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.755/4.974, allocations: 2.825 GB / 3.29 GB, free: 41.95 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/4.974, allocations: 79.95 kB / 3.29 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.486/7.461, allocations: 0.7958 GB / 4.086 GB, free: 37 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001861/7.461, allocations: 62.91 kB / 4.086 GB, free: 36.99 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01498/7.476, allocations: 4.087 MB / 4.09 GB, free: 34.76 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/7.476, allocations: 9.438 kB / 4.09 GB, free: 34.76 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006527/7.483, allocations: 0.8676 MB / 4.091 GB, free: 34.54 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005534/7.488, allocations: 2.101 MB / 4.093 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/7.488, allocations: 92.7 kB / 4.093 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003859/7.489, allocations: 119 kB / 4.093 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005231/7.494, allocations: 2.946 MB / 4.096 GB, free: 31.97 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004024/7.498, allocations: 2.951 MB / 4.099 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.592e-05/7.498, allocations: 7.5 kB / 4.099 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002161/7.498, allocations: 4 kB / 4.099 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/7.498, allocations: 183.7 kB / 4.099 GB, free: 29.14 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3971/7.896, allocations: 126.2 MB / 4.222 GB, free: 43.83 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/7.897, allocations: 1.187 MB / 4.223 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/7.898, allocations: 1.034 MB / 4.224 GB, free: 43.8 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02816/7.926, allocations: 17.01 MB / 4.241 GB, free: 32.61 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001831/7.928, allocations: 1.275 MB / 4.242 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=152): time 3.487e-06/7.928, allocations: 0 / 4.242 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=164): time 0.01901/7.947, allocations: 8.336 MB / 4.25 GB, free: 30.95 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/7.947, allocations: 0.504 MB / 4.251 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/7.949, allocations: 1.219 MB / 4.252 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001467/7.949, allocations: 36.83 kB / 4.252 GB, free: 30.14 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005115/7.949, allocations: 0.7706 MB / 4.253 GB, free: 29.81 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/7.95, allocations: 0.5356 MB / 4.253 GB, free: 29.53 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/7.95, allocations: 0 / 4.253 GB, free: 29.53 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.726e-05/7.95, allocations: 386.2 kB / 4.254 GB, free: 29.23 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/7.952, allocations: 1.173 MB / 4.255 GB, free: 29.22 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/7.953, allocations: 1.6 MB / 4.256 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01111/7.964, allocations: 3.125 MB / 4.259 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/7.964, allocations: 5.984 kB / 4.259 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01664/7.981, allocations: 5.699 MB / 4.265 GB, free: 28.44 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006596/7.982, allocations: 3.926 MB / 4.269 GB, free: 24.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/7.982, allocations: 12.41 kB / 4.269 GB, free: 24.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003518/7.985, allocations: 0.8658 MB / 4.27 GB, free: 24.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/7.987, allocations: 477 kB / 4.27 GB, free: 24.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003267/7.99, allocations: 3.527 MB / 4.274 GB, free: 38.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002508/7.993, allocations: 244 kB / 4.274 GB, free: 38.22 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002277/7.993, allocations: 108.2 kB / 4.274 GB, free: 38.22 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/7.993, allocations: 6.938 kB / 4.274 GB, free: 38.22 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01361/8.007, allocations: 4.565 MB / 4.278 GB, free: 38.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/8.007, allocations: 14.16 kB / 4.278 GB, free: 38.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/8.008, allocations: 354.6 kB / 4.279 GB, free: 38.06 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001885/8.01, allocations: 0.4889 MB / 4.279 GB, free: 38.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003667/8.013, allocations: 3.975 MB / 4.283 GB, free: 35.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002282/8.016, allocations: 214.1 kB / 4.283 GB, free: 35.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/8.016, allocations: 106.1 kB / 4.283 GB, free: 35.25 MB / 0.5573 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.0007414/8.017, allocations: 229.4 kB / 4.284 GB, free: 35.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001929/8.019, allocations: 0.6263 MB / 4.284 GB, free: 34.98 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009466/8.028, allocations: 6.798 MB / 4.291 GB, free: 34.48 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.096e-05/8.028, allocations: 53.97 kB / 4.291 GB, free: 34.48 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/8.028, allocations: 1.25 kB / 4.291 GB, free: 34.48 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006478/8.035, allocations: 5.741 MB / 4.296 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/8.046, allocations: 9.368 MB / 4.306 GB, free: 32.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-06/8.046, allocations: 3.906 kB / 4.306 GB, free: 32.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/8.047, allocations: 275.1 kB / 4.306 GB, free: 32.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003786/8.051, allocations: 2.067 MB / 4.308 GB, free: 32.79 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001722/8.051, allocations: 52.59 kB / 4.308 GB, free: 32.79 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003896/8.055, allocations: 4.285 MB / 4.312 GB, free: 30.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/8.055, allocations: 2.766 kB / 4.312 GB, free: 30.66 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009329/8.065, allocations: 7.245 MB / 4.319 GB, free: 30.04 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/8.066, allocations: 0.7109 MB / 4.32 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006242/8.067, allocations: 19.58 kB / 4.32 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/8.068, allocations: 151.2 kB / 4.32 GB, free: 29.79 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/8.069, allocations: 130.5 kB / 4.32 GB, free: 29.78 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/8.069, allocations: 69.38 kB / 4.32 GB, free: 29.78 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.00165/8.07, allocations: 1.167 MB / 4.321 GB, free: 29.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00941/8.08, allocations: 2.762 MB / 4.324 GB, free: 29.61 MB / 0.5573 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.009559/8.089, allocations: 3.078 MB / 4.327 GB, free: 29.19 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006724/8.096, allocations: 5.61 MB / 4.333 GB, free: 28.76 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/8.096, allocations: 5.469 kB / 4.333 GB, free: 28.76 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002889/8.099, allocations: 2.743 MB / 4.335 GB, free: 28.01 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003508/8.103, allocations: 0.7426 MB / 4.336 GB, free: 27.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007615/8.11, allocations: 5.701 MB / 4.342 GB, free: 23.61 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/8.112, allocations: 2.331 MB / 4.344 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of SimCode: time 5.41e-07/8.112, allocations: 3.281 kB / 4.344 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of Templates: time 0.3128/8.425, allocations: 93.32 MB / 4.435 GB, free: 107.7 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes1/BranchingPipes1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches