Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001144/0.001144, allocations: 203.2 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009087/0.0009088, allocations: 93.78 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1771/0.1771, allocations: 45.15 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1973/0.3744, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08999/0.4644, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.224/4.688, allocations: 2.833 GB / 3.337 GB, free: 73.31 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/4.688, allocations: 79.95 kB / 3.337 GB, free: 73.23 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.544/7.233, allocations: 0.8744 GB / 4.211 GB, free: 23.91 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/7.233, allocations: 8 kB / 4.211 GB, free: 23.9 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006854/7.24, allocations: 0.8827 MB / 4.212 GB, free: 23.01 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005096/7.245, allocations: 2.11 MB / 4.214 GB, free: 20.89 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/7.245, allocations: 95.97 kB / 4.214 GB, free: 20.8 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003267/7.245, allocations: 112 kB / 4.214 GB, free: 20.69 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004071/7.249, allocations: 2.624 MB / 4.217 GB, free: 18.06 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003964/7.253, allocations: 2.874 MB / 4.219 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.174e-05/7.253, allocations: 4 kB / 4.219 GB, free: 14.97 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/7.253, allocations: 7.938 kB / 4.219 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/7.254, allocations: 175.6 kB / 4.22 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3707/7.624, allocations: 105.8 MB / 4.323 GB, free: 43.07 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/7.626, allocations: 1.139 MB / 4.324 GB, free: 43.05 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/7.627, allocations: 1.021 MB / 4.325 GB, free: 43.04 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03236/7.66, allocations: 19.33 MB / 4.344 GB, free: 45.99 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001845/7.661, allocations: 1.205 MB / 4.345 GB, free: 45.86 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=147): time 3.025e-06/7.661, allocations: 4 kB / 4.345 GB, free: 45.85 MB / 0.5886 GB Notification: Performance of matching and sorting (n=163): time 0.02113/7.683, allocations: 8.39 MB / 4.353 GB, free: 44.4 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001652/7.683, allocations: 386.3 kB / 4.354 GB, free: 43.96 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/7.684, allocations: 1.157 MB / 4.355 GB, free: 43.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001538/7.684, allocations: 27.89 kB / 4.355 GB, free: 43.77 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005569/7.685, allocations: 0.7663 MB / 4.356 GB, free: 43.42 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004382/7.685, allocations: 0.5514 MB / 4.356 GB, free: 43.14 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/7.686, allocations: 0 / 4.356 GB, free: 43.14 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001718/7.686, allocations: 384.5 kB / 4.357 GB, free: 42.84 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/7.687, allocations: 1.16 MB / 4.358 GB, free: 42.83 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/7.689, allocations: 1.608 MB / 4.359 GB, free: 42.33 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007223/7.696, allocations: 2.328 MB / 4.362 GB, free: 42.27 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-05/7.696, allocations: 9.938 kB / 4.362 GB, free: 42.27 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0131/7.709, allocations: 5.345 MB / 4.367 GB, free: 42.07 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001673/7.711, allocations: 4.693 MB / 4.371 GB, free: 37.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/7.711, allocations: 15.5 kB / 4.371 GB, free: 37.23 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007545/7.719, allocations: 2.145 MB / 4.373 GB, free: 37.17 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/7.72, allocations: 315.8 kB / 4.374 GB, free: 37.16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006805/7.727, allocations: 4.312 MB / 4.378 GB, free: 36.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/7.729, allocations: 264.1 kB / 4.378 GB, free: 36.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002263/7.729, allocations: 108.5 kB / 4.378 GB, free: 36.55 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/7.729, allocations: 2.781 kB / 4.378 GB, free: 36.55 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009097/7.738, allocations: 4.118 MB / 4.382 GB, free: 36.47 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-05/7.738, allocations: 17.36 kB / 4.382 GB, free: 36.47 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005714/7.744, allocations: 1.607 MB / 4.384 GB, free: 36.42 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/7.745, allocations: 360.9 kB / 4.384 GB, free: 36.42 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/7.749, allocations: 3.006 MB / 4.387 GB, free: 35.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/7.751, allocations: 239.2 kB / 4.387 GB, free: 35.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002165/7.751, allocations: 102.1 kB / 4.388 GB, free: 35.82 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.0005343/7.752, allocations: 189.8 kB / 4.388 GB, free: 35.68 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00172/7.754, allocations: 0.6493 MB / 4.388 GB, free: 35.59 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008275/7.762, allocations: 6.689 MB / 4.395 GB, free: 35.06 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.803e-05/7.762, allocations: 62.34 kB / 4.395 GB, free: 35.05 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/7.762, allocations: 0 / 4.395 GB, free: 35.05 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005916/7.768, allocations: 5.484 MB / 4.4 GB, free: 34.4 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01095/7.779, allocations: 9.262 MB / 4.409 GB, free: 33.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/7.779, allocations: 3.969 kB / 4.409 GB, free: 33.58 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/7.78, allocations: 335.8 kB / 4.41 GB, free: 33.57 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009033/7.781, allocations: 333 kB / 4.41 GB, free: 33.53 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001604/7.781, allocations: 52.27 kB / 4.41 GB, free: 33.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/7.783, allocations: 2.718 MB / 4.413 GB, free: 31.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/7.783, allocations: 0 / 4.413 GB, free: 31.43 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009606/7.793, allocations: 7.152 MB / 4.42 GB, free: 30.86 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01135/7.804, allocations: 9.689 MB / 4.429 GB, free: 29.89 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/7.806, allocations: 0.693 MB / 4.43 GB, free: 29.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004137/7.806, allocations: 20.84 kB / 4.43 GB, free: 29.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/7.808, allocations: 160 kB / 4.43 GB, free: 29.64 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/7.808, allocations: 131.8 kB / 4.43 GB, free: 29.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/7.808, allocations: 71.83 kB / 4.43 GB, free: 29.64 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001382/7.809, allocations: 1.107 MB / 4.431 GB, free: 29.53 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009934/7.819, allocations: 3.248 MB / 4.434 GB, free: 29.52 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.00885/7.828, allocations: 3.084 MB / 4.437 GB, free: 29.08 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006976/7.835, allocations: 5.578 MB / 4.443 GB, free: 28.86 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/7.835, allocations: 0 / 4.443 GB, free: 28.86 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002869/7.838, allocations: 2.874 MB / 4.446 GB, free: 28.81 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/7.842, allocations: 0.7338 MB / 4.446 GB, free: 28.77 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009034/7.851, allocations: 5.938 MB / 4.452 GB, free: 27.53 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002183/7.853, allocations: 2.332 MB / 4.454 GB, free: 25.84 MB / 0.5886 GB Notification: Performance of SimCode: time 5.62e-07/7.853, allocations: 0 / 4.454 GB, free: 25.84 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)