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.001168/0.001168, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001328/0.001328, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.561/1.561, allocations: 205.1 MB / 223.7 MB, free: 12.34 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.001485/0.001485, allocations: 55.92 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1158, allocations: 46.63 MB / 326.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006722/0.1226, allocations: 4.826 MB / 331.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.1257, allocations: 1.403 MB / 332.8 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004236/0.1261, allocations: 8 kB / 332.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005622/0.1268, allocations: 154.7 kB / 333 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008515/0.1276, allocations: 337.3 kB / 333.3 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004934/0.1281, allocations: 215.6 kB / 333.5 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009595/0.1291, allocations: 1.027 MB / 334.6 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003908/0.1295, allocations: 297.9 kB / 334.9 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004494/0.1299, allocations: 406.6 kB / 335.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004766/0.1304, allocations: 450.1 kB / 335.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000135/0.1306, allocations: 88 kB / 335.8 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.1308, allocations: 88 kB / 335.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.1309, allocations: 199.3 kB / 336.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000443/0.1314, allocations: 469.9 kB / 336.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009675/0.1323, allocations: 1.059 MB / 337.6 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1324, allocations: 0 / 337.6 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.1324, allocations: 4 kB / 337.6 MB, free: 9.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1324, allocations: 0 / 337.6 MB, free: 9.434 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.002157/0.1345, allocations: 1.216 MB / 338.8 MB, free: 8.148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1346, allocations: 12.03 kB / 338.8 MB, free: 8.137 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.1348, allocations: 99.81 kB / 338.9 MB, free: 8.039 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007574/0.1355, allocations: 0.5082 MB / 339.4 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.1357, allocations: 101.3 kB / 339.5 MB, free: 7.379 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-05/0.1358, allocations: 52.38 kB / 339.6 MB, free: 7.328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.1372, allocations: 0.7966 MB / 340.4 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.1373, allocations: 7.906 kB / 340.4 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.716e-05/0.1374, allocations: 24 kB / 340.4 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.1374, allocations: 15.94 kB / 340.4 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.1387, allocations: 0.5074 MB / 340.9 MB, free: 5.871 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.00405/0.1427, allocations: 2.154 MB / 343.1 MB, free: 3.582 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.1441, allocations: 0.5292 MB / 343.6 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005735/0.1447, allocations: 254.4 kB / 343.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.779e-05/0.1447, allocations: 21.59 kB / 343.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008268/0.1456, allocations: 323 kB / 344.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 4.809e-06/0.1456, allocations: 0 / 344.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.0049/0.1505, allocations: 1.497 MB / 345.7 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003959/0.1509, allocations: 0.8311 MB / 346.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007862/0.1517, allocations: 0.5824 MB / 347.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.713e-05/0.1518, allocations: 41.7 kB / 347.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002881/0.1521, allocations: 336.7 kB / 347.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.1523, allocations: 185.3 kB / 347.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.1525, allocations: 126.2 kB / 347.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1527, allocations: 382.8 kB / 348.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005627/0.1533, allocations: 209 kB / 348.4 MB, free: 14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008647/0.1542, allocations: 0.5208 MB / 348.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.1554, allocations: 0.5614 MB / 349.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.1554, allocations: 0 / 349.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002269/0.1577, allocations: 0.9051 MB / 350.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.814e-05/0.1577, allocations: 63.41 kB / 350.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.1578, allocations: 4 kB / 350.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007208/0.1585, allocations: 225.5 kB / 350.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005931/0.1591, allocations: 115.9 kB / 350.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006369/0.1655, allocations: 4.596 MB / 355.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008733/0.1664, allocations: 91.33 kB / 355.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.617e-05/0.1664, allocations: 23.98 kB / 355.5 MB, free: 6.41 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.0003893/0.1668, allocations: 209.7 kB / 355.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.167, allocations: 79.16 kB / 355.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.1671, allocations: 74.86 kB / 355.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.1671, allocations: 11.94 kB / 355.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.1672, allocations: 4 kB / 355.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002029/0.1692, allocations: 1.046 MB / 356.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002624/0.1718, allocations: 1.537 MB / 358.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.1719, allocations: 0 / 358.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.1725, allocations: 107.9 kB / 358.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005441/0.173, allocations: 177.4 kB / 358.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.532e-05/0.1731, allocations: 12.19 kB / 358.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004917/0.178, allocations: 3.936 MB / 362.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.178, allocations: 4.062 kB / 362.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.1804, allocations: 1.027 MB / 363.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003855/0.1808, allocations: 219.9 kB / 363.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.181, allocations: 16 kB / 363.9 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006159/0.1816, allocations: 44.02 kB / 363.9 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.1818, allocations: 56.48 kB / 364 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.228e-05/0.1818, allocations: 12 kB / 364 MB, free: 13.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005283/0.1823, allocations: 423.1 kB / 364.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1823, allocations: 0 / 364.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008664/0.1832, allocations: 247.8 kB / 364.7 MB, free: 12.69 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.0002236/0.1835, allocations: 123.2 kB / 364.8 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.1857, allocations: 1.046 MB / 365.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1857, allocations: 4 kB / 365.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.1867, allocations: 0.5438 MB / 366.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008995/0.1877, allocations: 210.9 kB / 366.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.1903, allocations: 1.304 MB / 367.9 MB, free: 9.352 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/0.1909, allocations: 0.916 MB / 368.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003922/0.1913, allocations: 89.2 kB / 368.9 MB, free: 8.324 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.1915, allocations: 51.44 kB / 368.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1915, allocations: 3.938 kB / 368.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of Templates: time 0.1792/0.3707, allocations: 16.14 MB / 385.1 MB, free: 51.63 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)