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.008686/0.008686, allocations: 100.1 kB / 15.73 MB, free: 6.047 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.001946/0.001946, allocations: 197.8 kB / 16.67 MB, free: 5.977 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.885/1.885, allocations: 205.1 MB / 222.5 MB, free: 4.406 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.001301/0.001301, allocations: 49.25 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1197, 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.006267/0.126, allocations: 4.826 MB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.1287, allocations: 1.398 MB / 379.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.129, allocations: 11.94 kB / 379.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004404/0.1295, allocations: 154.7 kB / 379.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000834/0.1303, allocations: 345.4 kB / 379.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004778/0.1308, allocations: 211.6 kB / 380.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009313/0.1317, allocations: 1.031 MB / 381.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.1322, allocations: 309.8 kB / 381.4 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004092/0.1326, allocations: 402.6 kB / 381.8 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004288/0.133, allocations: 458 kB / 382.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.1331, allocations: 88 kB / 382.3 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.1333, allocations: 92 kB / 382.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.1334, allocations: 191.4 kB / 382.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004089/0.1339, allocations: 481.8 kB / 383.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009137/0.1348, allocations: 1.063 MB / 384.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.1348, allocations: 4 kB / 384.2 MB, free: 6.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1348, allocations: 3.938 kB / 384.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.1348, allocations: 3.938 kB / 384.2 MB, free: 6.238 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.002676/0.1375, allocations: 1.22 MB / 385.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.1376, allocations: 12.03 kB / 385.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002243/0.1378, allocations: 99.84 kB / 385.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.1389, allocations: 0.512 MB / 386 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.1391, allocations: 101.3 kB / 386.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1392, allocations: 48.38 kB / 386.2 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.1409, allocations: 0.8044 MB / 387 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.141, allocations: 0 / 387 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-05/0.1411, allocations: 24 kB / 387 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.731e-05/0.1411, allocations: 12 kB / 387 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.1427, allocations: 0.5035 MB / 387.5 MB, free: 2.68 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.004321/0.147, allocations: 2.15 MB / 389.7 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.1487, allocations: 0.533 MB / 390.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007509/0.1495, allocations: 262.4 kB / 390.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.061e-05/0.1496, allocations: 13.64 kB / 390.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009252/0.1505, allocations: 315 kB / 390.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 3.286e-06/0.1505, allocations: 4 kB / 390.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.006317/0.1569, allocations: 1.493 MB / 392.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004606/0.1573, allocations: 0.8233 MB / 393.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.1584, allocations: 0.5862 MB / 393.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-05/0.1585, allocations: 41.7 kB / 393.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/0.159, allocations: 332.8 kB / 394 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.1592, allocations: 189.2 kB / 394.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003617/0.1596, allocations: 134.1 kB / 394.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.1598, allocations: 382.8 kB / 394.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007547/0.1606, allocations: 208.9 kB / 394.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.1617, allocations: 0.5247 MB / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.1633, allocations: 0.5615 MB / 396 MB, free: 9.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1633, allocations: 0 / 396 MB, free: 9.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002938/0.1662, allocations: 0.8935 MB / 396.9 MB, free: 8.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.483e-05/0.1663, allocations: 72.42 kB / 397 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.1664, allocations: 7.984 kB / 397 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009883/0.1674, allocations: 217.5 kB / 397.2 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006268/0.168, allocations: 119.8 kB / 397.3 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008889/0.1769, allocations: 4.584 MB / 401.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.178, allocations: 87.47 kB / 402 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-05/0.1781, allocations: 20 kB / 402 MB, free: 3.242 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.0006075/0.1788, allocations: 213.8 kB / 402.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003105/0.1791, allocations: 79.06 kB / 402.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/0.1794, allocations: 82.84 kB / 402.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.1794, allocations: 7.938 kB / 402.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1794, allocations: 0 / 402.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002765/0.1822, allocations: 1.054 MB / 403.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003971/0.1862, allocations: 1.532 MB / 405 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.269e-06/0.1862, allocations: 0 / 405 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008033/0.187, allocations: 107.8 kB / 405.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007243/0.1877, allocations: 173.5 kB / 405.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-05/0.1878, allocations: 19.98 kB / 405.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006605/0.1944, allocations: 3.928 MB / 409.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1944, allocations: 0 / 409.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003266/0.1977, allocations: 1.028 MB / 410.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005763/0.1983, allocations: 220 kB / 410.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002619/0.1986, allocations: 15.98 kB / 410.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000947/0.1995, allocations: 47.95 kB / 410.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.1998, allocations: 48.48 kB / 410.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.669e-05/0.1999, allocations: 19.98 kB / 410.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008678/0.2008, allocations: 419 kB / 411 MB, free: 9.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2008, allocations: 4.062 kB / 411 MB, free: 9.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001417/0.2022, allocations: 255.7 kB / 411.2 MB, free: 9.492 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.0002158/0.2024, allocations: 115.2 kB / 411.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.2056, allocations: 1.011 MB / 412.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.2056, allocations: 4.5 kB / 412.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.207, allocations: 0.5433 MB / 412.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.2084, allocations: 219.2 kB / 413.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.2121, allocations: 1.308 MB / 414.4 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008682/0.213, allocations: 0.916 MB / 415.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004995/0.2135, allocations: 89.2 kB / 415.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.2137, allocations: 55.44 kB / 415.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2137, allocations: 0 / 415.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of Templates: time 0.03172/0.2455, allocations: 16.3 MB / 431.8 MB, free: 4.773 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)