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.009429/0.009429, allocations: 100.9 kB / 15.73 MB, free: 6.039 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.002327/0.002328, allocations: 186.5 kB / 16.67 MB, free: 5.969 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.54/1.54, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.002316/0.002316, allocations: 52.7 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1389, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006149/0.1451, allocations: 4.83 MB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003147/0.1483, allocations: 1.398 MB / 379.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003006/0.1486, allocations: 8 kB / 379.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004458/0.1491, allocations: 154.7 kB / 379.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000728/0.1499, allocations: 341.4 kB / 379.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.1504, allocations: 219.6 kB / 380.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.1514, allocations: 1.035 MB / 381.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004377/0.1519, allocations: 297.8 kB / 381.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005125/0.1524, allocations: 410.5 kB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.1529, allocations: 454.1 kB / 382.3 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.153, allocations: 88 kB / 382.4 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1531, allocations: 88 kB / 382.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.1533, allocations: 195.3 kB / 382.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004319/0.1538, allocations: 477.8 kB / 383.1 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009858/0.1548, allocations: 1.074 MB / 384.2 MB, free: 6.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1548, allocations: 0 / 384.2 MB, free: 6.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1548, allocations: 0 / 384.2 MB, free: 6.258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.1548, allocations: 4 kB / 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.002164/0.157, allocations: 1.224 MB / 385.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.157, allocations: 8.031 kB / 385.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.1572, allocations: 99.91 kB / 385.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007879/0.158, allocations: 0.512 MB / 386 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.1581, allocations: 109.3 kB / 386.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.012e-05/0.1582, allocations: 48.38 kB / 386.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.1595, allocations: 0.7966 MB / 387 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.1596, allocations: 0 / 387 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.756e-05/0.1596, allocations: 28 kB / 387 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.1597, allocations: 19.94 kB / 387 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.1608, allocations: 0.4958 MB / 387.5 MB, free: 2.691 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.003241/0.1641, allocations: 2.15 MB / 389.7 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.1654, allocations: 0.5302 MB / 390.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005968/0.166, allocations: 254.4 kB / 390.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-05/0.1661, allocations: 16.61 kB / 390.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007243/0.1668, allocations: 323 kB / 390.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.495e-06/0.1668, allocations: 0 / 390.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004905/0.1717, allocations: 1.485 MB / 392.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004474/0.1722, allocations: 0.8271 MB / 393.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008208/0.173, allocations: 0.5901 MB / 393.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.839e-05/0.1731, allocations: 41.7 kB / 393.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000305/0.1734, allocations: 332.8 kB / 394 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.1736, allocations: 193.2 kB / 394.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/0.1738, allocations: 130.1 kB / 394.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.174, allocations: 378.8 kB / 394.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005474/0.1745, allocations: 209 kB / 394.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008443/0.1754, allocations: 0.5247 MB / 395.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.1766, allocations: 0.5653 MB / 396 MB, free: 9.566 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1766, allocations: 0 / 396 MB, free: 9.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00218/0.1788, allocations: 0.9051 MB / 396.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.393e-05/0.1789, allocations: 63.39 kB / 397 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.1789, allocations: 4 kB / 397 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007514/0.1796, allocations: 217.6 kB / 397.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007229/0.1804, allocations: 115.8 kB / 397.3 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007294/0.1877, allocations: 4.588 MB / 401.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.1891, allocations: 87.47 kB / 402 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.517e-05/0.1891, allocations: 24 kB / 402 MB, free: 3.254 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.000503/0.1896, allocations: 205.9 kB / 402.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.1898, allocations: 87 kB / 402.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.1899, allocations: 78.84 kB / 402.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1899, allocations: 11.94 kB / 402.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.19, allocations: 0 / 402.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002184/0.1922, allocations: 1.046 MB / 403.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002772/0.1949, allocations: 1.536 MB / 405 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.195, allocations: 3.938 kB / 405 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006098/0.1956, allocations: 111.8 kB / 405.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005709/0.1962, allocations: 165.5 kB / 405.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/0.1962, allocations: 15.98 kB / 405.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005011/0.2012, allocations: 3.932 MB / 409.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2013, allocations: 32 / 409.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.2037, allocations: 1.032 MB / 410.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.2041, allocations: 216 kB / 410.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.2042, allocations: 19.98 kB / 410.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000595/0.2048, allocations: 48.02 kB / 410.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.205, allocations: 48.5 kB / 410.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.488e-05/0.205, allocations: 15.98 kB / 410.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005738/0.2056, allocations: 419.1 kB / 411 MB, free: 9.762 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2056, allocations: 0 / 411 MB, free: 9.762 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009016/0.2065, allocations: 251.7 kB / 411.2 MB, free: 9.516 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.0002132/0.2067, allocations: 123.3 kB / 411.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.2089, allocations: 1.019 MB / 412.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.2089, allocations: 4 kB / 412.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009509/0.2099, allocations: 0.5437 MB / 412.9 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000966/0.2109, allocations: 215 kB / 413.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.2136, allocations: 1.3 MB / 414.4 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.2141, allocations: 0.9121 MB / 415.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003568/0.2145, allocations: 85.22 kB / 415.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.2146, allocations: 51.44 kB / 415.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.2146, allocations: 0 / 415.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of Templates: time 0.02857/0.2432, allocations: 16.3 MB / 431.8 MB, free: 4.801 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)