Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",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.001152/0.001152, allocations: 183.4 kB / 8.525 MB, free: 1.82 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.248/1.248, allocations: 221.4 MB / 230.3 MB, free: 3.262 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.0009529/0.0009526, allocations: 94.75 kB / 281.2 MB, free: 1.293 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3108/0.3108, allocations: 44.15 MB / 376.1 MB, free: 43.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1251/0.4359, allocations: 68.03 MB / 444.1 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.7374, allocations: 61.9 MB / 0.4942 GB, free: 42.51 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.735/5.473, allocations: 2.832 GB / 3.326 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/5.473, allocations: 75.95 kB / 3.326 GB, free: 101.1 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: 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.422/7.895, allocations: 0.8109 GB / 4.137 GB, free: 33.33 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/7.895, allocations: 7.844 kB / 4.137 GB, free: 33.33 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01275/7.908, allocations: 0.8838 MB / 4.138 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008838/7.917, allocations: 2.109 MB / 4.14 GB, free: 32.74 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001831/7.917, allocations: 104.2 kB / 4.14 GB, free: 32.73 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004637/7.917, allocations: 109.2 kB / 4.14 GB, free: 32.73 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005396/7.923, allocations: 2.622 MB / 4.142 GB, free: 32.72 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005058/7.928, allocations: 2.863 MB / 4.145 GB, free: 32.18 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-05/7.928, allocations: 11.16 kB / 4.145 GB, free: 32.17 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002543/7.928, allocations: 6.656 kB / 4.145 GB, free: 32.17 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002202/7.929, allocations: 174.2 kB / 4.145 GB, free: 32.17 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.17/8.099, allocations: 94.84 MB / 4.238 GB, free: 16.77 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/8.1, allocations: 1.141 MB / 4.239 GB, free: 16.13 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/8.101, allocations: 1.022 MB / 4.24 GB, free: 15.57 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2226/8.324, allocations: 16.93 MB / 4.257 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00161/8.325, allocations: 1.213 MB / 4.258 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=147): time 3.436e-06/8.325, allocations: 0 / 4.258 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=163): time 0.01985/8.345, allocations: 8.412 MB / 4.266 GB, free: 124.7 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/8.345, allocations: 383.7 kB / 4.266 GB, free: 124.2 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/8.347, allocations: 1.153 MB / 4.267 GB, free: 124.1 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001417/8.347, allocations: 28.7 kB / 4.268 GB, free: 124.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004502/8.348, allocations: 0.7688 MB / 4.268 GB, free: 123.7 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003928/8.348, allocations: 0.5458 MB / 4.269 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/8.348, allocations: 0 / 4.269 GB, free: 123.4 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.202e-05/8.348, allocations: 389.1 kB / 4.269 GB, free: 123.1 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/8.35, allocations: 1.156 MB / 4.27 GB, free: 123.1 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/8.351, allocations: 1.613 MB / 4.272 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005325/8.357, allocations: 2.104 MB / 4.274 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/8.357, allocations: 3.75 kB / 4.274 GB, free: 122.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009848/8.366, allocations: 4.51 MB / 4.278 GB, free: 122.4 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006862/8.367, allocations: 4.697 MB / 4.283 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/8.367, allocations: 17.55 kB / 4.283 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005884/8.368, allocations: 246 kB / 4.283 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002119/8.37, allocations: 0.5183 MB / 4.284 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/8.371, allocations: 2.558 MB / 4.286 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/8.373, allocations: 264.2 kB / 4.286 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/8.374, allocations: 113.7 kB / 4.287 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 7.764e-06/8.374, allocations: 3.5 kB / 4.287 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007091/8.381, allocations: 3.463 MB / 4.29 GB, free: 115.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/8.381, allocations: 15.89 kB / 4.29 GB, free: 115.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005573/8.381, allocations: 253.4 kB / 4.29 GB, free: 115.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/8.383, allocations: 0.5131 MB / 4.291 GB, free: 115.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/8.385, allocations: 2.558 MB / 4.293 GB, free: 113.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/8.387, allocations: 242.8 kB / 4.293 GB, free: 113.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/8.387, allocations: 98.62 kB / 4.294 GB, free: 113.3 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 (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.0005023/8.388, allocations: 204.3 kB / 4.294 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001718/8.389, allocations: 0.6482 MB / 4.294 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008553/8.398, allocations: 6.683 MB / 4.301 GB, free: 112.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.103e-05/8.398, allocations: 59.31 kB / 4.301 GB, free: 112.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/8.398, allocations: 0 / 4.301 GB, free: 112.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00603/8.404, allocations: 5.488 MB / 4.306 GB, free: 111.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/8.416, allocations: 9.258 MB / 4.315 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/8.416, allocations: 6.844 kB / 4.315 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/8.417, allocations: 326.6 kB / 4.316 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008964/8.418, allocations: 336 kB / 4.316 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/8.418, allocations: 51.22 kB / 4.316 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/8.419, allocations: 2.721 MB / 4.319 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/8.419, allocations: 3.812 kB / 4.319 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00931/8.429, allocations: 7.148 MB / 4.326 GB, free: 108.4 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0124/8.441, allocations: 9.683 MB / 4.335 GB, free: 107.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/8.443, allocations: 0.6876 MB / 4.336 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005588/8.444, allocations: 21.84 kB / 4.336 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/8.445, allocations: 167.5 kB / 4.336 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000261/8.446, allocations: 125.3 kB / 4.336 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/8.446, allocations: 66.19 kB / 4.336 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001571/8.447, allocations: 1.109 MB / 4.337 GB, free: 107.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01134/8.459, allocations: 3.209 MB / 4.34 GB, free: 107 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.01117/8.47, allocations: 3.064 MB / 4.343 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.007798/8.478, allocations: 5.512 MB / 4.349 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/8.478, allocations: 0 / 4.349 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003178/8.481, allocations: 2.874 MB / 4.352 GB, free: 106.4 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004198/8.485, allocations: 0.7352 MB / 4.352 GB, free: 106.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009963/8.495, allocations: 5.954 MB / 4.358 GB, free: 105.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002223/8.497, allocations: 2.36 MB / 4.36 GB, free: 104.7 MB / 0.5886 GB Notification: Performance of SimCode: time 2.044e-06/8.497, allocations: 0 / 4.36 GB, free: 104.7 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)