Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,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|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") [: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.0009422/0.0009423, allocations: 189.7 kB / 7.803 MB, free: 2.449 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.112/1.112, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0009604/0.0009604, allocations: 89.97 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.1553/0.1553, allocations: 43.49 MB / 352.9 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/5.961e-06, allocations: 0 / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2378, allocations: 58.83 MB / 476.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.011/4.249, allocations: 2.827 GB / 3.292 GB, free: 37.47 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000163/4.249, allocations: 79.66 kB / 3.292 GB, free: 37.4 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 2.342/6.591, allocations: 0.7996 GB / 4.092 GB, free: 41.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003207/6.591, allocations: 69.83 kB / 4.092 GB, free: 41.01 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01564/6.607, allocations: 3.872 MB / 4.096 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/6.607, allocations: 9 kB / 4.096 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007276/6.614, allocations: 0.8848 MB / 4.096 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00725/6.622, allocations: 2.094 MB / 4.099 GB, free: 37.76 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002677/6.622, allocations: 96.69 kB / 4.099 GB, free: 37.75 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009814/6.623, allocations: 115.7 kB / 4.099 GB, free: 37.75 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005397/6.628, allocations: 2.621 MB / 4.101 GB, free: 36.87 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006881/6.635, allocations: 2.862 MB / 4.104 GB, free: 35.58 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.578e-05/6.635, allocations: 12.02 kB / 4.104 GB, free: 35.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005503/6.636, allocations: 6.75 kB / 4.104 GB, free: 35.57 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000228/6.636, allocations: 175 kB / 4.104 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3839/7.02, allocations: 94.84 MB / 4.197 GB, free: 69.52 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/7.022, allocations: 1.141 MB / 4.198 GB, free: 69.49 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/7.023, allocations: 1.029 MB / 4.199 GB, free: 69.48 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02921/7.052, allocations: 16.92 MB / 4.216 GB, free: 59.05 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002463/7.055, allocations: 1.212 MB / 4.217 GB, free: 58.92 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 3.997e-06/7.055, allocations: 1.031 kB / 4.217 GB, free: 58.92 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.02045/7.075, allocations: 8.403 MB / 4.225 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/7.075, allocations: 384.9 kB / 4.225 GB, free: 57.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/7.077, allocations: 1.149 MB / 4.226 GB, free: 56.85 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001563/7.077, allocations: 29.23 kB / 4.226 GB, free: 56.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006655/7.078, allocations: 0.7704 MB / 4.227 GB, free: 56.48 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004705/7.078, allocations: 0.5344 MB / 4.228 GB, free: 56.2 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/7.078, allocations: 3.5 kB / 4.228 GB, free: 56.2 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001093/7.078, allocations: 395.1 kB / 4.228 GB, free: 55.89 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/7.08, allocations: 1.159 MB / 4.229 GB, free: 55.89 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/7.082, allocations: 1.602 MB / 4.231 GB, free: 55.38 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/7.095, allocations: 3.534 MB / 4.234 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/7.095, allocations: 7.812 kB / 4.234 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01836/7.113, allocations: 6.552 MB / 4.241 GB, free: 55.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007076/7.114, allocations: 4.692 MB / 4.245 GB, free: 50.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.913e-05/7.114, allocations: 13.73 kB / 4.245 GB, free: 50.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007274/7.122, allocations: 2.147 MB / 4.247 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/7.123, allocations: 311.9 kB / 4.248 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007312/7.13, allocations: 4.308 MB / 4.252 GB, free: 49.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/7.134, allocations: 261.9 kB / 4.252 GB, free: 49.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005683/7.134, allocations: 103.6 kB / 4.252 GB, free: 49.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/7.134, allocations: 10.44 kB / 4.252 GB, free: 49.53 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01734/7.152, allocations: 5.315 MB / 4.257 GB, free: 49.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-05/7.152, allocations: 16.27 kB / 4.257 GB, free: 49.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005642/7.157, allocations: 1.61 MB / 4.259 GB, free: 49.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/7.159, allocations: 355.6 kB / 4.259 GB, free: 49.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003684/7.163, allocations: 3.015 MB / 4.262 GB, free: 48.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/7.165, allocations: 234.9 kB / 4.262 GB, free: 48.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000307/7.165, allocations: 99.77 kB / 4.263 GB, free: 48.77 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.0006434/7.166, allocations: 202.5 kB / 4.263 GB, free: 48.62 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00196/7.168, allocations: 0.6466 MB / 4.263 GB, free: 48.54 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009098/7.177, allocations: 6.677 MB / 4.27 GB, free: 48.01 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.702e-05/7.177, allocations: 63.06 kB / 4.27 GB, free: 48 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/7.177, allocations: 3.094 kB / 4.27 GB, free: 48 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00652/7.184, allocations: 5.477 MB / 4.275 GB, free: 47.35 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01263/7.196, allocations: 9.262 MB / 4.284 GB, free: 46.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/7.196, allocations: 6.75 kB / 4.284 GB, free: 46.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/7.198, allocations: 334.2 kB / 4.285 GB, free: 46.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008448/7.199, allocations: 336.9 kB / 4.285 GB, free: 46.47 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001583/7.199, allocations: 46.33 kB / 4.285 GB, free: 46.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/7.2, allocations: 2.72 MB / 4.288 GB, free: 44.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/7.2, allocations: 0 / 4.288 GB, free: 44.38 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009174/7.209, allocations: 7.144 MB / 4.295 GB, free: 43.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/7.211, allocations: 0.69 MB / 4.295 GB, free: 43.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006446/7.211, allocations: 21.16 kB / 4.295 GB, free: 43.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001824/7.213, allocations: 164 kB / 4.296 GB, free: 43.55 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/7.214, allocations: 127.5 kB / 4.296 GB, free: 43.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001523/7.214, allocations: 66 kB / 4.296 GB, free: 43.55 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001662/7.215, allocations: 1.114 MB / 4.297 GB, free: 43.45 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01013/7.225, allocations: 2.699 MB / 4.299 GB, free: 43.37 MB / 0.5417 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,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01215/7.238, allocations: 3.064 MB / 4.302 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009787/7.247, allocations: 5.572 MB / 4.308 GB, free: 42.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/7.248, allocations: 1.344 kB / 4.308 GB, free: 42.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003494/7.251, allocations: 2.871 MB / 4.311 GB, free: 42.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004346/7.255, allocations: 0.7321 MB / 4.311 GB, free: 42.61 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/7.269, allocations: 5.919 MB / 4.317 GB, free: 41.38 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003262/7.272, allocations: 2.307 MB / 4.319 GB, free: 40.57 MB / 0.5417 GB Notification: Performance of SimCode: time 1.122e-06/7.272, allocations: 3.219 kB / 4.319 GB, free: 40.57 MB / 0.5417 GB Notification: Performance of Templates: time 0.3197/7.592, allocations: 95.57 MB / 4.413 GB, free: 92.28 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes12/SeriesPipes12.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches