Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.00937/0.00937, allocations: 102.1 kB / 15.73 MB, free: 6.492 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.001856/0.001856, allocations: 191.7 kB / 16.67 MB, free: 6.379 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.531/1.531, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.001294/0.001294, allocations: 54.02 kB / 326.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 46.61 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006314/0.1095, allocations: 4.365 MB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.1123, allocations: 1.266 MB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003157/0.1126, allocations: 7.938 kB / 378.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004382/0.1131, allocations: 134.8 kB / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006079/0.1137, allocations: 261.7 kB / 379.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005078/0.1142, allocations: 191.6 kB / 379.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.1155, allocations: 0.9336 MB / 380.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.1159, allocations: 252.5 kB / 380.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004761/0.1164, allocations: 366.7 kB / 380.9 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004246/0.1168, allocations: 398.4 kB / 381.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.87e-05/0.1169, allocations: 76 kB / 381.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.1171, allocations: 80 kB / 381.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1172, allocations: 175.3 kB / 381.6 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003241/0.1175, allocations: 418.1 kB / 382 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.1186, allocations: 0.9187 MB / 382.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1186, allocations: 0 / 382.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1186, allocations: 0 / 382.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.1186, allocations: 0 / 382.9 MB, free: 7.484 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002122/0.1207, allocations: 1.117 MB / 384.1 MB, free: 6.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.1208, allocations: 12.03 kB / 384.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.121, allocations: 84 kB / 384.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007897/0.1218, allocations: 476.6 kB / 384.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.1219, allocations: 96.95 kB / 384.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.984e-05/0.122, allocations: 52.38 kB / 384.8 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.1232, allocations: 0.6438 MB / 385.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.1232, allocations: 11.84 kB / 385.4 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.711e-05/0.1233, allocations: 24 kB / 385.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1233, allocations: 8 kB / 385.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.1244, allocations: 455.6 kB / 385.9 MB, free: 4.34 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.003047/0.1274, allocations: 1.944 MB / 387.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.1293, allocations: 0.6863 MB / 388.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005404/0.1299, allocations: 266 kB / 388.8 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.883e-05/0.1299, allocations: 12.42 kB / 388.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.13, allocations: 43.56 kB / 388.8 MB, free: 1.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 3.307e-06/0.13, allocations: 3.938 kB / 388.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004919/0.1349, allocations: 1.476 MB / 390.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005092/0.1354, allocations: 0.5682 MB / 390.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006624/0.1361, allocations: 0.5382 MB / 391.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.825e-05/0.1362, allocations: 37.7 kB / 391.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.1364, allocations: 288.8 kB / 391.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002193/0.1366, allocations: 193.1 kB / 391.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.1368, allocations: 114.1 kB / 392.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.137, allocations: 370.8 kB / 392.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004922/0.1375, allocations: 193 kB / 392.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006792/0.1382, allocations: 416.3 kB / 393 MB, free: 12.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.1392, allocations: 488.5 kB / 393.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.1392, allocations: 4 kB / 393.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002214/0.1415, allocations: 0.8068 MB / 394.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.1415, allocations: 37.61 kB / 394.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1415, allocations: 0 / 394.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.1425, allocations: 230.3 kB / 394.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007035/0.1433, allocations: 127.8 kB / 394.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007574/0.1508, allocations: 5.61 MB / 400.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007269/0.1516, allocations: 79.55 kB / 400.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.712e-05/0.1517, allocations: 20 kB / 400.4 MB, free: 4.875 MB / 334.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.0003016/0.152, allocations: 193.7 kB / 400.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.1521, allocations: 71.16 kB / 400.6 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.1544, allocations: 0.7773 MB / 401.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1544, allocations: 4 kB / 401.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.1544, allocations: 4 kB / 401.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002177/0.1566, allocations: 1.039 MB / 402.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003179/0.1598, allocations: 1.501 MB / 404 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.1598, allocations: 3.938 kB / 404 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007456/0.1605, allocations: 131.8 kB / 404.1 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008286/0.1614, allocations: 173.7 kB / 404.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.1614, allocations: 15.94 kB / 404.3 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005163/0.1666, allocations: 3.791 MB / 408.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1666, allocations: 0 / 408.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/0.1695, allocations: 1.071 MB / 409.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/0.1699, allocations: 204.2 kB / 409.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.17, allocations: 12 kB / 409.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005355/0.1705, allocations: 35.97 kB / 409.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.1707, allocations: 40.5 kB / 409.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.734e-05/0.1707, allocations: 23.92 kB / 409.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000483/0.1712, allocations: 386.8 kB / 409.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1712, allocations: 3.938 kB / 409.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008007/0.172, allocations: 219.7 kB / 410.1 MB, free: 10.68 MB / 350.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.0001675/0.1723, allocations: 115.3 kB / 410.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.1747, allocations: 1.034 MB / 411.2 MB, free: 9.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.1747, allocations: 8.188 kB / 411.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.1757, allocations: 0.5277 MB / 411.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008764/0.1766, allocations: 190.5 kB / 411.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.1794, allocations: 1.271 MB / 413.2 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005695/0.18, allocations: 0.884 MB / 414.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004333/0.1804, allocations: 85.12 kB / 414.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.1806, allocations: 55.42 kB / 414.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1806, allocations: 0 / 414.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of Templates: time 0.0277/0.2083, allocations: 14.64 MB / 428.9 MB, free: 7.695 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)