Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001598/0.001598, allocations: 172.4 kB / 8.146 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001271/0.00127, allocations: 93.33 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2633/0.2633, allocations: 43.5 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.797e-06/9.017e-06, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2789, allocations: 58.85 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.486/6.765, allocations: 2.825 GB / 3.29 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/6.765, allocations: 80.52 kB / 3.29 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.642/10.41, allocations: 0.7958 GB / 4.086 GB, free: 39.03 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003043/10.41, allocations: 71.38 kB / 4.086 GB, free: 39.02 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.02039/10.43, allocations: 4.091 MB / 4.09 GB, free: 37.06 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/10.43, allocations: 7.469 kB / 4.09 GB, free: 37.06 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009284/10.44, allocations: 0.8709 MB / 4.091 GB, free: 36.92 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008412/10.45, allocations: 2.097 MB / 4.093 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/10.45, allocations: 85.88 kB / 4.093 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006281/10.45, allocations: 121.7 kB / 4.093 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007913/10.45, allocations: 2.944 MB / 4.096 GB, free: 36.44 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007756/10.46, allocations: 2.958 MB / 4.099 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.581e-05/10.46, allocations: 5 kB / 4.099 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003712/10.46, allocations: 6.969 kB / 4.099 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002226/10.46, allocations: 179.2 kB / 4.099 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4331/10.9, allocations: 126.2 MB / 4.222 GB, free: 19.11 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003074/10.9, allocations: 1.191 MB / 4.223 GB, free: 18.45 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002381/10.9, allocations: 1.031 MB / 4.224 GB, free: 17.89 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05977/10.96, allocations: 17.03 MB / 4.241 GB, free: 1.199 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003047/10.96, allocations: 1.27 MB / 4.242 GB, free: 496 kB / 0.5886 GB Notification: Performance of pre-optimization done (n=152): time 4.949e-06/10.96, allocations: 0 / 4.242 GB, free: 496 kB / 0.5886 GB Notification: Performance of matching and sorting (n=164): time 0.253/11.22, allocations: 8.366 MB / 4.25 GB, free: 142.9 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/11.22, allocations: 0.5033 MB / 4.251 GB, free: 142.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002681/11.22, allocations: 1.229 MB / 4.252 GB, free: 142.1 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005456/11.22, allocations: 25.7 kB / 4.252 GB, free: 142.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006339/11.22, allocations: 0.7272 MB / 4.253 GB, free: 141.7 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008747/11.22, allocations: 0.5392 MB / 4.253 GB, free: 141.4 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/11.22, allocations: 0 / 4.253 GB, free: 141.4 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001454/11.22, allocations: 390.5 kB / 4.254 GB, free: 141.1 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002866/11.23, allocations: 1.173 MB / 4.255 GB, free: 141.1 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003248/11.23, allocations: 1.605 MB / 4.256 GB, free: 140.6 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02176/11.25, allocations: 3.12 MB / 4.259 GB, free: 140.6 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.342e-05/11.25, allocations: 1.875 kB / 4.259 GB, free: 140.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.03058/11.28, allocations: 5.602 MB / 4.265 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007786/11.28, allocations: 3.835 MB / 4.269 GB, free: 136.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.839e-05/11.28, allocations: 12.81 kB / 4.269 GB, free: 136.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007078/11.29, allocations: 0.857 MB / 4.269 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004098/11.29, allocations: 476.4 kB / 4.27 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/11.3, allocations: 3.507 MB / 4.273 GB, free: 134.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00349/11.3, allocations: 210.7 kB / 4.274 GB, free: 134.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003697/11.3, allocations: 114.1 kB / 4.274 GB, free: 134.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/11.3, allocations: 6.969 kB / 4.274 GB, free: 134.3 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02664/11.33, allocations: 4.571 MB / 4.278 GB, free: 134.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.783e-05/11.33, allocations: 14.59 kB / 4.278 GB, free: 134.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/11.33, allocations: 343.1 kB / 4.278 GB, free: 134.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004179/11.34, allocations: 497.5 kB / 4.279 GB, free: 134.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005471/11.34, allocations: 3.986 MB / 4.283 GB, free: 131.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003377/11.34, allocations: 210.5 kB / 4.283 GB, free: 131.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000336/11.35, allocations: 99.17 kB / 4.283 GB, free: 131.5 MB / 0.5886 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.000767/11.35, allocations: 160.5 kB / 4.283 GB, free: 131.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002614/11.35, allocations: 0.6278 MB / 4.284 GB, free: 131.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/11.36, allocations: 6.792 MB / 4.291 GB, free: 130.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.505e-05/11.36, allocations: 55.73 kB / 4.291 GB, free: 130.8 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/11.36, allocations: 0 / 4.291 GB, free: 130.8 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01181/11.38, allocations: 5.73 MB / 4.296 GB, free: 130.1 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02031/11.4, allocations: 9.372 MB / 4.305 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/11.4, allocations: 2.469 kB / 4.305 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002572/11.4, allocations: 273.4 kB / 4.306 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00649/11.41, allocations: 2.075 MB / 4.308 GB, free: 129.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005135/11.41, allocations: 53.81 kB / 4.308 GB, free: 129.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005744/11.41, allocations: 4.286 MB / 4.312 GB, free: 127 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/11.41, allocations: 5.594 kB / 4.312 GB, free: 127 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01693/11.43, allocations: 7.251 MB / 4.319 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002261/11.43, allocations: 0.703 MB / 4.32 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007521/11.43, allocations: 22.78 kB / 4.32 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002793/11.44, allocations: 172.7 kB / 4.32 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/11.44, allocations: 125.1 kB / 4.32 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/11.44, allocations: 72.12 kB / 4.32 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002494/11.44, allocations: 1.166 MB / 4.321 GB, free: 126 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01274/11.45, allocations: 2.761 MB / 4.324 GB, free: 125.9 MB / 0.5886 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.01624/11.47, allocations: 3.078 MB / 4.327 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01399/11.48, allocations: 5.559 MB / 4.332 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/11.48, allocations: 6.297 kB / 4.332 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005637/11.49, allocations: 2.738 MB / 4.335 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007656/11.49, allocations: 0.733 MB / 4.336 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/11.51, allocations: 5.729 MB / 4.341 GB, free: 124.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003494/11.51, allocations: 2.304 MB / 4.343 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of SimCode: time 1.753e-06/11.51, allocations: 0 / 4.343 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of Templates: time 0.1756/11.69, allocations: 110.1 MB / 4.451 GB, free: 81.43 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches