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.005411/0.005411, allocations: 103.8 kB / 15.74 MB, free: 6.449 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.001224/0.001224, allocations: 195.5 kB / 16.67 MB, free: 6.355 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.532/1.532, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001177/0.001177, allocations: 50.03 kB / 326.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1258, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007799/0.1337, allocations: 4.814 MB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003482/0.1372, allocations: 1.41 MB / 379.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009146/0.1382, allocations: 7.938 kB / 379.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007711/0.139, allocations: 154.7 kB / 379.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001591/0.1406, allocations: 333.4 kB / 379.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007863/0.1414, allocations: 215.6 kB / 380.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002018/0.1435, allocations: 1.027 MB / 381.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005528/0.144, allocations: 305.8 kB / 381.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007241/0.1448, allocations: 406.5 kB / 381.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005307/0.1453, allocations: 454.1 kB / 382.3 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.1455, allocations: 88 kB / 382.3 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.1456, allocations: 88 kB / 382.4 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.1458, allocations: 195.3 kB / 382.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005109/0.1464, allocations: 469.9 kB / 383.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.1477, allocations: 1.089 MB / 384.2 MB, free: 6.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1477, allocations: 4 kB / 384.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.1477, allocations: 0 / 384.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.684e-05/0.1478, allocations: 0 / 384.2 MB, free: 6.254 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.002403/0.1502, allocations: 1.247 MB / 385.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.1502, allocations: 8.031 kB / 385.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.1504, allocations: 100.4 kB / 385.5 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000848/0.1513, allocations: 0.5204 MB / 386 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.1514, allocations: 105.2 kB / 386.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.094e-05/0.1515, allocations: 48.38 kB / 386.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.1529, allocations: 0.7966 MB / 387 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.1529, allocations: 0 / 387 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.153, allocations: 28 kB / 387 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.153, allocations: 12 kB / 387 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.1542, allocations: 0.4997 MB / 387.5 MB, free: 2.668 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.003589/0.1578, allocations: 2.158 MB / 389.7 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.1591, allocations: 0.5292 MB / 390.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005895/0.1597, allocations: 258.4 kB / 390.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.847e-05/0.1598, allocations: 21.64 kB / 390.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007078/0.1605, allocations: 319 kB / 390.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.384e-06/0.1605, allocations: 4 kB / 390.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.00486/0.1654, allocations: 1.486 MB / 392.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004434/0.1659, allocations: 0.8233 MB / 393.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007863/0.1667, allocations: 0.594 MB / 393.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.637e-05/0.1667, allocations: 45.69 kB / 393.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.167, allocations: 333.3 kB / 394.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.1672, allocations: 198.2 kB / 394.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/0.1674, allocations: 130.2 kB / 394.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.1676, allocations: 378.8 kB / 394.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005635/0.1682, allocations: 213 kB / 395 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000883/0.169, allocations: 0.5208 MB / 395.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.1702, allocations: 0.5615 MB / 396.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1702, allocations: 0 / 396.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00227/0.1725, allocations: 0.9132 MB / 397 MB, free: 8.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.416e-05/0.1726, allocations: 59.41 kB / 397 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.1726, allocations: 4 kB / 397 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007694/0.1734, allocations: 217.6 kB / 397.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006194/0.174, allocations: 123.7 kB / 397.4 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006681/0.1807, allocations: 4.593 MB / 402 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009179/0.1817, allocations: 91.66 kB / 402 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-05/0.1817, allocations: 23.94 kB / 402.1 MB, free: 3.191 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.0004279/0.1822, allocations: 209.8 kB / 402.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.1823, allocations: 87.53 kB / 402.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.1825, allocations: 74.86 kB / 402.4 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.1825, allocations: 7.938 kB / 402.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.1825, allocations: 4 kB / 402.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002122/0.1846, allocations: 1.046 MB / 403.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002888/0.1875, allocations: 1.547 MB / 405 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1875, allocations: 0 / 405 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006142/0.1882, allocations: 103.9 kB / 405.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005887/0.1888, allocations: 177.5 kB / 405.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.125e-05/0.1888, allocations: 12 kB / 405.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005438/0.1943, allocations: 3.933 MB / 409.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.1943, allocations: 4.141 kB / 409.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/0.1969, allocations: 1.028 MB / 410.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.1973, allocations: 224.3 kB / 410.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.1975, allocations: 16.06 kB / 410.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006371/0.1981, allocations: 43.95 kB / 410.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.1983, allocations: 52.48 kB / 410.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.1984, allocations: 16 kB / 410.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005513/0.1989, allocations: 423.1 kB / 411 MB, free: 9.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.1989, allocations: 0 / 411 MB, free: 9.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001039/0.2, allocations: 251.8 kB / 411.3 MB, free: 9.438 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.0002273/0.2002, allocations: 119.2 kB / 411.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002397/0.2026, allocations: 1.011 MB / 412.4 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.2026, allocations: 4.188 kB / 412.4 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000979/0.2036, allocations: 0.5477 MB / 413 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009804/0.2046, allocations: 222.9 kB / 413.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00281/0.2074, allocations: 1.318 MB / 414.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/0.208, allocations: 0.916 MB / 415.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004395/0.2085, allocations: 85.2 kB / 415.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.2087, allocations: 59.42 kB / 415.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2087, allocations: 4 kB / 415.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of Templates: time 0.0317/0.2404, allocations: 16.29 MB / 431.9 MB, free: 4.695 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)