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.001387/0.001387, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001711/0.001711, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.407/1.407, allocations: 205.1 MB / 223.3 MB, free: 12.45 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.001092/0.001092, allocations: 43.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/0.09059, allocations: 46.62 MB / 325.9 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006013/0.09665, allocations: 4.848 MB / 330.8 MB, free: 8 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002673/0.09936, allocations: 1.399 MB / 332.2 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.09964, allocations: 7.938 kB / 332.2 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.1001, allocations: 131.2 kB / 332.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005844/0.1007, allocations: 301.9 kB / 332.6 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.1011, allocations: 179.8 kB / 332.8 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008646/0.1019, allocations: 0.9837 MB / 333.8 MB, free: 13 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003966/0.1023, allocations: 269.9 kB / 334 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004076/0.1028, allocations: 374.7 kB / 334.4 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003836/0.1031, allocations: 430.1 kB / 334.8 MB, free: 11.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.1033, allocations: 64 kB / 334.9 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.1034, allocations: 60 kB / 335 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.1036, allocations: 179.3 kB / 335.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003839/0.104, allocations: 449.8 kB / 335.6 MB, free: 11.19 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000818/0.1048, allocations: 1.032 MB / 336.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1048, allocations: 4 kB / 336.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1048, allocations: 0 / 336.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.986e-06/0.1048, allocations: 0 / 336.6 MB, free: 10.15 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.002153/0.107, allocations: 1.224 MB / 337.8 MB, free: 8.863 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.107, allocations: 11.97 kB / 337.8 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.1072, allocations: 103.8 kB / 337.9 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/0.1079, allocations: 0.5043 MB / 338.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.1081, allocations: 105.3 kB / 338.6 MB, free: 8.086 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.596e-05/0.1082, allocations: 52.38 kB / 338.6 MB, free: 8.035 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.1094, allocations: 0.7966 MB / 339.4 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.1095, allocations: 3.906 kB / 339.4 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.583e-05/0.1095, allocations: 28 kB / 339.4 MB, free: 7.102 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.1096, allocations: 12 kB / 339.4 MB, free: 7.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.1108, allocations: 0.5036 MB / 339.9 MB, free: 6.59 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.003484/0.1143, allocations: 2.161 MB / 342.1 MB, free: 4.289 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1155, allocations: 0.5292 MB / 342.6 MB, free: 3.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005923/0.1161, allocations: 254.4 kB / 342.9 MB, free: 3.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-05/0.1162, allocations: 17.58 kB / 342.9 MB, free: 3.484 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008173/0.117, allocations: 327 kB / 343.2 MB, free: 3.152 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 2.725e-06/0.117, allocations: 0 / 343.2 MB, free: 3.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005164/0.1222, allocations: 1.493 MB / 344.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003991/0.1226, allocations: 0.8194 MB / 345.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006988/0.1233, allocations: 0.5863 MB / 346.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.497e-05/0.1234, allocations: 45.64 kB / 346.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.1237, allocations: 340.7 kB / 346.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.1239, allocations: 181.3 kB / 346.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.1242, allocations: 130.2 kB / 346.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003053/0.1245, allocations: 374.8 kB / 347.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005848/0.1251, allocations: 213 kB / 347.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008254/0.1259, allocations: 0.5208 MB / 347.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.1271, allocations: 0.5615 MB / 348.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.768e-06/0.1271, allocations: 4 kB / 348.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002576/0.1297, allocations: 0.9011 MB / 349.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.002e-05/0.1298, allocations: 63.44 kB / 349.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.1298, allocations: 4 kB / 349.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007811/0.1306, allocations: 221.5 kB / 349.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006077/0.1312, allocations: 115.8 kB / 349.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006326/0.1375, allocations: 4.197 MB / 354 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008879/0.1384, allocations: 79.48 kB / 354 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.346e-05/0.1385, allocations: 23.98 kB / 354.1 MB, free: 7.551 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.0003764/0.1389, allocations: 221.8 kB / 354.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.139, allocations: 75.16 kB / 354.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.1391, allocations: 78.86 kB / 354.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1392, allocations: 4 kB / 354.4 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.1392, allocations: 112 / 354.4 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002118/0.1413, allocations: 1.054 MB / 355.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.1439, allocations: 1.537 MB / 357 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.144, allocations: 4 kB / 357 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006283/0.1446, allocations: 107.9 kB / 357.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005643/0.1452, allocations: 173.6 kB / 357.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.1452, allocations: 12 kB / 357.3 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005018/0.1502, allocations: 3.604 MB / 360.9 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1503, allocations: 0 / 360.9 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.1529, allocations: 1.023 MB / 361.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004049/0.1533, allocations: 219.9 kB / 362.1 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.1534, allocations: 24.05 kB / 362.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005805/0.154, allocations: 43.95 kB / 362.2 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.1541, allocations: 56.42 kB / 362.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.1542, allocations: 15.98 kB / 362.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005317/0.1547, allocations: 419.1 kB / 362.7 MB, free: 14.4 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1547, allocations: 0 / 362.7 MB, free: 14.4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008336/0.1556, allocations: 247.8 kB / 362.9 MB, free: 14.16 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.0001738/0.1558, allocations: 131 kB / 363.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.1578, allocations: 0.9995 MB / 364.1 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1578, allocations: 3.938 kB / 364.1 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009573/0.1588, allocations: 0.5438 MB / 364.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.1598, allocations: 207.3 kB / 364.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/0.1628, allocations: 1.554 MB / 366.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007313/0.1635, allocations: 0.9082 MB / 367.3 MB, free: 9.691 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004457/0.164, allocations: 85.22 kB / 367.4 MB, free: 9.609 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.1641, allocations: 55.42 kB / 367.4 MB, free: 9.555 MB / 318.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1641, allocations: 0 / 367.4 MB, free: 9.555 MB / 318.1 MB Notification: Performance of Templates: time 0.2351/0.3993, allocations: 15.03 MB / 382.4 MB, free: 50.91 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)