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.001363/0.001364, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 197.4 kB / 16.54 MB, free: 6.672 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.46/1.46, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.001266/0.001266, allocations: 59.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2258, allocations: 46.63 MB / 325.3 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.009416/0.2353, allocations: 4.826 MB / 330.1 MB, free: 14.22 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003683/0.239, allocations: 1.402 MB / 331.5 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006235/0.2397, allocations: 10.78 kB / 331.5 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005731/0.2403, allocations: 153 kB / 331.7 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009504/0.2412, allocations: 335.8 kB / 332 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004997/0.2418, allocations: 221.9 kB / 332.2 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001004/0.2428, allocations: 1.027 MB / 333.3 MB, free: 11.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004026/0.2432, allocations: 290.8 kB / 333.6 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000477/0.2437, allocations: 397.1 kB / 333.9 MB, free: 11.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005916/0.2443, allocations: 454.1 kB / 334.4 MB, free: 10.95 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.2445, allocations: 88 kB / 334.5 MB, free: 10.86 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000228/0.2447, allocations: 92 kB / 334.6 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.2449, allocations: 195.3 kB / 334.7 MB, free: 10.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006053/0.2455, allocations: 477.8 kB / 335.2 MB, free: 10.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.2469, allocations: 1.063 MB / 336.3 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.2469, allocations: 0 / 336.3 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.2469, allocations: 0 / 336.3 MB, free: 9.047 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.247, allocations: 4 kB / 336.3 MB, free: 9.043 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.002989/0.25, allocations: 1.212 MB / 337.5 MB, free: 7.762 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.25, allocations: 8.031 kB / 337.5 MB, free: 7.754 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.2503, allocations: 95.91 kB / 337.6 MB, free: 7.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009478/0.2512, allocations: 0.5081 MB / 338.1 MB, free: 7.113 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.2514, allocations: 105.2 kB / 338.2 MB, free: 6.996 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.2516, allocations: 52.38 kB / 338.3 MB, free: 6.945 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.2534, allocations: 0.8083 MB / 339.1 MB, free: 6.035 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.2534, allocations: 0 / 339.1 MB, free: 6.035 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.679e-05/0.2535, allocations: 24 kB / 339.1 MB, free: 6.012 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.2535, allocations: 12 kB / 339.1 MB, free: 6 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.2553, allocations: 0.4996 MB / 339.6 MB, free: 5.496 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.004736/0.26, allocations: 2.162 MB / 341.8 MB, free: 3.199 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.2617, allocations: 0.5224 MB / 342.3 MB, free: 2.668 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005934/0.2623, allocations: 266.4 kB / 342.5 MB, free: 2.402 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.2624, allocations: 24.55 kB / 342.6 MB, free: 2.379 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008014/0.2632, allocations: 315 kB / 342.9 MB, free: 2.062 MB / 270.1 MB Notification: Performance of pre-optimization done (n=56): time 2.936e-06/0.2632, allocations: 0 / 342.9 MB, free: 2.062 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005054/0.2683, allocations: 1.497 MB / 344.4 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003554/0.2686, allocations: 0.8233 MB / 345.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.2694, allocations: 0.5939 MB / 345.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.85e-05/0.2695, allocations: 37.7 kB / 345.8 MB, free: 14.85 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.2697, allocations: 340.7 kB / 346.2 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.2699, allocations: 185.2 kB / 346.3 MB, free: 14.33 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.2701, allocations: 126.2 kB / 346.5 MB, free: 14.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2703, allocations: 386.8 kB / 346.8 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005527/0.2708, allocations: 209 kB / 347 MB, free: 13.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007971/0.2716, allocations: 0.5169 MB / 347.6 MB, free: 12.97 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.2728, allocations: 0.5576 MB / 348.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.2728, allocations: 4 kB / 348.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002253/0.2751, allocations: 0.9012 MB / 349 MB, free: 11.44 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.511e-05/0.2752, allocations: 67.39 kB / 349.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.2752, allocations: 0 / 349.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007121/0.2759, allocations: 229.5 kB / 349.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/0.2765, allocations: 115.8 kB / 349.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006744/0.2833, allocations: 4.584 MB / 354 MB, free: 6.145 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007911/0.2841, allocations: 83.5 kB / 354.1 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.418e-05/0.2842, allocations: 27.92 kB / 354.1 MB, free: 6.035 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.000446/0.2846, allocations: 217.8 kB / 354.3 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.2848, allocations: 75.16 kB / 354.4 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.285, allocations: 82.84 kB / 354.5 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.285, allocations: 7.938 kB / 354.5 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.285, allocations: 0 / 354.5 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002205/0.2872, allocations: 1.043 MB / 355.5 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.2903, allocations: 1.537 MB / 357.1 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.2903, allocations: 4 kB / 357.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006221/0.2909, allocations: 107.8 kB / 357.2 MB, free: 2.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005633/0.2915, allocations: 173.5 kB / 357.4 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.038e-05/0.2916, allocations: 20.11 kB / 357.4 MB, free: 2.582 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005077/0.2967, allocations: 3.936 MB / 361.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2967, allocations: 0 / 361.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002487/0.2992, allocations: 1.019 MB / 362.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004515/0.2997, allocations: 220 kB / 362.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/0.2998, allocations: 12.19 kB / 362.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006763/0.3005, allocations: 56.02 kB / 362.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.3007, allocations: 48.48 kB / 362.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-05/0.3008, allocations: 19.98 kB / 362.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006419/0.3014, allocations: 415.1 kB / 363.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3014, allocations: 0 / 363.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009935/0.3024, allocations: 255.7 kB / 363.3 MB, free: 12.31 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.0001993/0.3026, allocations: 123.2 kB / 363.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002344/0.305, allocations: 1.05 MB / 364.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.305, allocations: 0 / 364.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.3061, allocations: 0.5516 MB / 365.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.3072, allocations: 215.4 kB / 365.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002716/0.3099, allocations: 1.305 MB / 366.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.3105, allocations: 0.916 MB / 367.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003761/0.3108, allocations: 89.2 kB / 367.6 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.311, allocations: 51.42 kB / 367.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.311, allocations: 7.938 kB / 367.6 MB, free: 7.875 MB / 302.1 MB Notification: Performance of Templates: time 0.02708/0.3381, allocations: 16.14 MB / 383.8 MB, free: 7.699 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)