Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") [: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.001171/0.001171, allocations: 179.8 kB / 8.52 MB, free: 1.824 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.213/1.213, allocations: 221.4 MB / 230.3 MB, free: 7.684 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.0008922/0.000892, allocations: 83.38 kB / 281.2 MB, free: 5.434 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.198/0.198, allocations: 44.14 MB / 376.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.013e-06/7.033e-06, allocations: 0 / 444 MB, free: 15.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1424, allocations: 61.91 MB / 0.4941 GB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.736/7.878, allocations: 2.846 GB / 3.34 GB, free: 69.39 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/7.879, allocations: 82.55 kB / 3.34 GB, free: 69.35 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.756/10.63, allocations: 0.8081 GB / 4.148 GB, free: 40.08 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002562/10.63, allocations: 55.11 kB / 4.149 GB, free: 40.07 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01518/10.65, allocations: 3.792 MB / 4.152 GB, free: 38.05 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/10.65, allocations: 15.66 kB / 4.152 GB, free: 38.04 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007076/10.66, allocations: 0.8145 MB / 4.153 GB, free: 37.85 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007713/10.67, allocations: 2.004 MB / 4.155 GB, free: 36.94 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003328/10.67, allocations: 81.36 kB / 4.155 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00119/10.67, allocations: 112.7 kB / 4.155 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006251/10.67, allocations: 2.598 MB / 4.158 GB, free: 36.05 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00653/10.68, allocations: 2.597 MB / 4.16 GB, free: 34.9 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.84e-05/10.68, allocations: 10.31 kB / 4.16 GB, free: 34.89 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004795/10.68, allocations: 5.844 kB / 4.16 GB, free: 34.89 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001943/10.68, allocations: 148.9 kB / 4.16 GB, free: 34.88 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4882/11.17, allocations: 125.3 MB / 4.283 GB, free: 56.66 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00155/11.17, allocations: 1.055 MB / 4.284 GB, free: 56.63 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/11.17, allocations: 1.005 MB / 4.285 GB, free: 56.62 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03263/11.2, allocations: 17.08 MB / 4.302 GB, free: 45.34 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003299/11.21, allocations: 1.189 MB / 4.303 GB, free: 45.17 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=145): time 7.554e-06/11.21, allocations: 0 / 4.303 GB, free: 45.17 MB / 0.5573 GB Notification: Performance of matching and sorting (n=157): time 0.03863/11.25, allocations: 9.194 MB / 4.312 GB, free: 43.75 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.423e-05/11.25, allocations: 363.4 kB / 4.312 GB, free: 43.34 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/11.25, allocations: 1.048 MB / 4.313 GB, free: 43.17 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004464/11.25, allocations: 28.92 kB / 4.313 GB, free: 43.14 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005614/11.25, allocations: 0.6837 MB / 4.314 GB, free: 42.84 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005822/11.25, allocations: 0.5029 MB / 4.314 GB, free: 42.57 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/11.25, allocations: 3.656 kB / 4.314 GB, free: 42.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000111/11.25, allocations: 386.1 kB / 4.315 GB, free: 42.27 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/11.25, allocations: 1.022 MB / 4.316 GB, free: 42.27 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/11.25, allocations: 1.413 MB / 4.317 GB, free: 41.88 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008983/11.26, allocations: 1.979 MB / 4.319 GB, free: 41.83 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.399e-05/11.26, allocations: 3.594 kB / 4.319 GB, free: 41.83 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01694/11.28, allocations: 4.319 MB / 4.323 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007042/11.28, allocations: 3.72 MB / 4.327 GB, free: 37.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-05/11.28, allocations: 9.281 kB / 4.327 GB, free: 37.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002279/11.28, allocations: 0.5231 MB / 4.327 GB, free: 37.72 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002373/11.28, allocations: 454 kB / 4.328 GB, free: 37.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/11.29, allocations: 2.902 MB / 4.331 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003611/11.29, allocations: 273.9 kB / 4.331 GB, free: 35.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006835/11.29, allocations: 94.78 kB / 4.331 GB, free: 35.59 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/11.29, allocations: 7.406 kB / 4.331 GB, free: 35.59 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01248/11.3, allocations: 3.185 MB / 4.334 GB, free: 35.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.605e-05/11.3, allocations: 11.62 kB / 4.334 GB, free: 35.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004606/11.3, allocations: 192.3 kB / 4.334 GB, free: 35.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002147/11.31, allocations: 470.7 kB / 4.335 GB, free: 35.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/11.31, allocations: 1.919 MB / 4.337 GB, free: 33.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002801/11.31, allocations: 241.7 kB / 4.337 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005226/11.31, allocations: 99.17 kB / 4.337 GB, free: 33.88 MB / 0.5573 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.001041/11.31, allocations: 228.9 kB / 4.337 GB, free: 33.71 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002368/11.31, allocations: 0.6077 MB / 4.338 GB, free: 33.62 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/11.33, allocations: 6.745 MB / 4.344 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.382e-05/11.33, allocations: 52.52 kB / 4.344 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/11.33, allocations: 0 / 4.344 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.013/11.34, allocations: 5.841 MB / 4.35 GB, free: 32.39 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02204/11.37, allocations: 10.2 MB / 4.36 GB, free: 47.11 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.302e-05/11.37, allocations: 2.906 kB / 4.36 GB, free: 47.11 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/11.37, allocations: 297.8 kB / 4.36 GB, free: 47.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002086/11.37, allocations: 1.162 MB / 4.361 GB, free: 47.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003449/11.37, allocations: 50.75 kB / 4.361 GB, free: 47.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003099/11.37, allocations: 3.406 MB / 4.365 GB, free: 44.91 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/11.37, allocations: 8.719 kB / 4.365 GB, free: 44.91 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01682/11.39, allocations: 7.663 MB / 4.372 GB, free: 43.78 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001863/11.39, allocations: 0.6636 MB / 4.373 GB, free: 43.55 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008316/11.39, allocations: 30.25 kB / 4.373 GB, free: 43.55 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002247/11.39, allocations: 143.2 kB / 4.373 GB, free: 43.54 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004013/11.39, allocations: 136.9 kB / 4.373 GB, free: 43.53 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002703/11.39, allocations: 77.09 kB / 4.373 GB, free: 43.53 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002043/11.4, allocations: 1.027 MB / 4.374 GB, free: 43.42 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01101/11.41, allocations: 2.507 MB / 4.377 GB, free: 43.4 MB / 0.573 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,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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.01292/11.42, allocations: 2.916 MB / 4.38 GB, free: 43 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008658/11.43, allocations: 4.933 MB / 4.384 GB, free: 42.82 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/11.43, allocations: 3.438 kB / 4.384 GB, free: 42.82 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003681/11.43, allocations: 2.994 MB / 4.387 GB, free: 42.73 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004012/11.44, allocations: 0.6798 MB / 4.388 GB, free: 42.69 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009941/11.45, allocations: 5.392 MB / 4.393 GB, free: 41.43 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003557/11.45, allocations: 2.204 MB / 4.395 GB, free: 40.65 MB / 0.573 GB Notification: Performance of SimCode: time 8.92e-07/11.45, allocations: 1.781 kB / 4.395 GB, free: 40.65 MB / 0.573 GB Notification: Performance of Templates: time 0.3606/11.81, allocations: 84.4 MB / 4.478 GB, free: 112.3 MB / 0.573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes2/BranchingPipes2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches