Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") [: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 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 179.6 kB / 8.521 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.4 MB / 230.3 MB, free: 7.754 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009291/0.000929, allocations: 86.23 kB / 281.2 MB, free: 5.516 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.21/0.21, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.434e-06/7.444e-06, allocations: 4.156 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1603, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.387/7.547, allocations: 2.834 GB / 3.328 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003021/7.548, allocations: 77.78 kB / 3.328 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.768/10.32, allocations: 0.91 GB / 4.238 GB, free: 27.71 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002161/10.32, allocations: 69.94 kB / 4.238 GB, free: 27.69 MB / 0.5417 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.01457/10.33, allocations: 4.056 MB / 4.242 GB, free: 25.47 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/10.33, allocations: 9.188 kB / 4.242 GB, free: 25.47 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007147/10.34, allocations: 0.9116 MB / 4.243 GB, free: 25.25 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006448/10.34, allocations: 2.092 MB / 4.245 GB, free: 24.31 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/10.34, allocations: 96.36 kB / 4.245 GB, free: 24.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006626/10.34, allocations: 122.2 kB / 4.245 GB, free: 24.29 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005248/10.35, allocations: 2.756 MB / 4.248 GB, free: 23.36 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006679/10.36, allocations: 2.949 MB / 4.251 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.979e-05/10.36, allocations: 11.28 kB / 4.251 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002967/10.36, allocations: 6.625 kB / 4.251 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003126/10.36, allocations: 183.7 kB / 4.251 GB, free: 22.02 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4892/10.85, allocations: 127.4 MB / 4.375 GB, free: 54.16 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/10.85, allocations: 1.14 MB / 4.376 GB, free: 54.14 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/10.85, allocations: 1.005 MB / 4.377 GB, free: 54.12 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03008/10.88, allocations: 17.03 MB / 4.394 GB, free: 42.94 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001964/10.88, allocations: 1.222 MB / 4.395 GB, free: 42.77 MB / 0.573 GB Notification: Performance of pre-optimization done (n=153): time 3.477e-06/10.88, allocations: 0 / 4.395 GB, free: 42.77 MB / 0.573 GB Notification: Performance of matching and sorting (n=169): time 0.02024/10.9, allocations: 8.16 MB / 4.403 GB, free: 41.29 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/10.9, allocations: 365.6 kB / 4.403 GB, free: 40.88 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/10.9, allocations: 1.172 MB / 4.405 GB, free: 40.71 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000186/10.9, allocations: 31.58 kB / 4.405 GB, free: 40.68 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005811/10.9, allocations: 0.7889 MB / 4.405 GB, free: 40.34 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004743/10.9, allocations: 0.5498 MB / 4.406 GB, free: 40.05 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/10.9, allocations: 3.281 kB / 4.406 GB, free: 40.05 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001145/10.91, allocations: 383.3 kB / 4.406 GB, free: 39.75 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/10.91, allocations: 1.12 MB / 4.407 GB, free: 39.74 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001578/10.91, allocations: 1.533 MB / 4.409 GB, free: 39.28 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005065/10.91, allocations: 1.967 MB / 4.411 GB, free: 39.24 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/10.91, allocations: 3.406 kB / 4.411 GB, free: 39.24 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01009/10.92, allocations: 4.335 MB / 4.415 GB, free: 39.03 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007043/10.92, allocations: 4.346 MB / 4.419 GB, free: 34.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/10.92, allocations: 10.84 kB / 4.419 GB, free: 34.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000617/10.92, allocations: 229.2 kB / 4.419 GB, free: 34.51 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/10.93, allocations: 0.52 MB / 4.42 GB, free: 34.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/10.93, allocations: 2.491 MB / 4.422 GB, free: 32.42 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/10.93, allocations: 274.1 kB / 4.423 GB, free: 32.39 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003451/10.93, allocations: 109.4 kB / 4.423 GB, free: 32.39 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/10.93, allocations: 5.875 kB / 4.423 GB, free: 32.39 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007573/10.94, allocations: 3.268 MB / 4.426 GB, free: 32.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/10.94, allocations: 7.906 kB / 4.426 GB, free: 32.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005423/10.94, allocations: 229.1 kB / 4.426 GB, free: 32.26 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/10.94, allocations: 0.5129 MB / 4.427 GB, free: 32.26 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/10.94, allocations: 2.484 MB / 4.429 GB, free: 30.17 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002626/10.95, allocations: 256.3 kB / 4.429 GB, free: 30.14 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002512/10.95, allocations: 96.92 kB / 4.429 GB, free: 30.14 MB / 0.573 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,splitter.medium.phase,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 (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.0006705/10.95, allocations: 232.6 kB / 4.43 GB, free: 29.97 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002037/10.95, allocations: 0.6581 MB / 4.43 GB, free: 29.88 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00851/10.96, allocations: 6.071 MB / 4.436 GB, free: 29.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.08e-05/10.96, allocations: 57.11 kB / 4.436 GB, free: 29.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/10.96, allocations: 6.188 kB / 4.436 GB, free: 29.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006007/10.96, allocations: 5.045 MB / 4.441 GB, free: 28.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01744/10.98, allocations: 9.022 MB / 4.45 GB, free: 43.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.701e-05/10.98, allocations: 3.844 kB / 4.45 GB, free: 43.55 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/10.98, allocations: 344.2 kB / 4.45 GB, free: 43.55 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/10.98, allocations: 321.1 kB / 4.451 GB, free: 43.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/10.98, allocations: 50.52 kB / 4.451 GB, free: 43.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001809/10.99, allocations: 2.652 MB / 4.453 GB, free: 41.41 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/10.99, allocations: 8 kB / 4.453 GB, free: 41.41 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01475/11, allocations: 6.777 MB / 4.46 GB, free: 40.84 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002555/11, allocations: 0.6984 MB / 4.461 GB, free: 40.61 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009517/11, allocations: 20.59 kB / 4.461 GB, free: 40.61 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002684/11.01, allocations: 186.7 kB / 4.461 GB, free: 40.59 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003695/11.01, allocations: 133.7 kB / 4.461 GB, free: 40.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/11.01, allocations: 71.58 kB / 4.461 GB, free: 40.59 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001861/11.01, allocations: 1.124 MB / 4.462 GB, free: 40.48 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01124/11.02, allocations: 2.773 MB / 4.465 GB, free: 40.41 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.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,splitter.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 (175): * Single equations (assignments): 158 * 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.01224/11.03, allocations: 3.216 MB / 4.468 GB, free: 39.95 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.007837/11.04, allocations: 5.248 MB / 4.473 GB, free: 39.75 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/11.04, allocations: 0 / 4.473 GB, free: 39.75 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003086/11.04, allocations: 2.646 MB / 4.476 GB, free: 39.68 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004534/11.05, allocations: 0.8141 MB / 4.476 GB, free: 39.64 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/11.06, allocations: 5.574 MB / 4.482 GB, free: 38.41 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002907/11.06, allocations: 2.321 MB / 4.484 GB, free: 37.62 MB / 0.5886 GB Notification: Performance of SimCode: time 7.92e-07/11.06, allocations: 2.25 kB / 4.484 GB, free: 37.62 MB / 0.5886 GB Notification: Performance of Templates: time 0.3487/11.41, allocations: 91.68 MB / 4.574 GB, free: 113.1 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches