Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.006591/0.006591, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001316/0.001316, allocations: 190.5 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.52/1.52, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.00144/0.00144, allocations: 49.84 kB / 326.5 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.122, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007638/0.1297, allocations: 4.818 MB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003513/0.1333, allocations: 1.406 MB / 379.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005373/0.1339, allocations: 8 kB / 379.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004984/0.1344, allocations: 154.7 kB / 379.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008316/0.1353, allocations: 333.3 kB / 379.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006084/0.1359, allocations: 219.6 kB / 380.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.137, allocations: 1.019 MB / 381.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004461/0.1374, allocations: 301.8 kB / 381.4 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/0.1379, allocations: 406.5 kB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005243/0.1385, allocations: 450.1 kB / 382.2 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.1386, allocations: 88 kB / 382.3 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.1388, allocations: 92 kB / 382.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.139, allocations: 191.3 kB / 382.6 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005168/0.1395, allocations: 485.8 kB / 383.1 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.1408, allocations: 1.067 MB / 384.1 MB, free: 6.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.1408, allocations: 7.938 kB / 384.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1408, allocations: 7.938 kB / 384.2 MB, free: 6.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.1408, allocations: 0 / 384.2 MB, free: 6.246 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.002695/0.1435, allocations: 1.212 MB / 385.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.1436, allocations: 12.03 kB / 385.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002244/0.1438, allocations: 95.91 kB / 385.5 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009466/0.1448, allocations: 0.5198 MB / 386 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.1449, allocations: 101.3 kB / 386.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-05/0.145, allocations: 48.38 kB / 386.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.1464, allocations: 0.8005 MB / 386.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.1464, allocations: 0 / 386.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/0.1465, allocations: 28 kB / 387 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.1465, allocations: 15.98 kB / 387 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.1479, allocations: 0.4958 MB / 387.5 MB, free: 2.695 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.004027/0.152, allocations: 2.158 MB / 389.6 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.1533, allocations: 0.526 MB / 390.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005966/0.1539, allocations: 262.3 kB / 390.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.408e-05/0.154, allocations: 16.56 kB / 390.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007402/0.1547, allocations: 319 kB / 390.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 5.01e-06/0.1548, allocations: 3.984 kB / 390.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.00526/0.16, allocations: 1.481 MB / 392.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004066/0.1605, allocations: 0.8272 MB / 393.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007416/0.1612, allocations: 0.5901 MB / 393.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.779e-05/0.1613, allocations: 41.7 kB / 393.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.1616, allocations: 337.2 kB / 394 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.1617, allocations: 189.2 kB / 394.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.1619, allocations: 134.1 kB / 394.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1621, allocations: 378.8 kB / 394.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005527/0.1627, allocations: 213 kB / 394.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009072/0.1636, allocations: 0.5208 MB / 395.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001185/0.1648, allocations: 0.5615 MB / 396 MB, free: 9.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.1648, allocations: 0 / 396 MB, free: 9.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002475/0.1673, allocations: 0.9012 MB / 396.9 MB, free: 8.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.129e-05/0.1673, allocations: 67.34 kB / 397 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.1674, allocations: 4 kB / 397 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007283/0.1681, allocations: 213.6 kB / 397.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/0.1687, allocations: 115.8 kB / 397.3 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006507/0.1753, allocations: 4.592 MB / 401.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008412/0.1761, allocations: 79.48 kB / 402 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-05/0.1762, allocations: 28 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.0003746/0.1766, allocations: 213.8 kB / 402.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.1767, allocations: 83.06 kB / 402.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.1769, allocations: 78.86 kB / 402.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-06/0.1769, allocations: 7.938 kB / 402.4 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1769, allocations: 0 / 402.4 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002088/0.179, allocations: 1.05 MB / 403.4 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/0.1817, allocations: 1.536 MB / 405 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1817, allocations: 0 / 405 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006497/0.1823, allocations: 103.9 kB / 405.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005748/0.1829, allocations: 177.5 kB / 405.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.183, allocations: 12 kB / 405.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004891/0.1879, allocations: 3.94 MB / 409.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1879, allocations: 0 / 409.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/0.1903, allocations: 1.02 MB / 410.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.1906, allocations: 224 kB / 410.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.699e-05/0.1907, allocations: 16.06 kB / 410.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006124/0.1914, allocations: 43.95 kB / 410.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.1915, allocations: 52.48 kB / 410.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-05/0.1916, allocations: 16 kB / 410.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005103/0.1921, allocations: 415.1 kB / 410.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1921, allocations: 0 / 410.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008757/0.193, allocations: 255.7 kB / 411.2 MB, free: 9.508 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.0001872/0.1932, allocations: 123.2 kB / 411.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.1954, allocations: 1.011 MB / 412.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.1954, allocations: 4 kB / 412.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009763/0.1964, allocations: 0.5478 MB / 412.9 MB, free: 7.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009012/0.1973, allocations: 218.9 kB / 413.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.1999, allocations: 1.3 MB / 414.4 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/0.2004, allocations: 0.9199 MB / 415.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003693/0.2008, allocations: 85.2 kB / 415.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.201, allocations: 63.36 kB / 415.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.201, allocations: 4 kB / 415.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of Templates: time 0.02839/0.2294, allocations: 16.28 MB / 431.7 MB, free: 4.785 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)