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.001001/0.001, allocations: 98.83 kB / 15.05 MB, free: 1.105 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.0009263/0.0009266, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 222.1 MB, free: 5.676 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.0005147/0.0005149, allocations: 8 kB / 278.9 MB, free: 12.87 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3131, allocations: 47.59 MB / 326.4 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004454/0.3176, allocations: 3.86 MB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.3206, allocations: 1.361 MB / 331.7 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000432/0.321, allocations: 6.344 kB / 331.7 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003471/0.3214, allocations: 103.5 kB / 331.8 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009329/0.3223, allocations: 358.1 kB / 332.1 MB, free: 12.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005033/0.3229, allocations: 165.9 kB / 332.3 MB, free: 12.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.3239, allocations: 0.6981 MB / 333 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00041/0.3244, allocations: 241.5 kB / 333.2 MB, free: 12.19 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005137/0.3249, allocations: 337.3 kB / 333.5 MB, free: 12.02 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.3254, allocations: 377.7 kB / 333.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.863e-05/0.3255, allocations: 53.78 kB / 334 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.3256, allocations: 55.03 kB / 334 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.3258, allocations: 146.5 kB / 334.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.3261, allocations: 190.4 kB / 334.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000783/0.3269, allocations: 0.745 MB / 335.1 MB, free: 10.83 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.3269, allocations: 0 / 335.1 MB, free: 10.83 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3269, allocations: 0 / 335.1 MB, free: 10.83 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.3269, allocations: 0 / 335.1 MB, free: 10.83 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.001983/0.3289, allocations: 1.076 MB / 336.2 MB, free: 9.691 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.329, allocations: 8.031 kB / 336.2 MB, free: 9.684 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.3291, allocations: 94.97 kB / 336.3 MB, free: 9.59 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006813/0.3298, allocations: 467.4 kB / 336.7 MB, free: 9.09 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.33, allocations: 100.7 kB / 336.8 MB, free: 8.977 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.521e-05/0.3301, allocations: 55.94 kB / 336.9 MB, free: 8.922 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.3315, allocations: 0.8004 MB / 337.7 MB, free: 8.016 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.3315, allocations: 0 / 337.7 MB, free: 8.016 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.476e-05/0.3316, allocations: 28 kB / 337.7 MB, free: 7.988 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3316, allocations: 12 kB / 337.7 MB, free: 7.977 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.3329, allocations: 0.5309 MB / 338.3 MB, free: 7.449 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.003297/0.3362, allocations: 2.107 MB / 340.4 MB, free: 5.203 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.3377, allocations: 0.612 MB / 341 MB, free: 4.582 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.187e-05/0.3378, allocations: 17.62 kB / 341 MB, free: 4.566 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007907/0.3386, allocations: 335 kB / 341.3 MB, free: 4.227 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 3.146e-06/0.3386, allocations: 4 kB / 341.3 MB, free: 4.223 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005125/0.3438, allocations: 1.584 MB / 342.9 MB, free: 2.586 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004161/0.3442, allocations: 0.8194 MB / 343.7 MB, free: 1.57 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006995/0.3449, allocations: 0.5431 MB / 344.3 MB, free: 1.02 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.549e-05/0.345, allocations: 37.7 kB / 344.3 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/0.3453, allocations: 332.8 kB / 344.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.3455, allocations: 189.2 kB / 344.8 MB, free: 472 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.831e-05/0.3455, allocations: 12 kB / 344.8 MB, free: 460 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3457, allocations: 378.8 kB / 345.2 MB, free: 72 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005596/0.3462, allocations: 229 kB / 345.4 MB, free: 15.85 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008097/0.347, allocations: 0.5247 MB / 345.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006531/0.3477, allocations: 321.4 kB / 346.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3477, allocations: 0 / 346.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001825/0.3496, allocations: 0.8663 MB / 347.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.173e-05/0.3496, allocations: 63.44 kB / 347.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3497, allocations: 0 / 347.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007227/0.3504, allocations: 229.5 kB / 347.4 MB, free: 13.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.351, allocations: 123.8 kB / 347.5 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006672/0.3577, allocations: 4.385 MB / 351.9 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007831/0.3585, allocations: 95.39 kB / 352 MB, free: 8.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.3585, allocations: 28 kB / 352 MB, free: 8.785 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 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003682/0.3589, allocations: 201.9 kB / 352.2 MB, free: 8.578 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.359, allocations: 83.14 kB / 352.3 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001333/0.3592, allocations: 74.86 kB / 352.4 MB, free: 8.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3592, allocations: 4 kB / 352.4 MB, free: 8.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3592, allocations: 7.891 kB / 352.4 MB, free: 8.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002206/0.3614, allocations: 1.105 MB / 353.5 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/0.3642, allocations: 1.583 MB / 355.1 MB, free: 5.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3642, allocations: 0 / 355.1 MB, free: 5.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006001/0.3648, allocations: 111.9 kB / 355.2 MB, free: 5.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005353/0.3653, allocations: 181.5 kB / 355.4 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/0.3654, allocations: 12 kB / 355.4 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004977/0.3704, allocations: 3.721 MB / 359.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3704, allocations: 0 / 359.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.3727, allocations: 1.074 MB / 360.2 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.373, allocations: 204.2 kB / 360.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.3731, allocations: 24.06 kB / 360.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005767/0.3737, allocations: 51.86 kB / 360.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.3738, allocations: 52.59 kB / 360.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/0.3739, allocations: 27.7 kB / 360.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004621/0.3744, allocations: 371.1 kB / 360.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3744, allocations: 4 kB / 360.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008339/0.3752, allocations: 251.7 kB / 361.1 MB, free: 15.15 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001755/0.3754, allocations: 115.8 kB / 361.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.3777, allocations: 1.047 MB / 362.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.3777, allocations: 4 kB / 362.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009668/0.3786, allocations: 0.559 MB / 362.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007611/0.3794, allocations: 182.8 kB / 363 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.382, allocations: 1.554 MB / 364.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.3826, allocations: 0.9312 MB / 365.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003305/0.3829, allocations: 68.67 kB / 365.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.383, allocations: 43.42 kB / 365.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3831, allocations: 0 / 365.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Templates: time 0.02169/0.4047, allocations: 13.65 MB / 379.3 MB, free: 12.84 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: