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.001054/0.001054, allocations: 89.39 kB / 16.32 MB, free: 6.453 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.001209/0.001209, allocations: 176.2 kB / 17.21 MB, free: 6.328 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.507/1.507, allocations: 205.4 MB / 223.4 MB, free: 5.562 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.0004748/0.0004749, allocations: 16 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2886, allocations: 47.59 MB / 327.7 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004568/0.2932, allocations: 4.222 MB / 332 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.296, allocations: 1.317 MB / 333.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004411/0.2965, allocations: 10.62 kB / 333.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.2968, allocations: 100.8 kB / 333.4 MB, free: 12.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008551/0.2977, allocations: 304 kB / 333.7 MB, free: 12.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004596/0.2982, allocations: 169.9 kB / 333.8 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009145/0.2991, allocations: 0.903 MB / 334.7 MB, free: 11.97 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004122/0.2995, allocations: 253.5 kB / 335 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000491/0.3, allocations: 348.2 kB / 335.3 MB, free: 11.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005022/0.3005, allocations: 408.6 kB / 335.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.3007, allocations: 57.44 kB / 335.8 MB, free: 11.36 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.3008, allocations: 64.78 kB / 335.8 MB, free: 11.35 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.301, allocations: 155.4 kB / 336 MB, free: 11.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002142/0.3012, allocations: 189.3 kB / 336.2 MB, free: 11.01 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007562/0.302, allocations: 0.7868 MB / 337 MB, free: 10.22 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.302, allocations: 0 / 337 MB, free: 10.22 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.302, allocations: 0 / 337 MB, free: 10.22 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.302, allocations: 0 / 337 MB, free: 10.22 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.001934/0.304, allocations: 1.088 MB / 338.1 MB, free: 9.066 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.304, allocations: 8.031 kB / 338.1 MB, free: 9.059 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.3042, allocations: 94.97 kB / 338.2 MB, free: 8.965 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006527/0.3048, allocations: 0.4917 MB / 338.7 MB, free: 8.43 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.305, allocations: 108.6 kB / 338.8 MB, free: 8.309 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-05/0.3051, allocations: 52 kB / 338.8 MB, free: 8.258 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.3064, allocations: 0.8004 MB / 339.6 MB, free: 7.352 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.3064, allocations: 0 / 339.6 MB, free: 7.352 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.3065, allocations: 32 kB / 339.6 MB, free: 7.32 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.3065, allocations: 12 kB / 339.7 MB, free: 7.309 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.3076, allocations: 0.5309 MB / 340.2 MB, free: 6.781 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.003139/0.3108, allocations: 2.165 MB / 342.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.3119, allocations: 0.5622 MB / 342.9 MB, free: 3.906 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005317/0.3125, allocations: 274.4 kB / 343.2 MB, free: 3.633 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.295e-05/0.3125, allocations: 16.7 kB / 343.2 MB, free: 3.617 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007434/0.3133, allocations: 335 kB / 343.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 2.184e-06/0.3133, allocations: 0 / 343.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.004517/0.3178, allocations: 1.591 MB / 345.1 MB, free: 1.637 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003476/0.3182, allocations: 0.8272 MB / 345.9 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006889/0.3189, allocations: 0.59 MB / 346.5 MB, free: 16 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.941e-05/0.319, allocations: 37.7 kB / 346.6 MB, free: 15.97 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.3192, allocations: 336.8 kB / 346.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.3194, allocations: 189.2 kB / 347.1 MB, free: 15.45 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.3194, allocations: 8 kB / 347.1 MB, free: 15.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3196, allocations: 378.8 kB / 347.5 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005268/0.3201, allocations: 232.9 kB / 347.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007891/0.3209, allocations: 0.5286 MB / 348.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006296/0.3216, allocations: 321.4 kB / 348.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3216, allocations: 0 / 348.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001727/0.3233, allocations: 0.8702 MB / 349.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.912e-05/0.3234, allocations: 63.41 kB / 349.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.3234, allocations: 3.984 kB / 349.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006703/0.3241, allocations: 229.5 kB / 349.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005631/0.3246, allocations: 127.8 kB / 349.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006015/0.3307, allocations: 4.292 MB / 354.1 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008435/0.3315, allocations: 91.38 kB / 354.2 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.799e-05/0.3316, allocations: 28 kB / 354.2 MB, free: 7.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 ($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.0004413/0.3321, allocations: 205.9 kB / 354.4 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.3323, allocations: 75.16 kB / 354.5 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001689/0.3324, allocations: 82.84 kB / 354.6 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.3325, allocations: 4 kB / 354.6 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3325, allocations: 3.953 kB / 354.6 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001958/0.3344, allocations: 1.101 MB / 355.7 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.3372, allocations: 1.572 MB / 357.3 MB, free: 4.625 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3372, allocations: 0 / 357.3 MB, free: 4.625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006376/0.3379, allocations: 119.8 kB / 357.4 MB, free: 4.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005388/0.3384, allocations: 173.6 kB / 357.5 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.3385, allocations: 11.98 kB / 357.6 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004921/0.3434, allocations: 3.674 MB / 361.2 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3434, allocations: 0 / 361.2 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.3458, allocations: 1.07 MB / 362.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004424/0.3463, allocations: 212 kB / 362.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.3465, allocations: 20 kB / 362.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005818/0.3471, allocations: 55.92 kB / 362.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.3472, allocations: 52.44 kB / 362.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.3473, allocations: 19.98 kB / 362.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006315/0.3479, allocations: 411.1 kB / 363.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3479, allocations: 0 / 363.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001078/0.349, allocations: 251.7 kB / 363.3 MB, free: 14.27 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.000184/0.3492, allocations: 127.1 kB / 363.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002223/0.3514, allocations: 1.043 MB / 364.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3515, allocations: 0 / 364.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009505/0.3524, allocations: 0.5594 MB / 365 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009102/0.3533, allocations: 207.4 kB / 365.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.3559, allocations: 1.55 MB / 366.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.3563, allocations: 0.9161 MB / 367.7 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003489/0.3567, allocations: 85.22 kB / 367.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.3568, allocations: 55.42 kB / 367.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of SimCode: time 1.623e-06/0.3568, allocations: 0 / 367.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of Templates: time 0.02633/0.3832, allocations: 14.38 MB / 382.2 MB, free: 11.2 MB / 318.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)