Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",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.001047/0.001047, allocations: 178.6 kB / 8.519 MB, free: 1.832 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.233/1.233, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.0009881/0.0009882, allocations: 89.84 kB / 281.2 MB, free: 5.477 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.1683/0.1683, allocations: 44.15 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2359/0.4043, allocations: 68.04 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.5155, allocations: 61.9 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.087/5.603, allocations: 2.832 GB / 3.326 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001692/5.603, allocations: 74.34 kB / 3.326 GB, free: 148.6 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.639/8.242, allocations: 0.8751 GB / 4.201 GB, free: 34.44 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/8.242, allocations: 10.91 kB / 4.201 GB, free: 34.44 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007074/8.249, allocations: 0.8762 MB / 4.202 GB, free: 34.3 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00644/8.255, allocations: 2.114 MB / 4.204 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002447/8.256, allocations: 94.36 kB / 4.204 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/8.257, allocations: 112.5 kB / 4.204 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006279/8.263, allocations: 2.62 MB / 4.207 GB, free: 33.83 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006648/8.27, allocations: 2.868 MB / 4.21 GB, free: 33.28 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.918e-05/8.27, allocations: 11.72 kB / 4.21 GB, free: 33.28 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005107/8.27, allocations: 6.312 kB / 4.21 GB, free: 33.28 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001722/8.27, allocations: 174.2 kB / 4.21 GB, free: 33.27 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1811/8.452, allocations: 94.85 MB / 4.302 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002064/8.454, allocations: 1.137 MB / 4.303 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001719/8.455, allocations: 1.028 MB / 4.304 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2445/8.7, allocations: 17.02 MB / 4.321 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001953/8.702, allocations: 1.21 MB / 4.322 GB, free: 115.8 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=147): time 5.12e-06/8.702, allocations: 0 / 4.322 GB, free: 115.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=163): time 0.02225/8.724, allocations: 8.394 MB / 4.33 GB, free: 114.4 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/8.724, allocations: 390.2 kB / 4.331 GB, free: 113.9 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/8.726, allocations: 1.152 MB / 4.332 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0003456/8.726, allocations: 29.42 kB / 4.332 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005573/8.727, allocations: 0.7758 MB / 4.333 GB, free: 113.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005474/8.728, allocations: 0.54 MB / 4.333 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/8.728, allocations: 0 / 4.333 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001071/8.728, allocations: 385.6 kB / 4.334 GB, free: 112.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/8.729, allocations: 1.157 MB / 4.335 GB, free: 112.8 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/8.731, allocations: 1.616 MB / 4.336 GB, free: 112.3 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006139/8.737, allocations: 2.103 MB / 4.338 GB, free: 112.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.78e-05/8.737, allocations: 3.656 kB / 4.338 GB, free: 112.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01308/8.75, allocations: 5.131 MB / 4.343 GB, free: 112.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00101/8.751, allocations: 4.687 MB / 4.348 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-05/8.752, allocations: 15.12 kB / 4.348 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007861/8.759, allocations: 2.152 MB / 4.35 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/8.761, allocations: 313.6 kB / 4.35 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007358/8.768, allocations: 4.311 MB / 4.355 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/8.771, allocations: 265.6 kB / 4.355 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000312/8.771, allocations: 110.7 kB / 4.355 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/8.771, allocations: 3.594 kB / 4.355 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00854/8.78, allocations: 3.892 MB / 4.359 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.226e-05/8.78, allocations: 11.78 kB / 4.359 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005814/8.786, allocations: 1.613 MB / 4.36 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/8.787, allocations: 364.7 kB / 4.361 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003836/8.791, allocations: 3.003 MB / 4.364 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/8.794, allocations: 238 kB / 4.364 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003764/8.794, allocations: 104.2 kB / 4.364 GB, free: 106.1 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.0007884/8.795, allocations: 185.6 kB / 4.364 GB, free: 106 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002128/8.797, allocations: 0.6552 MB / 4.365 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008937/8.806, allocations: 6.682 MB / 4.371 GB, free: 105.4 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.736e-05/8.806, allocations: 62.23 kB / 4.371 GB, free: 105.4 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/8.806, allocations: 0 / 4.371 GB, free: 105.4 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006382/8.813, allocations: 5.482 MB / 4.377 GB, free: 104.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/8.827, allocations: 9.27 MB / 4.386 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/8.827, allocations: 3.625 kB / 4.386 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001679/8.829, allocations: 327.8 kB / 4.386 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000922/8.83, allocations: 338.9 kB / 4.386 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002913/8.83, allocations: 49.34 kB / 4.386 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001482/8.832, allocations: 2.721 MB / 4.389 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/8.832, allocations: 3.594 kB / 4.389 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01075/8.842, allocations: 7.141 MB / 4.396 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01243/8.855, allocations: 9.682 MB / 4.406 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001684/8.857, allocations: 0.6909 MB / 4.406 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006889/8.857, allocations: 20.31 kB / 4.406 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/8.859, allocations: 164.9 kB / 4.406 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/8.859, allocations: 131.2 kB / 4.407 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/8.86, allocations: 67.34 kB / 4.407 GB, free: 100 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001698/8.861, allocations: 1.11 MB / 4.408 GB, free: 99.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01369/8.875, allocations: 3.215 MB / 4.411 GB, free: 99.8 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.01265/8.888, allocations: 3.062 MB / 4.414 GB, free: 99.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008797/8.897, allocations: 5.573 MB / 4.419 GB, free: 99.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/8.897, allocations: 4.656 kB / 4.419 GB, free: 99.29 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003654/8.9, allocations: 2.865 MB / 4.422 GB, free: 99.25 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/8.905, allocations: 0.736 MB / 4.423 GB, free: 99.23 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/8.915, allocations: 5.937 MB / 4.429 GB, free: 98.26 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002822/8.918, allocations: 2.341 MB / 4.431 GB, free: 97.49 MB / 0.5886 GB Notification: Performance of SimCode: time 6.71e-07/8.918, allocations: 2.156 kB / 4.431 GB, free: 97.49 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)