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.001169/0.001169, allocations: 107.1 kB / 17.06 MB, free: 6.125 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.001507/0.001507, allocations: 199 kB / 18 MB, free: 5.199 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.456/1.456, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001873/0.001873, allocations: 43.94 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1214, allocations: 46.61 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.2338/0.3552, allocations: 4.825 MB / 379.3 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003555/0.3588, allocations: 1.4 MB / 380.7 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007024/0.3596, allocations: 10.66 kB / 380.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007305/0.3604, allocations: 156.7 kB / 380.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009997/0.3614, allocations: 334.6 kB / 381.2 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007421/0.3622, allocations: 218.6 kB / 381.4 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.3636, allocations: 1.035 MB / 382.4 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006431/0.3643, allocations: 301.8 kB / 382.7 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007559/0.3651, allocations: 409.5 kB / 383.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006023/0.3657, allocations: 446.5 kB / 383.6 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.3658, allocations: 87.44 kB / 383.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.366, allocations: 90.44 kB / 383.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.3662, allocations: 195.3 kB / 383.9 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004616/0.3667, allocations: 477.9 kB / 384.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.368, allocations: 1.073 MB / 385.5 MB, free: 8.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.368, allocations: 4 kB / 385.5 MB, free: 8.109 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.368, allocations: 1.031 kB / 385.5 MB, free: 8.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.368, allocations: 0 / 385.5 MB, free: 8.109 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.002498/0.3705, allocations: 1.22 MB / 386.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.3706, allocations: 9.406 kB / 386.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002062/0.3708, allocations: 99.94 kB / 386.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.3719, allocations: 0.5125 MB / 387.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.372, allocations: 100.4 kB / 387.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.3722, allocations: 52.7 kB / 387.5 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.3738, allocations: 0.7938 MB / 388.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.3738, allocations: 3.312 kB / 388.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.491e-05/0.3739, allocations: 27.97 kB / 388.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.3739, allocations: 12.09 kB / 388.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.3753, allocations: 0.501 MB / 388.8 MB, free: 6.031 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.003802/0.3791, allocations: 2.149 MB / 391 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.3806, allocations: 0.5368 MB / 391.5 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006255/0.3812, allocations: 259.9 kB / 391.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.325e-05/0.3813, allocations: 13.86 kB / 391.8 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008181/0.3821, allocations: 318.4 kB / 392.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 3.887e-06/0.3821, allocations: 1.406 kB / 392.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005448/0.3876, allocations: 1.496 MB / 393.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002386/0.3878, allocations: 0.8216 MB / 394.4 MB, free: 2.621 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000995/0.3888, allocations: 0.5965 MB / 395 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.3889, allocations: 40.02 kB / 395 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.3892, allocations: 329.9 kB / 395.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.3895, allocations: 190.2 kB / 395.5 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002392/0.3897, allocations: 132.4 kB / 395.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3899, allocations: 380.5 kB / 396 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005813/0.3904, allocations: 210.8 kB / 396.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008463/0.3913, allocations: 0.5173 MB / 396.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.3925, allocations: 0.5703 MB / 397.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3925, allocations: 1.688 kB / 397.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002651/0.3952, allocations: 0.8965 MB / 398.2 MB, free: 268 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.557e-05/0.3953, allocations: 64.38 kB / 398.3 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3953, allocations: 1.875 kB / 398.3 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008007/0.3961, allocations: 228.5 kB / 398.5 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006179/0.3967, allocations: 109.8 kB / 398.6 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006961/0.4037, allocations: 4.585 MB / 403.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.4051, allocations: 86.28 kB / 403.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.57e-05/0.4052, allocations: 21.11 kB / 403.3 MB, free: 12.39 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.0004955/0.4057, allocations: 216.9 kB / 403.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.4059, allocations: 80.94 kB / 403.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000159/0.406, allocations: 78.42 kB / 403.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.406, allocations: 9.062 kB / 403.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.4061, allocations: 0 / 403.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002323/0.4084, allocations: 1.05 MB / 404.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.4117, allocations: 1.539 MB / 406.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4117, allocations: 0 / 406.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006325/0.4123, allocations: 110.2 kB / 406.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006137/0.4129, allocations: 172.7 kB / 406.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.413, allocations: 19.47 kB / 406.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00591/0.4189, allocations: 3.926 MB / 410.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.419, allocations: 1.281 kB / 410.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/0.422, allocations: 1.015 MB / 411.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004675/0.4225, allocations: 221.5 kB / 411.7 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.669e-05/0.4226, allocations: 18.81 kB / 411.7 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006129/0.4232, allocations: 42.2 kB / 411.8 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.4234, allocations: 50.34 kB / 411.8 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.332e-05/0.4235, allocations: 18.3 kB / 411.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006347/0.4241, allocations: 417 kB / 412.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.4241, allocations: 0 / 412.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001222/0.4254, allocations: 252.8 kB / 412.5 MB, free: 5.355 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.0002361/0.4256, allocations: 136.1 kB / 412.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002528/0.4281, allocations: 1.024 MB / 413.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.4282, allocations: 2.781 kB / 413.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.4292, allocations: 0.55 MB / 414.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.4303, allocations: 211.8 kB / 414.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.4335, allocations: 1.302 MB / 415.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/0.4342, allocations: 0.9179 MB / 416.6 MB, free: 2.449 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005165/0.4347, allocations: 85.2 kB / 416.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.4349, allocations: 58.06 kB / 416.8 MB, free: 2.391 MB / 334.1 MB Notification: Performance of SimCode: time 1.372e-06/0.4349, allocations: 0 / 416.8 MB, free: 2.391 MB / 334.1 MB Notification: Performance of Templates: time 0.0293/0.4642, allocations: 16.8 MB / 433.6 MB, free: 2.246 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)