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.001098/0.001098, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001048/0.001048, allocations: 184.3 kB / 17.57 MB, free: 6.199 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.565/1.565, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004556/0.0004555, allocations: 12.94 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09704, allocations: 47.58 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004756/0.1019, allocations: 4.002 MB / 332.3 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.1043, allocations: 1.177 MB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003362/0.1047, allocations: 8 kB / 333.5 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.1051, allocations: 107.3 kB / 333.6 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005638/0.1056, allocations: 234.1 kB / 333.8 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003996/0.1061, allocations: 163.8 kB / 334 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008262/0.1069, allocations: 0.8866 MB / 334.9 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003499/0.1072, allocations: 220.8 kB / 335.1 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004156/0.1077, allocations: 342.6 kB / 335.4 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.1081, allocations: 362.4 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.493e-05/0.1082, allocations: 52 kB / 335.8 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.1083, allocations: 51.94 kB / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.1084, allocations: 143.4 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003597/0.1088, allocations: 411.8 kB / 336.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007708/0.1096, allocations: 0.8639 MB / 337.3 MB, free: 10.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1096, allocations: 0 / 337.3 MB, free: 10.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1096, allocations: 7.875 kB / 337.3 MB, free: 10.7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1096, allocations: 0 / 337.3 MB, free: 10.7 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.001877/0.1115, allocations: 0.9887 MB / 338.3 MB, free: 9.648 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.1116, allocations: 12.03 kB / 338.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.1117, allocations: 88 kB / 338.4 MB, free: 9.551 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.1124, allocations: 480.6 kB / 338.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.1126, allocations: 96.95 kB / 338.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-05/0.1126, allocations: 52.31 kB / 339 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.1138, allocations: 0.6594 MB / 339.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.1139, allocations: 3.906 kB / 339.7 MB, free: 8.145 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.766e-05/0.1139, allocations: 28 kB / 339.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.1139, allocations: 12 kB / 339.7 MB, free: 8.105 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.115, allocations: 475.7 kB / 340.2 MB, free: 7.645 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.002942/0.118, allocations: 1.975 MB / 342.1 MB, free: 5.539 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001883/0.1199, allocations: 0.7256 MB / 342.9 MB, free: 4.789 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005823/0.1205, allocations: 280.1 kB / 343.1 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.919e-05/0.1205, allocations: 16.42 kB / 343.2 MB, free: 4.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.1206, allocations: 43 kB / 343.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.274e-06/0.1206, allocations: 0 / 343.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.005165/0.1257, allocations: 1.597 MB / 344.8 MB, free: 2.777 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002712/0.126, allocations: 0.5643 MB / 345.4 MB, free: 2.078 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006813/0.1267, allocations: 0.5421 MB / 345.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.1268, allocations: 41.7 kB / 345.9 MB, free: 1.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.127, allocations: 280.5 kB / 346.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.1272, allocations: 185.3 kB / 346.4 MB, free: 1.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.906e-05/0.1273, allocations: 49.69 kB / 346.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1274, allocations: 374.8 kB / 346.8 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005347/0.128, allocations: 205 kB / 347 MB, free: 396 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007513/0.1287, allocations: 436.2 kB / 347.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.1298, allocations: 0.5044 MB / 347.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1299, allocations: 4 kB / 347.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002407/0.1323, allocations: 0.8614 MB / 348.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.1323, allocations: 29.7 kB / 348.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1324, allocations: 8.031 kB / 348.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.1334, allocations: 230.3 kB / 349.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.1341, allocations: 135.8 kB / 349.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007187/0.1413, allocations: 5.238 MB / 354.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007894/0.1421, allocations: 87.55 kB / 354.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.426e-05/0.1422, allocations: 19.98 kB / 354.5 MB, free: 8.312 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.0003435/0.1425, allocations: 193.8 kB / 354.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.1427, allocations: 71.16 kB / 354.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/0.145, allocations: 0.8281 MB / 355.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.145, allocations: 4 kB / 355.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.145, allocations: 0 / 355.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002249/0.1473, allocations: 1.093 MB / 356.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.1505, allocations: 1.556 MB / 358.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1505, allocations: 0 / 358.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007554/0.1513, allocations: 139.8 kB / 358.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008639/0.1522, allocations: 189.6 kB / 358.6 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.1522, allocations: 11.98 kB / 358.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004807/0.157, allocations: 3.54 MB / 362.2 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.157, allocations: 4.391 kB / 362.2 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002831/0.1599, allocations: 1.136 MB / 363.3 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002537/0.1601, allocations: 200.2 kB / 363.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.567e-05/0.1602, allocations: 23.98 kB / 363.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005226/0.1608, allocations: 39.97 kB / 363.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1609, allocations: 40.5 kB / 363.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.1609, allocations: 15.98 kB / 363.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004298/0.1614, allocations: 390.8 kB / 364 MB, free: 14.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1614, allocations: 3.938 kB / 364 MB, free: 14.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007165/0.1621, allocations: 219.7 kB / 364.2 MB, free: 14.12 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.0001381/0.1622, allocations: 111.2 kB / 364.3 MB, free: 14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.1645, allocations: 1.073 MB / 365.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1645, allocations: 4 kB / 365.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009684/0.1655, allocations: 0.5435 MB / 365.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008335/0.1663, allocations: 178.4 kB / 366.1 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.1684, allocations: 1.602 MB / 367.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.1688, allocations: 0.884 MB / 368.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003191/0.1691, allocations: 85.12 kB / 368.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.1693, allocations: 51.42 kB / 368.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1693, allocations: 0 / 368.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of Templates: time 0.1802/0.3495, allocations: 12.93 MB / 381.7 MB, free: 49.84 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)