Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.001533/0.001533, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001176/0.001176, allocations: 196.9 kB / 16.14 MB, free: 6.734 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.518/1.518, allocations: 205.1 MB / 222 MB, free: 4.984 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.001352/0.001352, allocations: 47.91 kB / 278 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3122, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.008303/0.3206, allocations: 4.848 MB / 329.5 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003881/0.3245, allocations: 1.394 MB / 330.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009875/0.3256, allocations: 7.875 kB / 330.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006003/0.3262, allocations: 124 kB / 331 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00111/0.3273, allocations: 301.4 kB / 331.3 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005857/0.3279, allocations: 181.2 kB / 331.5 MB, free: 12.33 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.3291, allocations: 0.9822 MB / 332.5 MB, free: 11.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004148/0.3295, allocations: 254.8 kB / 332.8 MB, free: 11.59 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006048/0.3301, allocations: 387.3 kB / 333.1 MB, free: 11.38 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000487/0.3306, allocations: 425.8 kB / 333.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.3308, allocations: 62.56 kB / 333.6 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.3309, allocations: 63.56 kB / 333.7 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.3311, allocations: 174.9 kB / 333.8 MB, free: 10.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004513/0.3316, allocations: 448.7 kB / 334.3 MB, free: 10.54 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009116/0.3325, allocations: 1.043 MB / 335.3 MB, free: 9.488 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3325, allocations: 0 / 335.3 MB, free: 9.488 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3325, allocations: 0 / 335.3 MB, free: 9.488 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.3326, allocations: 0 / 335.3 MB, free: 9.488 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.002472/0.335, allocations: 1.224 MB / 336.5 MB, free: 8.199 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.3351, allocations: 8.031 kB / 336.6 MB, free: 8.191 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.3353, allocations: 95.91 kB / 336.6 MB, free: 8.098 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007986/0.3361, allocations: 0.5081 MB / 337.2 MB, free: 7.547 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.3363, allocations: 105.2 kB / 337.3 MB, free: 7.43 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-05/0.3364, allocations: 56.36 kB / 337.3 MB, free: 7.375 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.3378, allocations: 0.7966 MB / 338.1 MB, free: 6.473 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.3378, allocations: 4 kB / 338.1 MB, free: 6.469 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-05/0.3379, allocations: 28 kB / 338.1 MB, free: 6.441 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.3379, allocations: 12 kB / 338.2 MB, free: 6.43 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.3392, allocations: 0.5035 MB / 338.7 MB, free: 5.93 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.004115/0.3433, allocations: 2.158 MB / 340.8 MB, free: 3.633 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.3447, allocations: 0.5298 MB / 341.3 MB, free: 3.094 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006222/0.3454, allocations: 262.4 kB / 341.6 MB, free: 2.836 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.455e-05/0.3454, allocations: 25.58 kB / 341.6 MB, free: 2.812 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.3465, allocations: 319 kB / 341.9 MB, free: 2.488 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 5.3e-06/0.3465, allocations: 0 / 341.9 MB, free: 2.488 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005275/0.3518, allocations: 1.477 MB / 343.4 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006486/0.3525, allocations: 0.8272 MB / 344.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.3535, allocations: 0.5939 MB / 344.8 MB, free: 15.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.3537, allocations: 41.7 kB / 344.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.354, allocations: 336.8 kB / 345.2 MB, free: 14.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.3543, allocations: 185.2 kB / 345.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.3545, allocations: 130.2 kB / 345.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003129/0.3548, allocations: 378.8 kB / 345.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006336/0.3555, allocations: 213 kB / 346.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009247/0.3564, allocations: 0.5169 MB / 346.6 MB, free: 13.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.3577, allocations: 0.5692 MB / 347.2 MB, free: 12.8 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3577, allocations: 0 / 347.2 MB, free: 12.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00256/0.3603, allocations: 0.9013 MB / 348.1 MB, free: 11.87 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.297e-05/0.3604, allocations: 63.41 kB / 348.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.3604, allocations: 0 / 348.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008548/0.3613, allocations: 221.5 kB / 348.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006464/0.362, allocations: 119.8 kB / 348.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00662/0.3686, allocations: 4.193 MB / 352.7 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009891/0.3696, allocations: 91.39 kB / 352.8 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.435e-05/0.3697, allocations: 23.98 kB / 352.8 MB, free: 6.879 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.0004805/0.3702, allocations: 213.8 kB / 353 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.3703, allocations: 75.16 kB / 353.1 MB, free: 6.586 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.3705, allocations: 78.86 kB / 353.1 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3705, allocations: 4 kB / 353.1 MB, free: 6.504 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.3705, allocations: 0 / 353.1 MB, free: 6.504 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002351/0.3728, allocations: 1.058 MB / 354.2 MB, free: 5.34 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.3761, allocations: 1.533 MB / 355.7 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3762, allocations: 0 / 355.7 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006019/0.3768, allocations: 107.9 kB / 355.8 MB, free: 3.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006025/0.3774, allocations: 173.5 kB / 356 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/0.3774, allocations: 12 kB / 356 MB, free: 3.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005047/0.3825, allocations: 3.599 MB / 359.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3825, allocations: 192 / 359.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/0.3849, allocations: 1.027 MB / 360.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004524/0.3854, allocations: 216 kB / 360.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.3856, allocations: 20 kB / 360.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006747/0.3863, allocations: 47.86 kB / 360.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.3864, allocations: 48.48 kB / 361 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.223e-05/0.3865, allocations: 19.98 kB / 361 MB, free: 14.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006537/0.3871, allocations: 419.1 kB / 361.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3872, allocations: 0 / 361.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001006/0.3882, allocations: 251.8 kB / 361.6 MB, free: 13.5 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.0002352/0.3884, allocations: 127.1 kB / 361.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002467/0.3909, allocations: 0.9993 MB / 362.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/0.3909, allocations: 4.5 kB / 362.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.392, allocations: 0.5394 MB / 363.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.3931, allocations: 203.3 kB / 363.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.3962, allocations: 1.553 MB / 365.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006347/0.3968, allocations: 0.9082 MB / 366 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004696/0.3973, allocations: 89.2 kB / 366.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.3975, allocations: 59.42 kB / 366.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3975, allocations: 3.938 kB / 366.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of Templates: time 0.02777/0.4253, allocations: 15.03 MB / 381.1 MB, free: 9.844 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)