Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008597/0.0008597, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005911/0.005911, allocations: 169.6 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004583, allocations: 20 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.314, allocations: 47.58 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005392/0.3195, allocations: 4.45 MB / 331.5 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003568/0.3231, allocations: 1.384 MB / 332.9 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005316/0.3236, allocations: 11.62 kB / 332.9 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004483/0.3241, allocations: 120.3 kB / 333 MB, free: 12.6 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009142/0.325, allocations: 301.9 kB / 333.3 MB, free: 12.36 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.3256, allocations: 189 kB / 333.5 MB, free: 12.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.3268, allocations: 0.9734 MB / 334.4 MB, free: 11.62 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004526/0.3273, allocations: 263.4 kB / 334.7 MB, free: 11.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006319/0.3279, allocations: 359.9 kB / 335.1 MB, free: 11.27 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005257/0.3285, allocations: 418.9 kB / 335.5 MB, free: 10.88 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.3286, allocations: 56 kB / 335.5 MB, free: 10.83 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.3287, allocations: 60 kB / 335.6 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.3289, allocations: 163.3 kB / 335.7 MB, free: 10.61 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004677/0.3294, allocations: 471.5 kB / 336.2 MB, free: 10.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009434/0.3303, allocations: 1.012 MB / 337.2 MB, free: 9.125 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.3303, allocations: 4 kB / 337.2 MB, free: 9.121 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3303, allocations: 0 / 337.2 MB, free: 9.121 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.3303, allocations: 0 / 337.2 MB, free: 9.121 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002223/0.3326, allocations: 1.08 MB / 338.3 MB, free: 7.977 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3326, allocations: 12.03 kB / 338.3 MB, free: 7.965 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.3328, allocations: 95.91 kB / 338.4 MB, free: 7.871 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007418/0.3336, allocations: 0.5081 MB / 338.9 MB, free: 7.32 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.3338, allocations: 97.28 kB / 339 MB, free: 7.211 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.756e-05/0.3339, allocations: 56.38 kB / 339.1 MB, free: 7.156 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.3353, allocations: 0.8239 MB / 339.9 MB, free: 6.227 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.3353, allocations: 0 / 339.9 MB, free: 6.227 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.426e-05/0.3354, allocations: 28 kB / 339.9 MB, free: 6.199 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.3354, allocations: 12 kB / 339.9 MB, free: 6.188 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.3366, allocations: 0.5309 MB / 340.4 MB, free: 5.66 MB / 270.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003394/0.34, allocations: 2.165 MB / 342.6 MB, free: 3.355 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.3414, allocations: 0.5696 MB / 343.2 MB, free: 2.773 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006401/0.3421, allocations: 274.4 kB / 343.5 MB, free: 2.504 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.863e-05/0.3421, allocations: 16.55 kB / 343.5 MB, free: 2.488 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008112/0.3429, allocations: 339 kB / 343.8 MB, free: 2.145 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 1.713e-06/0.343, allocations: 0 / 343.8 MB, free: 2.145 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005174/0.3481, allocations: 1.606 MB / 345.4 MB, free: 500 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000438/0.3486, allocations: 0.8272 MB / 346.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007266/0.3493, allocations: 0.59 MB / 346.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.284e-05/0.3494, allocations: 41.7 kB / 346.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/0.3497, allocations: 333.2 kB / 347.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.3499, allocations: 193.2 kB / 347.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.278e-05/0.35, allocations: 49.69 kB / 347.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3501, allocations: 378.8 kB / 347.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/0.3507, allocations: 229 kB / 348 MB, free: 13.64 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008632/0.3516, allocations: 0.5364 MB / 348.6 MB, free: 12.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.3528, allocations: 0.5927 MB / 349.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3529, allocations: 0 / 349.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002271/0.3551, allocations: 0.9597 MB / 350.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.319e-05/0.3552, allocations: 59.41 kB / 350.2 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.3552, allocations: 0 / 350.2 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007611/0.356, allocations: 237.5 kB / 350.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006052/0.3566, allocations: 123.8 kB / 350.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006218/0.3628, allocations: 4.26 MB / 354.8 MB, free: 6.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.3639, allocations: 91.48 kB / 354.9 MB, free: 6.309 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.284e-05/0.3639, allocations: 23.98 kB / 354.9 MB, free: 6.285 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004746/0.3644, allocations: 217.8 kB / 355.1 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.3646, allocations: 75.16 kB / 355.2 MB, free: 5.988 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.3647, allocations: 78.86 kB / 355.3 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3647, allocations: 4 kB / 355.3 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.3647, allocations: 4 kB / 355.3 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002189/0.3669, allocations: 1.109 MB / 356.4 MB, free: 4.688 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.3697, allocations: 1.572 MB / 357.9 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3697, allocations: 0 / 357.9 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006434/0.3703, allocations: 115.9 kB / 358.1 MB, free: 2.926 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000528/0.3709, allocations: 181.6 kB / 358.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.3709, allocations: 11.98 kB / 358.2 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004998/0.3759, allocations: 3.662 MB / 361.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.376, allocations: 0 / 361.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002404/0.3784, allocations: 1.074 MB / 363 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.3787, allocations: 223.9 kB / 363.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.871e-05/0.3788, allocations: 12.19 kB / 363.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006037/0.3794, allocations: 64.02 kB / 363.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.3796, allocations: 52.42 kB / 363.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.3796, allocations: 19.98 kB / 363.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005272/0.3801, allocations: 415.1 kB / 363.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3802, allocations: 0 / 363.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008695/0.381, allocations: 255.7 kB / 364 MB, free: 12.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001863/0.3812, allocations: 119.2 kB / 364.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002136/0.3834, allocations: 1.039 MB / 365.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.3834, allocations: 0 / 365.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009814/0.3844, allocations: 0.5595 MB / 365.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009578/0.3853, allocations: 199.2 kB / 365.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.3882, allocations: 1.622 MB / 367.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006469/0.3889, allocations: 0.916 MB / 368.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004492/0.3894, allocations: 85.22 kB / 368.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.3895, allocations: 51.44 kB / 368.6 MB, free: 7.953 MB / 302.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3896, allocations: 0 / 368.6 MB, free: 7.953 MB / 302.1 MB Notification: Performance of Templates: time 0.02899/0.4185, allocations: 14.91 MB / 383.5 MB, free: 9.008 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)