Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,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.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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.SeriesPipes13") [: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.001018/0.001018, allocations: 188.8 kB / 7.804 MB, free: 2.445 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.174/1.174, allocations: 205.2 MB / 213.4 MB, free: 13.83 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.0009099/0.0009099, allocations: 87.03 kB / 261.4 MB, free: 13.5 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.1616/0.1616, allocations: 43.48 MB / 352.8 MB, free: 1.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.392e-06/6.402e-06, allocations: 0 / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2304, allocations: 58.84 MB / 476.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.092/4.322, allocations: 2.827 GB / 3.292 GB, free: 39 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/4.323, allocations: 79.95 kB / 3.292 GB, free: 38.93 MB / 0.4948 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.471/6.793, allocations: 0.8618 GB / 4.154 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001618/6.793, allocations: 66.08 kB / 4.154 GB, free: 29.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.01105/6.805, allocations: 3.882 MB / 4.158 GB, free: 27.35 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/6.805, allocations: 7.156 kB / 4.158 GB, free: 27.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005749/6.81, allocations: 0.8771 MB / 4.159 GB, free: 27.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00489/6.815, allocations: 2.107 MB / 4.161 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/6.815, allocations: 99.44 kB / 4.161 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/6.816, allocations: 114.4 kB / 4.161 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003575/6.819, allocations: 2.62 MB / 4.164 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003518/6.823, allocations: 2.863 MB / 4.166 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.88e-05/6.823, allocations: 14.38 kB / 4.166 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/6.823, allocations: 6.719 kB / 4.166 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/6.823, allocations: 171.4 kB / 4.167 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1557/6.979, allocations: 94.84 MB / 4.259 GB, free: 15.11 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/6.981, allocations: 1.133 MB / 4.26 GB, free: 15.09 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/6.982, allocations: 1.029 MB / 4.261 GB, free: 15.06 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03163/7.014, allocations: 16.95 MB / 4.278 GB, free: 19.95 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002242/7.016, allocations: 1.204 MB / 4.279 GB, free: 19.81 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=147): time 4.618e-06/7.016, allocations: 0 / 4.279 GB, free: 19.81 MB / 0.5886 GB Notification: Performance of matching and sorting (n=163): time 0.02147/7.037, allocations: 8.39 MB / 4.287 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/7.038, allocations: 384.8 kB / 4.288 GB, free: 17.67 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/7.039, allocations: 1.159 MB / 4.289 GB, free: 17.49 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001717/7.039, allocations: 29.83 kB / 4.289 GB, free: 17.46 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005017/7.04, allocations: 0.7767 MB / 4.289 GB, free: 17 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004204/7.04, allocations: 0.5292 MB / 4.29 GB, free: 16.65 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/7.04, allocations: 5.344 kB / 4.29 GB, free: 16.65 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001412/7.041, allocations: 388.8 kB / 4.29 GB, free: 16.34 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/7.042, allocations: 1.16 MB / 4.291 GB, free: 16.34 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/7.044, allocations: 1.609 MB / 4.293 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01291/7.057, allocations: 3.532 MB / 4.297 GB, free: 15.74 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-05/7.057, allocations: 4.438 kB / 4.297 GB, free: 15.74 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01898/7.076, allocations: 6.551 MB / 4.303 GB, free: 15.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00163/7.077, allocations: 4.686 MB / 4.307 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.674e-05/7.077, allocations: 20.94 kB / 4.308 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00785/7.085, allocations: 2.146 MB / 4.31 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/7.086, allocations: 310.4 kB / 4.31 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007406/7.094, allocations: 4.312 MB / 4.314 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/7.096, allocations: 265.3 kB / 4.314 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002957/7.097, allocations: 105.1 kB / 4.314 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/7.097, allocations: 3.281 kB / 4.314 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01725/7.114, allocations: 5.318 MB / 4.32 GB, free: 9.852 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.568e-05/7.114, allocations: 17.75 kB / 4.32 GB, free: 9.852 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005624/7.12, allocations: 1.611 MB / 4.321 GB, free: 9.793 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/7.121, allocations: 359.5 kB / 4.322 GB, free: 9.789 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003947/7.125, allocations: 3.01 MB / 4.325 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002135/7.127, allocations: 238.8 kB / 4.325 GB, free: 9.184 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002432/7.127, allocations: 102.6 kB / 4.325 GB, free: 9.184 MB / 0.5886 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.0005736/7.128, allocations: 191.3 kB / 4.325 GB, free: 9.035 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/7.13, allocations: 0.6508 MB / 4.326 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008816/7.139, allocations: 6.675 MB / 4.332 GB, free: 6.902 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.92e-05/7.139, allocations: 58.11 kB / 4.332 GB, free: 6.879 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/7.139, allocations: 0 / 4.332 GB, free: 6.879 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005693/7.144, allocations: 5.488 MB / 4.338 GB, free: 3.555 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1993/7.344, allocations: 9.255 MB / 4.347 GB, free: 131.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/7.344, allocations: 0 / 4.347 GB, free: 131.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/7.345, allocations: 334.6 kB / 4.347 GB, free: 131.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008187/7.346, allocations: 338.4 kB / 4.347 GB, free: 131.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/7.346, allocations: 49.25 kB / 4.347 GB, free: 131.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/7.347, allocations: 2.717 MB / 4.35 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/7.347, allocations: 3.391 kB / 4.35 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009122/7.356, allocations: 7.153 MB / 4.357 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/7.358, allocations: 0.6857 MB / 4.358 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004305/7.358, allocations: 22.81 kB / 4.358 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/7.36, allocations: 166 kB / 4.358 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/7.36, allocations: 129.5 kB / 4.358 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/7.36, allocations: 70.42 kB / 4.358 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001308/7.361, allocations: 1.109 MB / 4.359 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009038/7.371, allocations: 2.693 MB / 4.362 GB, free: 128.6 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,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.01271/7.383, allocations: 3.064 MB / 4.365 GB, free: 128.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.007443/7.391, allocations: 5.579 MB / 4.37 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.902e-06/7.391, allocations: 0 / 4.37 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002789/7.394, allocations: 2.863 MB / 4.373 GB, free: 128.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003584/7.397, allocations: 0.7285 MB / 4.374 GB, free: 128.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0088/7.406, allocations: 5.935 MB / 4.379 GB, free: 127.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/7.408, allocations: 2.301 MB / 4.382 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of SimCode: time 9.62e-07/7.408, allocations: 0 / 4.382 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of Templates: time 0.1174/7.525, allocations: 95.58 MB / 4.475 GB, free: 121.9 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes13/SeriesPipes13.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches