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.001128/0.001128, allocations: 105.8 kB / 16.62 MB, free: 6.812 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.001221/0.001221, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.457/1.457, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001298/0.001298, allocations: 51.94 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1167, allocations: 46.63 MB / 326.1 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006261/0.123, allocations: 4.848 MB / 331 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002719/0.1258, allocations: 1.387 MB / 332.4 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003225/0.1261, allocations: 11.94 kB / 332.4 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004396/0.1266, allocations: 123.2 kB / 332.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006423/0.1272, allocations: 301.8 kB / 332.8 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.1277, allocations: 187.8 kB / 333 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.1287, allocations: 1.038 MB / 334 MB, free: 12.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000395/0.1291, allocations: 293.9 kB / 334.3 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004249/0.1296, allocations: 398.6 kB / 334.7 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004408/0.13, allocations: 454.1 kB / 335.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.1301, allocations: 88 kB / 335.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.1303, allocations: 92 kB / 335.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.1305, allocations: 195.3 kB / 335.5 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003892/0.1309, allocations: 473.8 kB / 336 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008775/0.1317, allocations: 1.059 MB / 337 MB, free: 9.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1318, allocations: 4 kB / 337 MB, free: 9.836 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1318, allocations: 0 / 337 MB, free: 9.836 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1318, allocations: 0 / 337 MB, free: 9.836 MB / 286.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.002154/0.1339, allocations: 1.224 MB / 338.2 MB, free: 8.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.134, allocations: 15.97 kB / 338.3 MB, free: 8.527 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.1342, allocations: 99.81 kB / 338.4 MB, free: 8.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006676/0.1348, allocations: 0.4965 MB / 338.9 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.135, allocations: 109.3 kB / 339 MB, free: 7.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.762e-05/0.1351, allocations: 48.38 kB / 339 MB, free: 7.723 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1365, allocations: 0.7966 MB / 339.8 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/0.1365, allocations: 3.906 kB / 339.8 MB, free: 6.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.944e-05/0.1366, allocations: 31.94 kB / 339.8 MB, free: 6.789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.1366, allocations: 12 kB / 339.9 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.1378, allocations: 0.4997 MB / 340.4 MB, free: 6.277 MB / 286.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.00317/0.1409, allocations: 2.169 MB / 342.5 MB, free: 3.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.1421, allocations: 0.5292 MB / 343.1 MB, free: 3.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005804/0.1427, allocations: 262.4 kB / 343.3 MB, free: 3.176 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.219e-05/0.1428, allocations: 9.656 kB / 343.3 MB, free: 3.168 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008912/0.1437, allocations: 327 kB / 343.6 MB, free: 2.836 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 2.615e-06/0.1437, allocations: 3.938 kB / 343.6 MB, free: 2.832 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005777/0.1495, allocations: 1.493 MB / 345.1 MB, free: 1.289 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004368/0.1499, allocations: 0.8194 MB / 346 MB, free: 276 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009417/0.1509, allocations: 0.5863 MB / 346.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.912e-05/0.151, allocations: 45.7 kB / 346.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003297/0.1513, allocations: 332.7 kB / 346.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.1516, allocations: 189.2 kB / 347.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/0.1519, allocations: 130.2 kB / 347.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1521, allocations: 374.8 kB / 347.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007136/0.1528, allocations: 213 kB / 347.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.1539, allocations: 0.5169 MB / 348.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.1554, allocations: 0.5654 MB / 348.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1555, allocations: 0 / 348.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002957/0.1584, allocations: 0.905 MB / 349.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.455e-05/0.1585, allocations: 59.41 kB / 349.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.1585, allocations: 4 kB / 349.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009753/0.1595, allocations: 225.5 kB / 350.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000847/0.1604, allocations: 111.9 kB / 350.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008195/0.1686, allocations: 4.6 MB / 354.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.1699, allocations: 87.39 kB / 354.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.959e-05/0.17, allocations: 23.98 kB / 354.9 MB, free: 6.809 MB / 302.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.0005079/0.1705, allocations: 213.8 kB / 355.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.1707, allocations: 75.16 kB / 355.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.1709, allocations: 78.86 kB / 355.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.171, allocations: 7.938 kB / 355.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.171, allocations: 0 / 355.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002853/0.1738, allocations: 1.058 MB / 356.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003612/0.1775, allocations: 1.529 MB / 357.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.1775, allocations: 0 / 357.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000833/0.1783, allocations: 107.9 kB / 357.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007335/0.1791, allocations: 181.4 kB / 358.1 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.1791, allocations: 8 kB / 358.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006702/0.1858, allocations: 3.944 MB / 362.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1859, allocations: 0 / 362.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003203/0.1891, allocations: 1.027 MB / 363.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005779/0.1897, allocations: 220 kB / 363.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.1899, allocations: 20 kB / 363.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008422/0.1907, allocations: 39.95 kB / 363.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.191, allocations: 56.48 kB / 363.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.678e-05/0.191, allocations: 12 kB / 363.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007366/0.1918, allocations: 423.1 kB / 363.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.1918, allocations: 0 / 363.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001182/0.193, allocations: 247.9 kB / 364.1 MB, free: 13.08 MB / 318.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.0002248/0.1932, allocations: 127 kB / 364.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003096/0.1963, allocations: 1.038 MB / 365.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.1964, allocations: 4 kB / 365.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009517/0.1973, allocations: 0.5477 MB / 365.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009382/0.1983, allocations: 211.2 kB / 366 MB, free: 11.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.2009, allocations: 1.559 MB / 367.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.2014, allocations: 0.916 MB / 368.5 MB, free: 8.547 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003645/0.2018, allocations: 85.22 kB / 368.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.2019, allocations: 55.38 kB / 368.6 MB, free: 8.41 MB / 318.1 MB Notification: Performance of SimCode: time 8.11e-07/0.202, allocations: 0 / 368.6 MB, free: 8.41 MB / 318.1 MB Notification: Performance of Templates: time 0.19/0.3919, allocations: 15.88 MB / 384.5 MB, free: 51.87 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)