Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") [: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.0008845/0.0008846, allocations: 188.6 kB / 7.803 MB, free: 2.48 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.014/1.014, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008645/0.0008644, allocations: 95.3 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.1599/0.1599, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.923e-06/6.963e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2387, allocations: 58.83 MB / 476.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.289/4.528, allocations: 2.846 GB / 3.312 GB, free: 19.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/4.528, allocations: 75.97 kB / 3.312 GB, free: 19.23 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.215/7.743, allocations: 1.009 GB / 4.321 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000169/7.743, allocations: 67.09 kB / 4.321 GB, free: 35.11 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.0125/7.756, allocations: 4.275 MB / 4.325 GB, free: 33.31 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/7.756, allocations: 7.875 kB / 4.325 GB, free: 33.31 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006561/7.762, allocations: 0.9765 MB / 4.326 GB, free: 33.16 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005025/7.767, allocations: 2.216 MB / 4.328 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/7.768, allocations: 105.2 kB / 4.328 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/7.768, allocations: 133.9 kB / 4.329 GB, free: 32.69 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003973/7.772, allocations: 2.883 MB / 4.331 GB, free: 32.68 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003857/7.776, allocations: 3.092 MB / 4.334 GB, free: 32.08 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.436e-05/7.776, allocations: 13.91 kB / 4.334 GB, free: 32.08 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/7.776, allocations: 11.25 kB / 4.334 GB, free: 32.08 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001315/7.776, allocations: 183.5 kB / 4.335 GB, free: 32.07 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.105/7.881, allocations: 64.6 MB / 4.398 GB, free: 24.68 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/7.883, allocations: 1.287 MB / 4.399 GB, free: 24.66 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/7.884, allocations: 1.233 MB / 4.4 GB, free: 24.64 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03104/7.915, allocations: 16.82 MB / 4.417 GB, free: 13.63 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002241/7.918, allocations: 1.423 MB / 4.418 GB, free: 13.45 MB / 0.573 GB Notification: Performance of pre-optimization done (n=186): time 4.177e-06/7.918, allocations: 0 / 4.418 GB, free: 13.45 MB / 0.573 GB Notification: Performance of matching and sorting (n=206): time 0.0374/7.955, allocations: 10.79 MB / 4.429 GB, free: 11.53 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001998/7.955, allocations: 364.2 kB / 4.429 GB, free: 11.12 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001541/7.957, allocations: 1.176 MB / 4.43 GB, free: 10.93 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003322/7.957, allocations: 28.73 kB / 4.43 GB, free: 10.9 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005939/7.958, allocations: 0.8035 MB / 4.431 GB, free: 10.43 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005669/7.958, allocations: 0.6707 MB / 4.432 GB, free: 9.988 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/7.959, allocations: 1.844 kB / 4.432 GB, free: 9.988 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001966/7.959, allocations: 400.9 kB / 4.432 GB, free: 9.684 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/7.961, allocations: 1.231 MB / 4.433 GB, free: 9.676 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/7.962, allocations: 1.737 MB / 4.435 GB, free: 9.164 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00928/7.972, allocations: 2.253 MB / 4.437 GB, free: 9.113 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/7.972, allocations: 3.406 kB / 4.437 GB, free: 9.113 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01454/7.986, allocations: 4.886 MB / 4.442 GB, free: 8.863 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001404/7.988, allocations: 4.983 MB / 4.447 GB, free: 19.74 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/7.988, allocations: 11.44 kB / 4.447 GB, free: 19.74 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008407/7.989, allocations: 327.2 kB / 4.447 GB, free: 19.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/7.991, allocations: 0.6052 MB / 4.448 GB, free: 19.69 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/7.993, allocations: 3.197 MB / 4.451 GB, free: 17.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/7.997, allocations: 336 kB / 4.451 GB, free: 17.04 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/7.997, allocations: 128.6 kB / 4.451 GB, free: 17.03 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/7.997, allocations: 6.688 kB / 4.451 GB, free: 17.03 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01168/8.009, allocations: 3.76 MB / 4.455 GB, free: 16.92 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/8.009, allocations: 12.72 kB / 4.455 GB, free: 16.92 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007934/8.01, allocations: 329.3 kB / 4.455 GB, free: 16.88 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002353/8.012, allocations: 0.5979 MB / 4.456 GB, free: 16.87 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/8.014, allocations: 3.195 MB / 4.459 GB, free: 14.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002966/8.017, allocations: 313.7 kB / 4.459 GB, free: 14.21 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002408/8.017, allocations: 119 kB / 4.459 GB, free: 14.21 MB / 0.5886 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007443/8.018, allocations: 251.4 kB / 4.459 GB, free: 14.03 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001903/8.02, allocations: 0.7063 MB / 4.46 GB, free: 13.93 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01689/8.037, allocations: 7.776 MB / 4.468 GB, free: 13.36 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-05/8.037, allocations: 64.61 kB / 4.468 GB, free: 13.36 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/8.037, allocations: 3.469 kB / 4.468 GB, free: 13.36 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01376/8.051, allocations: 6.687 MB / 4.474 GB, free: 12.59 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02232/8.073, allocations: 12.61 MB / 4.487 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/8.073, allocations: 7.844 kB / 4.487 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/8.075, allocations: 422.4 kB / 4.487 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/8.076, allocations: 443 kB / 4.488 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/8.076, allocations: 58.84 kB / 4.488 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002083/8.078, allocations: 3.421 MB / 4.491 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/8.078, allocations: 14.31 kB / 4.491 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01781/8.096, allocations: 9.145 MB / 4.5 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/8.098, allocations: 0.7531 MB / 4.501 GB, free: 6.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004573/8.098, allocations: 27.48 kB / 4.501 GB, free: 6.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001824/8.1, allocations: 208.2 kB / 4.501 GB, free: 6.234 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/8.1, allocations: 175.5 kB / 4.501 GB, free: 6.23 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/8.101, allocations: 99.47 kB / 4.501 GB, free: 6.227 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001575/8.102, allocations: 1.129 MB / 4.502 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01086/8.113, allocations: 2.824 MB / 4.505 GB, free: 5.715 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 43 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.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,junctionIdeal.medium.phase,junctionVolume.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 (220): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01173/8.125, allocations: 3.304 MB / 4.508 GB, free: 4.965 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01012/8.135, allocations: 5.995 MB / 4.514 GB, free: 4.758 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.396e-05/8.135, allocations: 1.375 kB / 4.514 GB, free: 4.758 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004219/8.139, allocations: 3.641 MB / 4.518 GB, free: 3.266 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005035/8.144, allocations: 0.955 MB / 4.518 GB, free: 2.695 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/8.158, allocations: 6.725 MB / 4.525 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002757/8.161, allocations: 2.473 MB / 4.527 GB, free: 12.87 MB / 0.6042 GB Notification: Performance of SimCode: time 1.112e-06/8.161, allocations: 4 kB / 4.527 GB, free: 12.87 MB / 0.6042 GB Notification: Performance of Templates: time 0.358/8.519, allocations: 98.22 MB / 4.623 GB, free: 128.4 MB / 0.6042 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes18/BranchingPipes18.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches