Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001654/0.001654, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.48/1.48, allocations: 194.3 MB / 208.4 MB, free: 6.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001679/0.001679, allocations: 120.7 kB / 253.5 MB, free: 9.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.261e-05, allocations: 4 kB / 304.9 MB, free: 29.81 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08574/0.08579, allocations: 44.51 MB / 349.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3149/0.4007, allocations: 78.12 MB / 427.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.401, allocations: 74.39 kB / 427.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03325/0.4343, allocations: 13.82 MB / 441.5 MB, free: 5.113 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4343, allocations: 0 / 441.5 MB, free: 5.113 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.4344, allocations: 16 kB / 441.5 MB, free: 5.098 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001177/0.4356, allocations: 0.874 MB / 442.3 MB, free: 4.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.4356, allocations: 12.03 kB / 442.4 MB, free: 4.199 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.4357, allocations: 83.06 kB / 442.4 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.4362, allocations: 461.3 kB / 442.9 MB, free: 3.699 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.4363, allocations: 98.58 kB / 443 MB, free: 3.602 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-05/0.4364, allocations: 49.81 kB / 443 MB, free: 3.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007007/0.4371, allocations: 0.5939 MB / 443.6 MB, free: 3.059 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.4371, allocations: 0 / 443.6 MB, free: 3.059 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.4372, allocations: 21.75 kB / 443.6 MB, free: 3.051 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.4372, allocations: 8 kB / 443.7 MB, free: 3.043 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005873/0.4378, allocations: 386.6 kB / 444 MB, free: 2.793 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.4401, allocations: 1.873 MB / 445.9 MB, free: 1.293 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.4417, allocations: 0.6825 MB / 446.6 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.442, allocations: 230.5 kB / 446.8 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.065e-05/0.4421, allocations: 15.92 kB / 446.8 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.4421, allocations: 42.88 kB / 446.9 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 1.873e-06/0.4421, allocations: 0 / 446.9 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.001633/0.4437, allocations: 0.7024 MB / 447.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002346/0.444, allocations: 0.5644 MB / 448.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005508/0.4446, allocations: 468.2 kB / 448.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.4446, allocations: 41.14 kB / 448.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.4448, allocations: 276.8 kB / 448.9 MB, free: 14.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.4449, allocations: 188.2 kB / 449.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.445, allocations: 12.81 kB / 449.1 MB, free: 14.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4451, allocations: 370 kB / 449.5 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.4454, allocations: 165.4 kB / 449.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.4459, allocations: 367.3 kB / 450 MB, free: 13.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.4462, allocations: 231.3 kB / 450.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4462, allocations: 0 / 450.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001759/0.448, allocations: 0.784 MB / 451 MB, free: 12.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.4481, allocations: 29.7 kB / 451 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.4481, allocations: 7.953 kB / 451 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008638/0.4489, allocations: 220.7 kB / 451.2 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007806/0.4497, allocations: 128.9 kB / 451.4 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005923/0.4557, allocations: 5.024 MB / 456.4 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007272/0.4564, allocations: 85.17 kB / 456.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.793e-05/0.4565, allocations: 18.19 kB / 456.5 MB, free: 7.684 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001863/0.4567, allocations: 144.5 kB / 456.6 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.4568, allocations: 74.34 kB / 456.7 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.4588, allocations: 0.744 MB / 457.5 MB, free: 6.918 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.4589, allocations: 8 kB / 457.5 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.4589, allocations: 3.984 kB / 457.5 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001637/0.4605, allocations: 0.9846 MB / 458.4 MB, free: 5.957 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002662/0.4632, allocations: 1.464 MB / 459.9 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.4632, allocations: 128 / 459.9 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.464, allocations: 139.6 kB / 460 MB, free: 4.664 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006114/0.4646, allocations: 161.9 kB / 460.2 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.4647, allocations: 14.67 kB / 460.2 MB, free: 4.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004151/0.4688, allocations: 3.399 MB / 463.6 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4688, allocations: 96 / 463.6 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.4709, allocations: 0.9948 MB / 464.6 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.4712, allocations: 195.2 kB / 464.8 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.818e-05/0.4713, allocations: 14.25 kB / 464.8 MB, free: 296 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.4717, allocations: 42.28 kB / 464.9 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.4719, allocations: 51.75 kB / 464.9 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.4719, allocations: 15 kB / 464.9 MB, free: 204 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004396/0.4723, allocations: 368.7 kB / 465.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4723, allocations: 0 / 465.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007027/0.4731, allocations: 223 kB / 465.5 MB, free: 15.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002035/0.4733, allocations: 133.4 kB / 465.6 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.4748, allocations: 0.9223 MB / 466.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.4748, allocations: 0 / 466.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008191/0.4756, allocations: 0.5013 MB / 467.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000675/0.4763, allocations: 168.9 kB / 467.2 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.4779, allocations: 0.8788 MB / 468.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.4784, allocations: 0.8919 MB / 469 MB, free: 12.51 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000317/0.4787, allocations: 81.02 kB / 469.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.4788, allocations: 46.31 kB / 469.1 MB, free: 12.39 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4789, allocations: 0 / 469.1 MB, free: 12.39 MB / 330.7 MB Notification: Performance of Templates: time 0.01939/0.4983, allocations: 12.46 MB / 481.6 MB, free: 15.94 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)