Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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.BranchingPipes13") [: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.0009998/0.0009998, allocations: 180.5 kB / 8.516 MB, free: 1.848 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.289/1.289, allocations: 221.4 MB / 230.3 MB, free: 7.719 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.001111/0.001111, allocations: 91.36 kB / 281.2 MB, free: 5.457 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.2197/0.2197, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.999e-06/1.003e-05, allocations: 4.219 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1813, allocations: 61.9 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.445/7.627, allocations: 2.83 GB / 3.324 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/7.627, allocations: 74.66 kB / 3.324 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.752/10.38, allocations: 0.8735 GB / 4.198 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001638/10.38, allocations: 66.56 kB / 4.198 GB, free: 37.01 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01323/10.39, allocations: 3.843 MB / 4.201 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/10.39, allocations: 14.84 kB / 4.201 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00636/10.4, allocations: 0.817 MB / 4.202 GB, free: 34.98 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006223/10.41, allocations: 1.962 MB / 4.204 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/10.41, allocations: 88.75 kB / 4.204 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005696/10.41, allocations: 106 kB / 4.204 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004158/10.41, allocations: 2.419 MB / 4.207 GB, free: 34.53 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003801/10.41, allocations: 2.638 MB / 4.209 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.957e-05/10.41, allocations: 3.562 kB / 4.209 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002234/10.41, allocations: 5.688 kB / 4.209 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/10.41, allocations: 160.7 kB / 4.209 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4927/10.91, allocations: 125.9 MB / 4.332 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/10.91, allocations: 1.03 MB / 4.333 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/10.91, allocations: 0.9381 MB / 4.334 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03103/10.94, allocations: 17.01 MB / 4.351 GB, free: 101.1 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00164/10.94, allocations: 1.14 MB / 4.352 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=136): time 3.256e-06/10.94, allocations: 2.438 kB / 4.352 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=148): time 0.01819/10.96, allocations: 7.565 MB / 4.359 GB, free: 99.54 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.349e-05/10.96, allocations: 365.1 kB / 4.36 GB, free: 99.13 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/10.96, allocations: 1.096 MB / 4.361 GB, free: 98.97 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001497/10.96, allocations: 25.7 kB / 4.361 GB, free: 98.94 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004627/10.96, allocations: 0.7108 MB / 4.362 GB, free: 98.62 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003954/10.96, allocations: 496.3 kB / 4.362 GB, free: 98.38 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/10.96, allocations: 0 / 4.362 GB, free: 98.38 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.175e-05/10.96, allocations: 378.3 kB / 4.362 GB, free: 98.07 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/10.96, allocations: 1.028 MB / 4.363 GB, free: 98.06 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/10.97, allocations: 1.387 MB / 4.365 GB, free: 97.68 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004614/10.97, allocations: 1.842 MB / 4.367 GB, free: 97.66 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/10.97, allocations: 3.906 kB / 4.367 GB, free: 97.66 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01007/10.98, allocations: 4.2 MB / 4.371 GB, free: 97.47 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000659/10.98, allocations: 3.716 MB / 4.374 GB, free: 93.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/10.98, allocations: 9.969 kB / 4.374 GB, free: 93.66 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002241/10.98, allocations: 0.5751 MB / 4.375 GB, free: 93.63 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/10.99, allocations: 437.9 kB / 4.375 GB, free: 93.63 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/10.99, allocations: 3.096 MB / 4.378 GB, free: 91.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/10.99, allocations: 250.7 kB / 4.379 GB, free: 91.54 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/10.99, allocations: 92.66 kB / 4.379 GB, free: 91.54 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/10.99, allocations: 4.625 kB / 4.379 GB, free: 91.54 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006222/11, allocations: 3.038 MB / 4.382 GB, free: 91.47 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/11, allocations: 11.75 kB / 4.382 GB, free: 91.47 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000413/11, allocations: 197.5 kB / 4.382 GB, free: 91.45 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001716/11, allocations: 455.2 kB / 4.382 GB, free: 91.45 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008926/11, allocations: 1.925 MB / 4.384 GB, free: 89.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/11, allocations: 215.5 kB / 4.384 GB, free: 89.88 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/11, allocations: 96.61 kB / 4.384 GB, free: 89.88 MB / 0.5886 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 (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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004761/11, allocations: 224.5 kB / 4.385 GB, free: 89.71 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00168/11, allocations: 0.6046 MB / 4.385 GB, free: 89.62 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007874/11.01, allocations: 6.333 MB / 4.391 GB, free: 89.16 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.322e-05/11.01, allocations: 51.17 kB / 4.391 GB, free: 89.16 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/11.01, allocations: 7.125 kB / 4.391 GB, free: 89.16 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005704/11.02, allocations: 5.322 MB / 4.397 GB, free: 88.45 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/11.03, allocations: 8.754 MB / 4.405 GB, free: 87.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/11.03, allocations: 0 / 4.405 GB, free: 87.62 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/11.03, allocations: 269 kB / 4.405 GB, free: 87.62 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/11.03, allocations: 1.31 MB / 4.407 GB, free: 87.54 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001429/11.03, allocations: 48.77 kB / 4.407 GB, free: 87.54 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002446/11.03, allocations: 3.616 MB / 4.41 GB, free: 85.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/11.03, allocations: 0 / 4.41 GB, free: 85.43 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008634/11.04, allocations: 6.687 MB / 4.417 GB, free: 84.88 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/11.04, allocations: 0.6618 MB / 4.417 GB, free: 84.65 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003912/11.05, allocations: 22.39 kB / 4.418 GB, free: 84.65 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/11.05, allocations: 151.3 kB / 4.418 GB, free: 84.64 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/11.05, allocations: 110.7 kB / 4.418 GB, free: 84.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/11.05, allocations: 72.31 kB / 4.418 GB, free: 84.64 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001302/11.05, allocations: 1.082 MB / 4.419 GB, free: 84.54 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0106/11.06, allocations: 2.646 MB / 4.421 GB, free: 84.45 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (141): * Single equations (assignments): 125 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01146/11.07, allocations: 3.143 MB / 4.425 GB, free: 84.15 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006677/11.08, allocations: 4.908 MB / 4.429 GB, free: 83.97 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/11.08, allocations: 6.438 kB / 4.429 GB, free: 83.97 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002801/11.08, allocations: 2.61 MB / 4.432 GB, free: 83.89 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/11.08, allocations: 0.7568 MB / 4.433 GB, free: 83.88 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007916/11.09, allocations: 5.28 MB / 4.438 GB, free: 82.98 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/11.09, allocations: 2.204 MB / 4.44 GB, free: 82.23 MB / 0.5886 GB Notification: Performance of SimCode: time 7.41e-07/11.09, allocations: 3.719 kB / 4.44 GB, free: 82.23 MB / 0.5886 GB Notification: Performance of Templates: time 0.1054/11.2, allocations: 87.6 MB / 4.525 GB, free: 58.86 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes13/BranchingPipes13.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches