Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.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) 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(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",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.001079/0.001079, allocations: 190.5 kB / 8.537 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.119/1.119, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008422/0.0008422, allocations: 88.55 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08807/0.08893, allocations: 56.9 MB / 343.2 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07912/0.1681, allocations: 51.47 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.873/4.041, allocations: 2.798 GB / 3.183 GB, free: 105.9 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/4.042, allocations: 76.86 kB / 3.184 GB, free: 105.9 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 1.865/5.906, allocations: 0.7118 GB / 3.895 GB, free: 28.7 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.951e-05/5.906, allocations: 7.156 kB / 3.895 GB, free: 28.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003798/5.91, allocations: 0.6033 MB / 3.896 GB, free: 28.62 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/5.912, allocations: 0.991 MB / 3.897 GB, free: 28.3 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/5.912, allocations: 142.1 kB / 3.897 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/5.912, allocations: 68.31 kB / 3.897 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001941/5.914, allocations: 1.425 MB / 3.898 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001989/5.916, allocations: 1.647 MB / 3.9 GB, free: 27.84 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.091e-05/5.916, allocations: 1.406 kB / 3.9 GB, free: 27.84 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/5.916, allocations: 14.09 kB / 3.9 GB, free: 27.83 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.334e-05/5.916, allocations: 84.44 kB / 3.9 GB, free: 27.83 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.374/6.29, allocations: 148.8 MB / 4.046 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/6.291, allocations: 0.7499 MB / 4.046 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006684/6.292, allocations: 0.5924 MB / 4.047 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1091/6.401, allocations: 72.08 MB / 4.117 GB, free: 64.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/6.402, allocations: 0.7383 MB / 4.118 GB, free: 64.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 2.525e-06/6.402, allocations: 4 kB / 4.118 GB, free: 64.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=107): time 0.01533/6.418, allocations: 5.466 MB / 4.123 GB, free: 64.15 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/6.418, allocations: 195 kB / 4.123 GB, free: 63.93 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008302/6.419, allocations: 0.7325 MB / 4.124 GB, free: 63.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.744e-05/6.419, allocations: 33.2 kB / 4.124 GB, free: 63.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/6.419, allocations: 0.5108 MB / 4.125 GB, free: 63.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002311/6.419, allocations: 358.3 kB / 4.125 GB, free: 63.32 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-05/6.419, allocations: 0 / 4.125 GB, free: 63.32 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.861e-05/6.419, allocations: 362.5 kB / 4.125 GB, free: 63.01 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008532/6.42, allocations: 0.6441 MB / 4.126 GB, free: 63.01 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009869/6.421, allocations: 1.044 MB / 4.127 GB, free: 62.55 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004077/6.425, allocations: 1.363 MB / 4.128 GB, free: 62.51 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/6.425, allocations: 3.25 kB / 4.128 GB, free: 62.51 MB / 0.5261 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007471/6.433, allocations: 3.158 MB / 4.131 GB, free: 62.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005041/6.433, allocations: 4.355 MB / 4.136 GB, free: 57.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/6.433, allocations: 9.531 kB / 4.136 GB, free: 57.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/6.435, allocations: 0.7078 MB / 4.136 GB, free: 57.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/6.436, allocations: 291.7 kB / 4.137 GB, free: 57.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004767/6.441, allocations: 5.82 MB / 4.142 GB, free: 53.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/6.442, allocations: 105.1 kB / 4.142 GB, free: 53.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/6.442, allocations: 71.8 kB / 4.143 GB, free: 53.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.859e-06/6.442, allocations: 3.969 kB / 4.143 GB, free: 53.24 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006064/6.448, allocations: 2.505 MB / 4.145 GB, free: 53.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/6.448, allocations: 11.25 kB / 4.145 GB, free: 53.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/6.45, allocations: 0.6272 MB / 4.146 GB, free: 53.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/6.451, allocations: 293 kB / 4.146 GB, free: 53.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003876/6.455, allocations: 5.061 MB / 4.151 GB, free: 49.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/6.456, allocations: 98.91 kB / 4.151 GB, free: 49.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/6.456, allocations: 75.45 kB / 4.151 GB, free: 49.17 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 1,1 6,2 7,1 1,2 3,1 2,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002737/6.456, allocations: 158.4 kB / 4.151 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009591/6.457, allocations: 406.4 kB / 4.152 GB, free: 48.99 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006467/6.464, allocations: 4.651 MB / 4.156 GB, free: 48.67 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/6.464, allocations: 43.45 kB / 4.156 GB, free: 48.67 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/6.464, allocations: 1.5 kB / 4.156 GB, free: 48.67 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/6.464, allocations: 10.8 kB / 4.156 GB, free: 48.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007595/6.471, allocations: 6.325 MB / 4.162 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/6.471, allocations: 5.016 kB / 4.162 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007025/6.472, allocations: 154 kB / 4.162 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001772/6.474, allocations: 1.065 MB / 4.164 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/6.474, allocations: 25.62 kB / 4.164 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00442/6.478, allocations: 4.885 MB / 4.168 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/6.478, allocations: 0 / 4.168 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008047/6.486, allocations: 5.445 MB / 4.174 GB, free: 44.54 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008962/6.495, allocations: 7.37 MB / 4.181 GB, free: 43.75 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005964/6.496, allocations: 407.9 kB / 4.181 GB, free: 43.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/6.496, allocations: 1.812 kB / 4.181 GB, free: 43.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009712/6.497, allocations: 89.62 kB / 4.181 GB, free: 43.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/6.497, allocations: 110.2 kB / 4.181 GB, free: 43.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/6.497, allocations: 44.88 kB / 4.181 GB, free: 43.55 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0006305/6.498, allocations: 0.527 MB / 4.182 GB, free: 43.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007901/6.506, allocations: 2.415 MB / 4.184 GB, free: 43.37 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 32 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 9,1 1,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006709/6.513, allocations: 2.575 MB / 4.187 GB, free: 42.99 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005643/6.518, allocations: 3.647 MB / 4.19 GB, free: 42.72 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/6.518, allocations: 2.188 kB / 4.19 GB, free: 42.72 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00223/6.521, allocations: 1.853 MB / 4.192 GB, free: 42.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/6.523, allocations: 443.2 kB / 4.193 GB, free: 42.68 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005607/6.528, allocations: 3.416 MB / 4.196 GB, free: 42 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/6.529, allocations: 1.574 MB / 4.197 GB, free: 41.25 MB / 0.5261 GB Notification: Performance of SimCode: time 6.61e-07/6.529, allocations: 0 / 4.197 GB, free: 41.25 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1)