Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, 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.001374/0.001374, 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.516/1.516, 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.001232/0.001232, allocations: 47.92 kB / 279.3 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.09475, allocations: 46.63 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005922/0.1007, allocations: 4.387 MB / 330.3 MB, free: 488 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002337/0.1031, allocations: 1.247 MB / 331.6 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000469/0.1036, allocations: 11.94 kB / 331.6 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004636/0.1041, allocations: 115.2 kB / 331.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000719/0.1048, allocations: 230.2 kB / 331.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004695/0.1053, allocations: 171.8 kB / 332.1 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.1063, allocations: 0.8866 MB / 333 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.1066, allocations: 220.8 kB / 333.2 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004823/0.1071, allocations: 338.7 kB / 333.5 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.1076, allocations: 390.3 kB / 333.9 MB, free: 12.87 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.1078, allocations: 52 kB / 334 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.1079, allocations: 60 kB / 334 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.1081, allocations: 151.4 kB / 334.2 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004254/0.1085, allocations: 394.1 kB / 334.6 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007252/0.1092, allocations: 0.8797 MB / 335.4 MB, free: 11.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1093, allocations: 0 / 335.4 MB, free: 11.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1093, allocations: 0 / 335.4 MB, free: 11.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.196e-05/0.1093, allocations: 0 / 335.4 MB, free: 11.34 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002108/0.1114, allocations: 1.113 MB / 336.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1115, allocations: 15.97 kB / 336.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.1116, allocations: 88.09 kB / 336.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006939/0.1123, allocations: 484.5 kB / 337.1 MB, free: 9.551 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.1125, allocations: 101 kB / 337.2 MB, free: 9.441 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/0.1126, allocations: 44.38 kB / 337.3 MB, free: 9.398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.1138, allocations: 0.6516 MB / 337.9 MB, free: 8.672 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.1138, allocations: 0 / 337.9 MB, free: 8.672 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-05/0.1139, allocations: 20 kB / 337.9 MB, free: 8.652 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1139, allocations: 15.94 kB / 338 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.115, allocations: 451.7 kB / 338.4 MB, free: 8.199 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.003104/0.1181, allocations: 1.948 MB / 340.3 MB, free: 6.121 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/0.1201, allocations: 0.6868 MB / 341 MB, free: 5.41 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005595/0.1206, allocations: 270.1 kB / 341.3 MB, free: 5.145 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.043e-05/0.1207, allocations: 8.422 kB / 341.3 MB, free: 5.137 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.1207, allocations: 51 kB / 341.4 MB, free: 5.078 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.024e-06/0.1207, allocations: 0 / 341.4 MB, free: 5.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.005022/0.1258, allocations: 1.48 MB / 342.8 MB, free: 3.523 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002356/0.126, allocations: 0.5721 MB / 343.4 MB, free: 2.816 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006431/0.1267, allocations: 0.5342 MB / 343.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.1267, allocations: 41.7 kB / 344 MB, free: 2.227 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.127, allocations: 284.5 kB / 344.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.1271, allocations: 189.3 kB / 344.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.1273, allocations: 102.2 kB / 344.5 MB, free: 1.648 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1275, allocations: 382.6 kB / 344.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005008/0.128, allocations: 197 kB / 345.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006635/0.1286, allocations: 412.3 kB / 345.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009997/0.1297, allocations: 492.5 kB / 346 MB, free: 96 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1297, allocations: 0 / 346 MB, free: 96 kB / 286.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002275/0.1319, allocations: 0.8107 MB / 346.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.132, allocations: 33.7 kB / 346.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.132, allocations: 0 / 346.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009987/0.133, allocations: 218.4 kB / 347.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007192/0.1338, allocations: 123.8 kB / 347.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007053/0.1408, allocations: 5.167 MB / 352.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006476/0.1415, allocations: 71.55 kB / 352.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.1415, allocations: 20 kB / 352.4 MB, free: 9.219 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002987/0.1419, allocations: 189.8 kB / 352.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.142, allocations: 75.14 kB / 352.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.1443, allocations: 0.7772 MB / 353.5 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1443, allocations: 4 kB / 353.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1443, allocations: 8 kB / 353.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002196/0.1465, allocations: 1.035 MB / 354.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.1498, allocations: 1.502 MB / 356 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.1498, allocations: 0 / 356 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007686/0.1506, allocations: 139.8 kB / 356.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008722/0.1515, allocations: 169.8 kB / 356.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.1515, allocations: 8 kB / 356.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005348/0.1569, allocations: 3.482 MB / 359.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1569, allocations: 0 / 359.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003148/0.1601, allocations: 1.074 MB / 360.9 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004723/0.1606, allocations: 204.2 kB / 361.1 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.1608, allocations: 16 kB / 361.1 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000613/0.1614, allocations: 39.95 kB / 361.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.1616, allocations: 40.73 kB / 361.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.791e-05/0.1616, allocations: 15.98 kB / 361.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006547/0.1623, allocations: 386.8 kB / 361.6 MB, free: 15.56 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.078e-06/0.1623, allocations: 0 / 361.6 MB, free: 15.56 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001067/0.1634, allocations: 227.6 kB / 361.8 MB, free: 15.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002152/0.1636, allocations: 123.1 kB / 361.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002528/0.1661, allocations: 1.014 MB / 362.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.1661, allocations: 0 / 362.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.1672, allocations: 0.5395 MB / 363.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009561/0.1681, allocations: 170.4 kB / 363.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.1709, allocations: 1.493 MB / 365.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005628/0.1715, allocations: 0.8917 MB / 366 MB, free: 10.97 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00043/0.172, allocations: 81.12 kB / 366.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.1721, allocations: 51.44 kB / 366.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1721, allocations: 0 / 366.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of Templates: time 0.1647/0.3368, allocations: 13.04 MB / 379.2 MB, free: 52.77 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)