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.001089/0.001089, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001163/0.001163, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.536/1.536, allocations: 205.1 MB / 222 MB, free: 4.746 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.001262/0.001262, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2769, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006639/0.2837, allocations: 4.839 MB / 329.5 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003399/0.2871, allocations: 1.402 MB / 330.9 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004582/0.2876, allocations: 7.219 kB / 330.9 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004542/0.2881, allocations: 121.3 kB / 331 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007759/0.2889, allocations: 305 kB / 331.3 MB, free: 12.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.2894, allocations: 190.1 kB / 331.5 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.2906, allocations: 0.9734 MB / 332.5 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004757/0.2911, allocations: 263.1 kB / 332.8 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005921/0.2917, allocations: 379.8 kB / 333.1 MB, free: 11.49 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004978/0.2922, allocations: 425.3 kB / 333.5 MB, free: 11.2 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001316/0.2923, allocations: 64.84 kB / 333.6 MB, free: 11.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.2925, allocations: 64 kB / 333.7 MB, free: 11.11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.2926, allocations: 175.3 kB / 333.8 MB, free: 10.94 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004459/0.2931, allocations: 449.8 kB / 334.3 MB, free: 10.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009245/0.294, allocations: 1.039 MB / 335.3 MB, free: 9.457 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.294, allocations: 0 / 335.3 MB, free: 9.457 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2941, allocations: 0 / 335.3 MB, free: 9.457 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.2941, allocations: 0 / 335.3 MB, free: 9.457 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.0024/0.2965, allocations: 1.22 MB / 336.5 MB, free: 8.172 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.2965, allocations: 12.02 kB / 336.6 MB, free: 8.16 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.2967, allocations: 95.91 kB / 336.6 MB, free: 8.066 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007372/0.2975, allocations: 0.5081 MB / 337.2 MB, free: 7.516 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.2976, allocations: 97.28 kB / 337.3 MB, free: 7.406 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.685e-05/0.2977, allocations: 60.3 kB / 337.3 MB, free: 7.348 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.2991, allocations: 0.8044 MB / 338.1 MB, free: 6.438 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.2992, allocations: 7.938 kB / 338.1 MB, free: 6.43 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.889e-05/0.2992, allocations: 24 kB / 338.1 MB, free: 6.406 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.2993, allocations: 12 kB / 338.2 MB, free: 6.395 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.3004, allocations: 0.4997 MB / 338.7 MB, free: 5.898 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.003329/0.3038, allocations: 2.158 MB / 340.8 MB, free: 3.602 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.3051, allocations: 0.5305 MB / 341.3 MB, free: 3.062 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005784/0.3056, allocations: 262.4 kB / 341.6 MB, free: 2.805 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.829e-05/0.3057, allocations: 21 kB / 341.6 MB, free: 2.785 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009483/0.3067, allocations: 323 kB / 341.9 MB, free: 2.457 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 3.296e-06/0.3067, allocations: 0 / 341.9 MB, free: 2.457 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005449/0.3121, allocations: 1.481 MB / 343.4 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007129/0.3129, allocations: 0.8272 MB / 344.2 MB, free: 15.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008675/0.3138, allocations: 0.59 MB / 344.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.62e-05/0.3138, allocations: 41.7 kB / 344.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003858/0.3142, allocations: 336.7 kB / 345.2 MB, free: 14.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.3145, allocations: 189.2 kB / 345.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002329/0.3147, allocations: 130.2 kB / 345.5 MB, free: 14.6 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.315, allocations: 378.8 kB / 345.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006039/0.3156, allocations: 213 kB / 346.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008848/0.3165, allocations: 0.5169 MB / 346.6 MB, free: 13.38 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.3177, allocations: 0.5653 MB / 347.2 MB, free: 12.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3177, allocations: 0 / 347.2 MB, free: 12.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002419/0.3201, allocations: 0.8974 MB / 348.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/0.3202, allocations: 63.39 kB / 348.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3202, allocations: 4 kB / 348.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00073/0.3209, allocations: 221.5 kB / 348.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.3216, allocations: 119.8 kB / 348.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006521/0.3281, allocations: 4.19 MB / 352.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009979/0.3291, allocations: 87.33 kB / 352.7 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.908e-05/0.3292, allocations: 24 kB / 352.8 MB, free: 6.855 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.0004301/0.3296, allocations: 217.7 kB / 353 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3298, allocations: 75.34 kB / 353.1 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001401/0.3299, allocations: 78.86 kB / 353.1 MB, free: 6.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3299, allocations: 7.938 kB / 353.1 MB, free: 6.473 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.3299, allocations: 0 / 353.1 MB, free: 6.473 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002137/0.3321, allocations: 1.062 MB / 354.2 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.3349, allocations: 1.533 MB / 355.7 MB, free: 3.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3349, allocations: 0 / 355.7 MB, free: 3.695 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005848/0.3355, allocations: 107.9 kB / 355.8 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005384/0.3361, allocations: 173.5 kB / 356 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.792e-05/0.3361, allocations: 12 kB / 356 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005138/0.3413, allocations: 3.6 MB / 359.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.3413, allocations: 0 / 359.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/0.344, allocations: 1.027 MB / 360.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005554/0.3446, allocations: 212 kB / 360.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.3447, allocations: 20 kB / 360.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006036/0.3453, allocations: 48.05 kB / 360.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.3456, allocations: 52.48 kB / 361 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.866e-05/0.3457, allocations: 19.98 kB / 361 MB, free: 14.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007468/0.3464, allocations: 419.1 kB / 361.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3464, allocations: 0 / 361.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001178/0.3476, allocations: 251.7 kB / 361.6 MB, free: 13.47 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.0002376/0.3479, allocations: 123.2 kB / 361.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.3501, allocations: 1.004 MB / 362.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.3502, allocations: 8.125 kB / 362.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.3512, allocations: 0.5355 MB / 363.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.3523, allocations: 203.1 kB / 363.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.3555, allocations: 1.561 MB / 365.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005767/0.3561, allocations: 0.9121 MB / 366 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004683/0.3566, allocations: 85.22 kB / 366.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.3568, allocations: 55.42 kB / 366.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3568, allocations: 0 / 366.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of Templates: time 0.02691/0.3837, allocations: 15.04 MB / 381.2 MB, free: 9.797 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)