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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) [: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.001239/0.001239, allocations: 183.5 kB / 8.518 MB, free: 1.848 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.215/1.215, allocations: 221.4 MB / 230.3 MB, free: 7.773 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.001047/0.001047, allocations: 92.67 kB / 281.2 MB, free: 5.523 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.1859/0.1859, allocations: 44.14 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2254/0.4113, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.521, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.146/5.667, allocations: 2.832 GB / 3.326 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/5.668, allocations: 78.52 kB / 3.326 GB, free: 150 MB / 0.5105 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: 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 2.486/8.154, allocations: 0.8121 GB / 4.138 GB, free: 44.7 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/8.154, allocations: 17.91 kB / 4.138 GB, free: 44.69 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006743/8.161, allocations: 0.8785 MB / 4.139 GB, free: 44.56 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00643/8.167, allocations: 2.11 MB / 4.141 GB, free: 44.1 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/8.167, allocations: 99.02 kB / 4.141 GB, free: 44.09 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009002/8.168, allocations: 114.5 kB / 4.141 GB, free: 44.09 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005031/8.173, allocations: 2.621 MB / 4.144 GB, free: 44.08 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0061/8.18, allocations: 2.868 MB / 4.146 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.915e-05/8.18, allocations: 9.719 kB / 4.146 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004202/8.18, allocations: 11.84 kB / 4.147 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/8.18, allocations: 171.5 kB / 4.147 GB, free: 43.52 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1698/8.35, allocations: 94.84 MB / 4.239 GB, free: 16.44 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001943/8.352, allocations: 1.136 MB / 4.24 GB, free: 16.42 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/8.353, allocations: 1.027 MB / 4.241 GB, free: 16.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03302/8.386, allocations: 16.93 MB / 4.258 GB, free: 21.31 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002191/8.389, allocations: 1.213 MB / 4.259 GB, free: 21.17 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=147): time 4.348e-06/8.389, allocations: 0 / 4.259 GB, free: 21.17 MB / 0.6042 GB Notification: Performance of matching and sorting (n=163): time 0.02152/8.41, allocations: 8.4 MB / 4.267 GB, free: 19.47 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/8.41, allocations: 393.3 kB / 4.268 GB, free: 19.02 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/8.412, allocations: 1.15 MB / 4.269 GB, free: 18.85 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002279/8.412, allocations: 28.73 kB / 4.269 GB, free: 18.82 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004966/8.413, allocations: 0.7717 MB / 4.27 GB, free: 18.36 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004678/8.413, allocations: 0.5365 MB / 4.27 GB, free: 18.01 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/8.413, allocations: 0 / 4.27 GB, free: 18.01 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001575/8.413, allocations: 384 kB / 4.27 GB, free: 17.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/8.415, allocations: 1.163 MB / 4.272 GB, free: 17.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/8.417, allocations: 1.608 MB / 4.273 GB, free: 17.19 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005528/8.422, allocations: 2.109 MB / 4.275 GB, free: 17.14 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/8.422, allocations: 3.938 kB / 4.275 GB, free: 17.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01191/8.434, allocations: 5.13 MB / 4.28 GB, free: 16.95 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001253/8.435, allocations: 4.692 MB / 4.285 GB, free: 12.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.986e-05/8.435, allocations: 13.03 kB / 4.285 GB, free: 12.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008277/8.444, allocations: 2.157 MB / 4.287 GB, free: 12.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/8.445, allocations: 315 kB / 4.287 GB, free: 12.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008272/8.453, allocations: 4.307 MB / 4.291 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/8.456, allocations: 263.1 kB / 4.292 GB, free: 11.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003855/8.457, allocations: 109 kB / 4.292 GB, free: 11.41 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/8.457, allocations: 5.312 kB / 4.292 GB, free: 11.41 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009313/8.466, allocations: 3.897 MB / 4.296 GB, free: 11.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-05/8.466, allocations: 12.53 kB / 4.296 GB, free: 11.34 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006171/8.472, allocations: 1.613 MB / 4.297 GB, free: 11.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/8.474, allocations: 353.4 kB / 4.298 GB, free: 11.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/8.478, allocations: 3.01 MB / 4.301 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002374/8.48, allocations: 238.3 kB / 4.301 GB, free: 10.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002879/8.481, allocations: 101.2 kB / 4.301 GB, free: 10.68 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.0006095/8.481, allocations: 192.2 kB / 4.301 GB, free: 10.52 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002097/8.484, allocations: 0.653 MB / 4.302 GB, free: 10.43 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009973/8.493, allocations: 6.688 MB / 4.308 GB, free: 7.645 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.513e-05/8.494, allocations: 64.22 kB / 4.308 GB, free: 7.617 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/8.494, allocations: 5.594 kB / 4.308 GB, free: 7.613 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006711/8.5, allocations: 5.483 MB / 4.314 GB, free: 4.301 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2127/8.713, allocations: 9.374 MB / 4.323 GB, free: 128.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/8.713, allocations: 3.703 kB / 4.323 GB, free: 128.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001827/8.715, allocations: 333.9 kB / 4.323 GB, free: 128.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009094/8.716, allocations: 334.9 kB / 4.323 GB, free: 128.1 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003111/8.716, allocations: 49.11 kB / 4.323 GB, free: 128.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001285/8.717, allocations: 2.72 MB / 4.326 GB, free: 126 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/8.717, allocations: 3.375 kB / 4.326 GB, free: 126 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01008/8.728, allocations: 7.152 MB / 4.333 GB, free: 125.6 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01242/8.74, allocations: 9.679 MB / 4.343 GB, free: 124.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/8.742, allocations: 0.6821 MB / 4.343 GB, free: 124.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005739/8.742, allocations: 25.73 kB / 4.343 GB, free: 124.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001672/8.744, allocations: 166.8 kB / 4.343 GB, free: 124.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002903/8.744, allocations: 125.5 kB / 4.344 GB, free: 124.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/8.745, allocations: 67.97 kB / 4.344 GB, free: 124.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001487/8.746, allocations: 1.109 MB / 4.345 GB, free: 124.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01192/8.758, allocations: 3.21 MB / 4.348 GB, free: 124.6 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.01123/8.769, allocations: 3.047 MB / 4.351 GB, free: 124.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007986/8.777, allocations: 5.574 MB / 4.356 GB, free: 124.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/8.777, allocations: 0 / 4.356 GB, free: 124.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003208/8.781, allocations: 2.874 MB / 4.359 GB, free: 124.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004165/8.785, allocations: 0.7318 MB / 4.36 GB, free: 124.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/8.795, allocations: 5.966 MB / 4.366 GB, free: 123.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/8.797, allocations: 2.335 MB / 4.368 GB, free: 122.4 MB / 0.6042 GB Notification: Performance of SimCode: time 6.31e-07/8.797, allocations: 0 / 4.368 GB, free: 122.4 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)