Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.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.",fileNamePrefix="ModelicaTest_4.0.0_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.",fileNamePrefix="ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009301/0.0009302, allocations: 179.5 kB / 8.517 MB, free: 1.859 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.146/1.146, allocations: 221.4 MB / 230.3 MB, free: 7.684 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.0009372/0.0009371, allocations: 95.47 kB / 281.2 MB, free: 5.434 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.1691/0.1691, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.415e-06/8.445e-06, allocations: 224 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1014, allocations: 61.91 MB / 0.4941 GB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.835/4.936, allocations: 2.832 GB / 3.326 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/4.937, allocations: 82.11 kB / 3.326 GB, free: 126.6 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 3.207/8.144, allocations: 0.8083 GB / 4.134 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002037/8.144, allocations: 67 kB / 4.134 GB, free: 35.89 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01675/8.161, allocations: 3.873 MB / 4.138 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/8.161, allocations: 13.53 kB / 4.138 GB, free: 34.06 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007327/8.168, allocations: 0.8822 MB / 4.139 GB, free: 33.93 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006741/8.175, allocations: 2.107 MB / 4.141 GB, free: 33.47 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/8.175, allocations: 95.02 kB / 4.141 GB, free: 33.47 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000546/8.176, allocations: 117.2 kB / 4.141 GB, free: 33.47 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004538/8.18, allocations: 2.618 MB / 4.144 GB, free: 33.46 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004525/8.185, allocations: 2.87 MB / 4.146 GB, free: 32.91 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-05/8.185, allocations: 11.41 kB / 4.146 GB, free: 32.91 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/8.185, allocations: 3.719 kB / 4.146 GB, free: 32.91 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001827/8.185, allocations: 176.5 kB / 4.147 GB, free: 32.9 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1902/8.376, allocations: 94.86 MB / 4.239 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/8.378, allocations: 1.138 MB / 4.24 GB, free: 21.06 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/8.379, allocations: 1.019 MB / 4.241 GB, free: 21.05 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0429/8.422, allocations: 16.94 MB / 4.258 GB, free: 24.3 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004069/8.426, allocations: 1.211 MB / 4.259 GB, free: 23.62 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=147): time 6.703e-06/8.426, allocations: 0 / 4.259 GB, free: 23.62 MB / 0.6042 GB Notification: Performance of matching and sorting (n=163): time 0.02821/8.455, allocations: 8.398 MB / 4.267 GB, free: 18.13 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002955/8.455, allocations: 387.3 kB / 4.268 GB, free: 17.67 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002215/8.457, allocations: 1.153 MB / 4.269 GB, free: 16.94 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002317/8.457, allocations: 29.7 kB / 4.269 GB, free: 16.9 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000949/8.458, allocations: 0.767 MB / 4.27 GB, free: 16.33 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006661/8.459, allocations: 0.5453 MB / 4.27 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/8.459, allocations: 0 / 4.27 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002498/8.459, allocations: 382 kB / 4.27 GB, free: 15.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001823/8.461, allocations: 1.157 MB / 4.272 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002085/8.463, allocations: 1.607 MB / 4.273 GB, free: 13.78 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006524/8.47, allocations: 2.116 MB / 4.275 GB, free: 12.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/8.47, allocations: 4 kB / 4.275 GB, free: 12.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01291/8.483, allocations: 5.128 MB / 4.28 GB, free: 9.887 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.002639/8.486, allocations: 4.697 MB / 4.285 GB, free: 5.016 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-05/8.486, allocations: 18.34 kB / 4.285 GB, free: 5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008312/8.494, allocations: 2.146 MB / 4.287 GB, free: 3.668 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/8.496, allocations: 319.5 kB / 4.287 GB, free: 3.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008912/8.505, allocations: 4.308 MB / 4.291 GB, free: 0.9492 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003712/8.508, allocations: 259.5 kB / 4.292 GB, free: 0.7578 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003015/8.509, allocations: 104.1 kB / 4.292 GB, free: 0.6836 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/8.509, allocations: 8 kB / 4.292 GB, free: 0.6758 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4186/8.927, allocations: 3.973 MB / 4.296 GB, free: 140.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.189e-05/8.927, allocations: 13.97 kB / 4.296 GB, free: 140.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006078/8.933, allocations: 1.616 MB / 4.297 GB, free: 140.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/8.935, allocations: 353.9 kB / 4.298 GB, free: 140.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/8.94, allocations: 3.007 MB / 4.301 GB, free: 139.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00346/8.944, allocations: 238.7 kB / 4.301 GB, free: 139.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003378/8.944, allocations: 102.3 kB / 4.301 GB, free: 139.6 MB / 0.6042 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.0008724/8.945, allocations: 187.2 kB / 4.301 GB, free: 139.4 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002594/8.947, allocations: 0.6491 MB / 4.302 GB, free: 139.4 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01219/8.96, allocations: 6.69 MB / 4.308 GB, free: 139 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-05/8.96, allocations: 62.58 kB / 4.308 GB, free: 139 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/8.96, allocations: 1.219 kB / 4.308 GB, free: 139 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008072/8.968, allocations: 5.485 MB / 4.314 GB, free: 138.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01671/8.985, allocations: 9.262 MB / 4.323 GB, free: 137.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/8.985, allocations: 0 / 4.323 GB, free: 137.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/8.986, allocations: 332.5 kB / 4.323 GB, free: 137.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009991/8.987, allocations: 339.4 kB / 4.323 GB, free: 137.6 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001673/8.988, allocations: 49.41 kB / 4.323 GB, free: 137.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001762/8.989, allocations: 2.719 MB / 4.326 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/8.989, allocations: 2.812 kB / 4.326 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01181/9.001, allocations: 7.147 MB / 4.333 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002317/9.004, allocations: 0.6907 MB / 4.334 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004816/9.004, allocations: 30.06 kB / 4.334 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/9.006, allocations: 156.5 kB / 4.334 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002997/9.006, allocations: 130.9 kB / 4.334 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/9.006, allocations: 65.55 kB / 4.334 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0019/9.008, allocations: 1.113 MB / 4.335 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0161/9.024, allocations: 2.702 MB / 4.338 GB, free: 134.7 MB / 0.6042 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.01891/9.043, allocations: 3.053 MB / 4.341 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01392/9.057, allocations: 5.579 MB / 4.346 GB, free: 134.4 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/9.057, allocations: 2.875 kB / 4.346 GB, free: 134.4 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005535/9.063, allocations: 2.864 MB / 4.349 GB, free: 134.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007038/9.07, allocations: 0.7357 MB / 4.35 GB, free: 134.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01606/9.086, allocations: 5.934 MB / 4.355 GB, free: 133.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003985/9.09, allocations: 2.303 MB / 4.358 GB, free: 132.6 MB / 0.6042 GB Notification: Performance of SimCode: time 2.164e-06/9.09, allocations: 0 / 4.358 GB, free: 132.6 MB / 0.6042 GB Notification: Performance of Templates: time 0.1564/9.246, allocations: 95.65 MB / 4.451 GB, free: 126.4 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes12/SeriesPipes12.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches