Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001379/0.001379, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001568/0.001568, allocations: 188 kB / 18 MB, free: 5.219 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.504/1.504, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001155/0.001155, allocations: 51.92 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.1004, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.2195/0.32, allocations: 4.818 MB / 379.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00259/0.3226, allocations: 1.405 MB / 380.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.3229, allocations: 6.375 kB / 380.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003724/0.3233, allocations: 153.2 kB / 380.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006081/0.3239, allocations: 343.3 kB / 381.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.3244, allocations: 216.3 kB / 381.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.3254, allocations: 1.029 MB / 382.4 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005329/0.3259, allocations: 302 kB / 382.7 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005662/0.3265, allocations: 402.1 kB / 383.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005098/0.327, allocations: 448.4 kB / 383.6 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.3272, allocations: 87.72 kB / 383.6 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.3273, allocations: 88.88 kB / 383.7 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.3275, allocations: 200.5 kB / 383.9 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000472/0.328, allocations: 475.9 kB / 384.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.3292, allocations: 1.081 MB / 385.5 MB, free: 8.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3293, allocations: 1.594 kB / 385.5 MB, free: 8.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3293, allocations: 0 / 385.5 MB, free: 8.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.114e-05/0.3293, allocations: 0 / 385.5 MB, free: 8.371 MB / 318.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.002365/0.3317, allocations: 1.221 MB / 386.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3317, allocations: 10.09 kB / 386.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.3319, allocations: 100.4 kB / 386.8 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008375/0.3328, allocations: 0.5147 MB / 387.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.3329, allocations: 100.8 kB / 387.4 MB, free: 7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.731e-05/0.333, allocations: 50.25 kB / 387.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.3345, allocations: 0.7961 MB / 388.3 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.3345, allocations: 0 / 388.3 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-05/0.3346, allocations: 28.47 kB / 388.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.3346, allocations: 12.88 kB / 388.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.3359, allocations: 0.4961 MB / 388.8 MB, free: 6.289 MB / 318.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.00338/0.3393, allocations: 2.15 MB / 391 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.3407, allocations: 0.5303 MB / 391.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006317/0.3414, allocations: 267.6 kB / 391.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.969e-05/0.3414, allocations: 16.84 kB / 391.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007946/0.3422, allocations: 317 kB / 392.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.405e-06/0.3422, allocations: 0 / 392.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005465/0.3477, allocations: 1.49 MB / 393.6 MB, free: 3.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003023/0.348, allocations: 0.8273 MB / 394.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.3493, allocations: 0.5942 MB / 395 MB, free: 2.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.3494, allocations: 41.55 kB / 395 MB, free: 2.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003763/0.3498, allocations: 331.4 kB / 395.3 MB, free: 2.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002456/0.35, allocations: 187.7 kB / 395.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002434/0.3503, allocations: 132.5 kB / 395.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.3504, allocations: 379 kB / 396 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005823/0.351, allocations: 213 kB / 396.2 MB, free: 1.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008755/0.3519, allocations: 0.5158 MB / 396.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.3531, allocations: 0.5627 MB / 397.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3532, allocations: 0.5625 kB / 397.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002479/0.3556, allocations: 0.9027 MB / 398.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.208e-05/0.3557, allocations: 60.02 kB / 398.3 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3557, allocations: 3.344 kB / 398.3 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008088/0.3565, allocations: 224.1 kB / 398.5 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006572/0.3572, allocations: 115.8 kB / 398.6 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00728/0.3645, allocations: 4.588 MB / 403.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.3658, allocations: 87.17 kB / 403.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.06e-05/0.3659, allocations: 20.59 kB / 403.3 MB, free: 12.65 MB / 334.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.0004832/0.3664, allocations: 212.9 kB / 403.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.3666, allocations: 85.19 kB / 403.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.3667, allocations: 82 kB / 403.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3667, allocations: 9.438 kB / 403.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.3668, allocations: 1 kB / 403.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002388/0.3691, allocations: 1.045 MB / 404.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002975/0.3721, allocations: 1.546 MB / 406.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3722, allocations: 0 / 406.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006385/0.3728, allocations: 105.6 kB / 406.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000577/0.3734, allocations: 176.3 kB / 406.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.3734, allocations: 12.31 kB / 406.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005292/0.3787, allocations: 3.932 MB / 410.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3788, allocations: 0 / 410.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.3815, allocations: 1.023 MB / 411.5 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000514/0.382, allocations: 217 kB / 411.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.3822, allocations: 19.56 kB / 411.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006425/0.3828, allocations: 41.42 kB / 411.8 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.383, allocations: 54.39 kB / 411.8 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-05/0.383, allocations: 14.66 kB / 411.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006765/0.3837, allocations: 420.8 kB / 412.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3837, allocations: 0 / 412.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001049/0.3848, allocations: 253 kB / 412.5 MB, free: 5.559 MB / 334.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.0001845/0.385, allocations: 129.3 kB / 412.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002277/0.3873, allocations: 1.02 MB / 413.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.3873, allocations: 2.219 kB / 413.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3884, allocations: 0.5498 MB / 414.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009936/0.3894, allocations: 217 kB / 414.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.392, allocations: 1.297 MB / 415.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.3925, allocations: 0.9178 MB / 416.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003992/0.3929, allocations: 81.22 kB / 416.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.3931, allocations: 58.05 kB / 416.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3931, allocations: 7.938 kB / 416.8 MB, free: 2.598 MB / 334.1 MB Notification: Performance of Templates: time 0.02552/0.4186, allocations: 16.29 MB / 433.1 MB, free: 2.902 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)