Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,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.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.SeriesPipes1") [: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.0009121/0.0009122, allocations: 185 kB / 7.804 MB, free: 2.492 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.067/1.067, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008429/0.0008431, allocations: 91.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.1675/0.1675, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.504e-06/7.534e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2338, allocations: 58.84 MB / 476.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.196/4.43, allocations: 2.827 GB / 3.292 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001649/4.43, allocations: 82.11 kB / 3.292 GB, free: 23.04 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.339/6.769, allocations: 0.7983 GB / 4.09 GB, free: 17.85 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002594/6.77, allocations: 68.5 kB / 4.091 GB, free: 17.79 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.0133/6.783, allocations: 3.871 MB / 4.094 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/6.783, allocations: 8.031 kB / 4.094 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00632/6.789, allocations: 0.8827 MB / 4.095 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005328/6.795, allocations: 2.103 MB / 4.097 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/6.795, allocations: 99.97 kB / 4.097 GB, free: 10.76 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003551/6.795, allocations: 112 kB / 4.097 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003691/6.799, allocations: 2.62 MB / 4.1 GB, free: 8.027 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003597/6.802, allocations: 2.863 MB / 4.103 GB, free: 4.961 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.926e-05/6.802, allocations: 11.84 kB / 4.103 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002072/6.803, allocations: 15.64 kB / 4.103 GB, free: 4.938 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/6.803, allocations: 171.5 kB / 4.103 GB, free: 4.77 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3735/7.176, allocations: 94.82 MB / 4.196 GB, free: 40.8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/7.178, allocations: 1.141 MB / 4.197 GB, free: 40.78 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/7.179, allocations: 1.022 MB / 4.198 GB, free: 40.76 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0282/7.207, allocations: 16.94 MB / 4.214 GB, free: 45.67 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002208/7.209, allocations: 1.209 MB / 4.215 GB, free: 45.54 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=147): time 5.17e-06/7.209, allocations: 0 / 4.215 GB, free: 45.54 MB / 0.5573 GB Notification: Performance of matching and sorting (n=163): time 0.02089/7.23, allocations: 8.4 MB / 4.224 GB, free: 44.06 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/7.23, allocations: 385.9 kB / 4.224 GB, free: 43.62 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/7.232, allocations: 1.149 MB / 4.225 GB, free: 43.46 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001519/7.232, allocations: 29.08 kB / 4.225 GB, free: 43.43 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005879/7.233, allocations: 0.7668 MB / 4.226 GB, free: 43.08 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004354/7.233, allocations: 0.542 MB / 4.226 GB, free: 42.8 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/7.233, allocations: 4.484 kB / 4.226 GB, free: 42.8 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001552/7.233, allocations: 387.1 kB / 4.227 GB, free: 42.49 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/7.235, allocations: 1.157 MB / 4.228 GB, free: 42.49 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/7.237, allocations: 1.61 MB / 4.229 GB, free: 41.98 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/7.25, allocations: 3.528 MB / 4.233 GB, free: 41.9 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.396e-05/7.25, allocations: 3.188 kB / 4.233 GB, free: 41.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01858/7.269, allocations: 5.94 MB / 4.239 GB, free: 41.63 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001465/7.27, allocations: 4.685 MB / 4.243 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.999e-05/7.27, allocations: 18.52 kB / 4.243 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005869/7.271, allocations: 255.2 kB / 4.244 GB, free: 36.75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/7.273, allocations: 0.5172 MB / 4.244 GB, free: 36.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/7.274, allocations: 2.556 MB / 4.247 GB, free: 34.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002365/7.277, allocations: 264.1 kB / 4.247 GB, free: 34.63 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002198/7.277, allocations: 105.1 kB / 4.247 GB, free: 34.63 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/7.277, allocations: 5.469 kB / 4.247 GB, free: 34.63 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01519/7.292, allocations: 4.896 MB / 4.252 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-05/7.292, allocations: 17.12 kB / 4.252 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005563/7.293, allocations: 251.3 kB / 4.252 GB, free: 34.46 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/7.295, allocations: 0.5133 MB / 4.252 GB, free: 34.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/7.297, allocations: 2.558 MB / 4.255 GB, free: 32.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/7.299, allocations: 240 kB / 4.255 GB, free: 32.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003436/7.299, allocations: 101 kB / 4.255 GB, free: 32.34 MB / 0.5573 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 (246): * Single equations (assignments): 239 * 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: 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 prepare postOptimizeDAE: time 0.0007401/7.3, allocations: 206.4 kB / 4.256 GB, free: 32.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/7.302, allocations: 0.6498 MB / 4.256 GB, free: 32.11 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/7.313, allocations: 6.665 MB / 4.263 GB, free: 31.57 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.943e-05/7.313, allocations: 59.59 kB / 4.263 GB, free: 31.57 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/7.313, allocations: 3.719 kB / 4.263 GB, free: 31.57 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006572/7.319, allocations: 5.482 MB / 4.268 GB, free: 30.93 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/7.332, allocations: 9.262 MB / 4.277 GB, free: 30.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/7.332, allocations: 0 / 4.277 GB, free: 30.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/7.334, allocations: 330 kB / 4.277 GB, free: 30.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009482/7.335, allocations: 346.7 kB / 4.278 GB, free: 30.05 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001916/7.335, allocations: 43.66 kB / 4.278 GB, free: 30.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001979/7.337, allocations: 2.727 MB / 4.28 GB, free: 27.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/7.337, allocations: 1.219 kB / 4.28 GB, free: 27.95 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01074/7.348, allocations: 7.143 MB / 4.287 GB, free: 27.38 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001815/7.349, allocations: 0.6943 MB / 4.288 GB, free: 27.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007704/7.35, allocations: 21 kB / 4.288 GB, free: 27.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002109/7.352, allocations: 156.7 kB / 4.288 GB, free: 27.12 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003083/7.353, allocations: 139.5 kB / 4.288 GB, free: 27.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001905/7.353, allocations: 66.95 kB / 4.288 GB, free: 27.12 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002424/7.355, allocations: 1.109 MB / 4.29 GB, free: 27.01 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01176/7.367, allocations: 2.697 MB / 4.292 GB, free: 26.94 MB / 0.5573 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.01386/7.381, allocations: 3.062 MB / 4.295 GB, free: 26.52 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009335/7.39, allocations: 5.514 MB / 4.301 GB, free: 26.32 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/7.39, allocations: 3.938 kB / 4.301 GB, free: 26.32 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003398/7.394, allocations: 2.873 MB / 4.303 GB, free: 26.28 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004214/7.398, allocations: 0.7273 MB / 4.304 GB, free: 26.24 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/7.409, allocations: 5.939 MB / 4.31 GB, free: 24.99 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00308/7.412, allocations: 2.334 MB / 4.312 GB, free: 24.19 MB / 0.5573 GB Notification: Performance of SimCode: time 8.82e-07/7.412, allocations: 0 / 4.312 GB, free: 24.19 MB / 0.5573 GB Notification: Performance of Templates: time 0.3298/7.742, allocations: 90.43 MB / 4.4 GB, free: 101.3 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes1/SeriesPipes1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches