Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009373/0.0009373, allocations: 184.3 kB / 7.8 MB, free: 2.5 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.088/1.088, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.0007449/0.0007448, allocations: 96.5 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.1723/0.1723, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.416e-06/8.446e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.287, allocations: 58.84 MB / 476.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.834/5.121, allocations: 2.841 GB / 3.307 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/5.121, allocations: 75.97 kB / 3.307 GB, free: 24.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.45/7.571, allocations: 0.7994 GB / 4.106 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001499/7.571, allocations: 54.61 kB / 4.106 GB, free: 38.48 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01287/7.584, allocations: 3.795 MB / 4.11 GB, free: 37.05 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/7.584, allocations: 10.09 kB / 4.11 GB, free: 37.05 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006114/7.59, allocations: 0.8118 MB / 4.111 GB, free: 36.93 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004765/7.595, allocations: 2 MB / 4.113 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/7.595, allocations: 84.22 kB / 4.113 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/7.595, allocations: 111.1 kB / 4.113 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003542/7.599, allocations: 2.607 MB / 4.115 GB, free: 36.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003123/7.602, allocations: 2.59 MB / 4.118 GB, free: 36 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.239e-05/7.602, allocations: 5.938 kB / 4.118 GB, free: 36 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00018/7.602, allocations: 4.906 kB / 4.118 GB, free: 36 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/7.602, allocations: 155 kB / 4.118 GB, free: 36 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2122/7.815, allocations: 125.3 MB / 4.24 GB, free: 21.45 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/7.816, allocations: 1.052 MB / 4.241 GB, free: 21.42 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/7.817, allocations: 1.002 MB / 4.242 GB, free: 21.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02926/7.846, allocations: 17.09 MB / 4.259 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001695/7.848, allocations: 1.187 MB / 4.26 GB, free: 9.938 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 3.066e-06/7.848, allocations: 0 / 4.26 GB, free: 9.938 MB / 0.5886 GB Notification: Performance of matching and sorting (n=157): time 0.03086/7.879, allocations: 9.18 MB / 4.269 GB, free: 8.297 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001863/7.879, allocations: 364.5 kB / 4.27 GB, free: 23.89 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/7.88, allocations: 1.049 MB / 4.271 GB, free: 23.72 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001646/7.88, allocations: 28.73 kB / 4.271 GB, free: 23.69 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004179/7.881, allocations: 0.6879 MB / 4.271 GB, free: 23.29 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/7.881, allocations: 0.5063 MB / 4.272 GB, free: 22.95 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/7.881, allocations: 0 / 4.272 GB, free: 22.95 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001346/7.881, allocations: 380.9 kB / 4.272 GB, free: 22.64 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/7.883, allocations: 1.025 MB / 4.273 GB, free: 22.64 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/7.884, allocations: 1.418 MB / 4.275 GB, free: 22.24 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00804/7.892, allocations: 1.983 MB / 4.276 GB, free: 22.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/7.892, allocations: 0 / 4.276 GB, free: 22.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01373/7.906, allocations: 4.319 MB / 4.281 GB, free: 21.97 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001008/7.907, allocations: 3.711 MB / 4.284 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-05/7.907, allocations: 9.844 kB / 4.284 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002143/7.909, allocations: 0.5231 MB / 4.285 GB, free: 18.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001891/7.911, allocations: 456.2 kB / 4.285 GB, free: 18.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/7.913, allocations: 2.908 MB / 4.288 GB, free: 16 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002455/7.916, allocations: 268.5 kB / 4.288 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002197/7.916, allocations: 96.78 kB / 4.288 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/7.916, allocations: 4.125 kB / 4.288 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01025/7.926, allocations: 3.184 MB / 4.292 GB, free: 15.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/7.926, allocations: 11.47 kB / 4.292 GB, free: 15.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004667/7.927, allocations: 195.9 kB / 4.292 GB, free: 15.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/7.929, allocations: 468 kB / 4.292 GB, free: 15.83 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/7.93, allocations: 1.917 MB / 4.294 GB, free: 14.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/7.932, allocations: 242.5 kB / 4.294 GB, free: 14.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002382/7.932, allocations: 94.06 kB / 4.294 GB, free: 14.23 MB / 0.6042 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.0005244/7.933, allocations: 233.4 kB / 4.295 GB, free: 14.05 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001805/7.935, allocations: 0.6134 MB / 4.295 GB, free: 13.96 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01413/7.949, allocations: 6.736 MB / 4.302 GB, free: 13.45 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.797e-05/7.949, allocations: 55.52 kB / 4.302 GB, free: 13.45 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/7.949, allocations: 5.281 kB / 4.302 GB, free: 13.45 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0109/7.96, allocations: 5.831 MB / 4.308 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01791/7.978, allocations: 10.21 MB / 4.318 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/7.978, allocations: 4 kB / 4.318 GB, free: 5.449 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/7.979, allocations: 296.6 kB / 4.318 GB, free: 5.227 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/7.981, allocations: 1.17 MB / 4.319 GB, free: 4.363 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/7.981, allocations: 48.48 kB / 4.319 GB, free: 4.336 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/7.984, allocations: 3.4 MB / 4.322 GB, free: 1.523 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/7.984, allocations: 11.38 kB / 4.322 GB, free: 1.516 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1988/8.183, allocations: 7.942 MB / 4.33 GB, free: 155.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/8.184, allocations: 0.6605 MB / 4.331 GB, free: 155 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003544/8.184, allocations: 25.61 kB / 4.331 GB, free: 155 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/8.186, allocations: 151.8 kB / 4.331 GB, free: 155 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/8.186, allocations: 133.7 kB / 4.331 GB, free: 155 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/8.186, allocations: 74.94 kB / 4.331 GB, free: 155 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001144/8.187, allocations: 1.031 MB / 4.332 GB, free: 154.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.007538/8.195, allocations: 2.502 MB / 4.335 GB, free: 154.9 MB / 0.6042 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.007098/8.202, allocations: 2.921 MB / 4.337 GB, free: 154.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.005773/8.207, allocations: 4.93 MB / 4.342 GB, free: 154.6 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/8.207, allocations: 3.875 kB / 4.342 GB, free: 154.6 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003065/8.211, allocations: 2.986 MB / 4.345 GB, free: 154.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/8.214, allocations: 0.6809 MB / 4.346 GB, free: 154.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0069/8.221, allocations: 5.403 MB / 4.351 GB, free: 153.4 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/8.222, allocations: 2.208 MB / 4.353 GB, free: 152.7 MB / 0.6042 GB Notification: Performance of SimCode: time 3.71e-07/8.222, allocations: 0 / 4.353 GB, free: 152.7 MB / 0.6042 GB Notification: Performance of Templates: time 0.09672/8.319, allocations: 84.36 MB / 4.436 GB, free: 148.8 MB / 0.6042 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes2/BranchingPipes2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches