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.004994/0.004994, allocations: 101.5 kB / 15.73 MB, free: 6.492 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.001196/0.001197, allocations: 195.7 kB / 16.68 MB, free: 6.375 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.533/1.533, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001218/0.001218, allocations: 46.81 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1269, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007052/0.134, allocations: 4.834 MB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003555/0.1376, allocations: 1.402 MB / 379.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009731/0.1387, allocations: 11.94 kB / 379.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009421/0.1397, allocations: 154.7 kB / 379.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.1416, allocations: 341.4 kB / 379.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.1426, allocations: 219.6 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002147/0.1448, allocations: 1.027 MB / 381.1 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006153/0.1454, allocations: 301.8 kB / 381.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009165/0.1464, allocations: 410.5 kB / 381.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006046/0.147, allocations: 446.1 kB / 382.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.1471, allocations: 88 kB / 382.3 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.1473, allocations: 96 kB / 382.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.1475, allocations: 199.3 kB / 382.6 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005312/0.148, allocations: 477.8 kB / 383.1 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.1492, allocations: 1.067 MB / 384.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.1492, allocations: 0 / 384.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1492, allocations: 3.938 kB / 384.2 MB, free: 6.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.1493, allocations: 0 / 384.2 MB, free: 6.234 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.002475/0.1518, allocations: 1.22 MB / 385.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.284e-05/0.1518, allocations: 16.03 kB / 385.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001959/0.152, allocations: 95.91 kB / 385.5 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009893/0.153, allocations: 0.5159 MB / 386 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.1532, allocations: 97.27 kB / 386.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.916e-05/0.1533, allocations: 52.38 kB / 386.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.1548, allocations: 0.7966 MB / 387 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.1548, allocations: 8 kB / 387 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-05/0.1549, allocations: 27.98 kB / 387 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.1549, allocations: 12 kB / 387 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.1561, allocations: 0.4958 MB / 387.5 MB, free: 2.676 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.00329/0.1594, allocations: 2.154 MB / 389.7 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.1607, allocations: 0.5253 MB / 390.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006029/0.1613, allocations: 262.4 kB / 390.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.277e-05/0.1614, allocations: 17.64 kB / 390.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007967/0.1622, allocations: 323 kB / 390.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.936e-06/0.1622, allocations: 4 kB / 390.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004896/0.1671, allocations: 1.485 MB / 392.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004704/0.1676, allocations: 0.8233 MB / 393.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008522/0.1685, allocations: 0.5901 MB / 393.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.41e-05/0.1686, allocations: 41.7 kB / 393.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003026/0.1689, allocations: 332.8 kB / 394 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.1691, allocations: 189.2 kB / 394.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.1693, allocations: 134.1 kB / 394.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.1695, allocations: 382.7 kB / 394.7 MB, free: 11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005688/0.1701, allocations: 209 kB / 394.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008819/0.171, allocations: 0.5208 MB / 395.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.1723, allocations: 0.5576 MB / 396 MB, free: 9.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1723, allocations: 4 kB / 396 MB, free: 9.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002326/0.1746, allocations: 0.9051 MB / 396.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.56e-05/0.1747, allocations: 67.34 kB / 397 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.1747, allocations: 4 kB / 397 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007612/0.1755, allocations: 217.6 kB / 397.2 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006434/0.1761, allocations: 119.8 kB / 397.3 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006822/0.183, allocations: 4.576 MB / 401.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009139/0.1839, allocations: 79.48 kB / 402 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.877e-05/0.184, allocations: 23.98 kB / 402 MB, free: 3.246 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.0004809/0.1845, allocations: 217.8 kB / 402.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.1848, allocations: 79.06 kB / 402.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.185, allocations: 78.86 kB / 402.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.185, allocations: 11.92 kB / 402.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.185, allocations: 4 kB / 402.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002137/0.1871, allocations: 1.05 MB / 403.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/0.1904, allocations: 1.528 MB / 405 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.1904, allocations: 0 / 405 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006393/0.1911, allocations: 111.8 kB / 405.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005711/0.1916, allocations: 173.5 kB / 405.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.1917, allocations: 19.98 kB / 405.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005174/0.1969, allocations: 3.94 MB / 409.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1969, allocations: 0 / 409.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002441/0.1994, allocations: 1.028 MB / 410.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004407/0.1998, allocations: 216 kB / 410.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.2, allocations: 16 kB / 410.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006457/0.2006, allocations: 47.95 kB / 410.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.2008, allocations: 48.48 kB / 410.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/0.2009, allocations: 19.98 kB / 410.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006047/0.2015, allocations: 415.3 kB / 411 MB, free: 9.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2015, allocations: 4 kB / 411 MB, free: 9.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009854/0.2025, allocations: 255.6 kB / 411.2 MB, free: 9.488 MB / 350.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.0002276/0.2027, allocations: 119.2 kB / 411.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.205, allocations: 1.011 MB / 412.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/0.205, allocations: 4.5 kB / 412.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009945/0.206, allocations: 0.5471 MB / 412.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00099/0.207, allocations: 214.7 kB / 413.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.21, allocations: 1.293 MB / 414.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.2106, allocations: 0.9198 MB / 415.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004054/0.211, allocations: 89.2 kB / 415.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.2111, allocations: 59.42 kB / 415.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2111, allocations: 0 / 415.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of Templates: time 0.03042/0.2416, allocations: 16.29 MB / 431.8 MB, free: 4.781 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (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)