Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.008499/0.008499, allocations: 99.17 kB / 15.73 MB, free: 6.5 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.001702/0.001703, allocations: 194.4 kB / 16.67 MB, free: 6.391 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.598/1.598, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001298/0.001298, allocations: 52.95 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09949/0.1008, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005368/0.1062, allocations: 4.353 MB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.1085, allocations: 1.266 MB / 378.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002608/0.1088, allocations: 7.938 kB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003795/0.1092, allocations: 130.8 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005186/0.1097, allocations: 261.8 kB / 379.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/0.1101, allocations: 195.7 kB / 379.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009293/0.1111, allocations: 0.9375 MB / 380.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003695/0.1115, allocations: 244.5 kB / 380.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004649/0.1119, allocations: 362.7 kB / 380.9 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004449/0.1124, allocations: 410.3 kB / 381.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.1125, allocations: 76 kB / 381.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.1127, allocations: 76 kB / 381.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1128, allocations: 163.4 kB / 381.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003661/0.1132, allocations: 426 kB / 382 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008974/0.1141, allocations: 0.926 MB / 382.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1141, allocations: 0 / 382.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1141, allocations: 0 / 382.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.1141, allocations: 4 kB / 383 MB, free: 7.48 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.001901/0.116, allocations: 1.124 MB / 384.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1161, allocations: 8.031 kB / 384.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.1162, allocations: 92.42 kB / 384.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006838/0.1169, allocations: 489.1 kB / 384.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.1171, allocations: 96.95 kB / 384.7 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.1172, allocations: 48.31 kB / 384.8 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.1182, allocations: 0.6515 MB / 385.4 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.1183, allocations: 15.89 kB / 385.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.195e-05/0.1184, allocations: 20 kB / 385.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.1184, allocations: 15.98 kB / 385.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.1194, allocations: 443.7 kB / 385.9 MB, free: 4.312 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.002823/0.1222, allocations: 1.948 MB / 387.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/0.1241, allocations: 0.6906 MB / 388.6 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005541/0.1247, allocations: 263.1 kB / 388.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.906e-05/0.1247, allocations: 16.41 kB / 388.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.1248, allocations: 46.95 kB / 388.9 MB, free: 1.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 1.904e-06/0.1248, allocations: 7.938 kB / 388.9 MB, free: 1.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004842/0.1296, allocations: 1.476 MB / 390.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002232/0.1299, allocations: 0.5683 MB / 390.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006039/0.1305, allocations: 0.5381 MB / 391.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.152e-05/0.1305, allocations: 37.7 kB / 391.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/0.1308, allocations: 289.2 kB / 391.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.1309, allocations: 190.2 kB / 392 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.1311, allocations: 114.2 kB / 392.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1313, allocations: 366.8 kB / 392.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004961/0.1318, allocations: 201 kB / 392.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006829/0.1325, allocations: 416.2 kB / 393.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.1335, allocations: 492.5 kB / 393.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1335, allocations: 0 / 393.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002203/0.1357, allocations: 0.8149 MB / 394.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.1358, allocations: 29.7 kB / 394.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.1358, allocations: 8.031 kB / 394.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.1368, allocations: 222.3 kB / 394.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006943/0.1375, allocations: 127.8 kB / 394.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007868/0.1454, allocations: 5.619 MB / 400.3 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008115/0.1463, allocations: 71.69 kB / 400.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.1463, allocations: 19.98 kB / 400.4 MB, free: 4.832 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.0003315/0.1467, allocations: 201.7 kB / 400.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.1468, allocations: 71.58 kB / 400.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/0.1491, allocations: 0.7773 MB / 401.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.1491, allocations: 8 kB / 401.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-06/0.1491, allocations: 0 / 401.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00239/0.1515, allocations: 1.039 MB / 402.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003308/0.1548, allocations: 1.509 MB / 404 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.1548, allocations: 7.922 kB / 404 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007298/0.1556, allocations: 127.8 kB / 404.2 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008898/0.1565, allocations: 173.5 kB / 404.3 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.859e-05/0.1565, allocations: 15.98 kB / 404.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005275/0.1618, allocations: 3.803 MB / 408.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1618, allocations: 4.031 kB / 408.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/0.1647, allocations: 1.067 MB / 409.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.165, allocations: 204.5 kB / 409.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.913e-05/0.1651, allocations: 15.98 kB / 409.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.1656, allocations: 35.97 kB / 409.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.1658, allocations: 40.5 kB / 409.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/0.1658, allocations: 23.92 kB / 409.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004747/0.1663, allocations: 386.8 kB / 409.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1663, allocations: 0 / 409.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007548/0.1671, allocations: 219.8 kB / 410.1 MB, free: 10.61 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.0001621/0.1672, allocations: 111.2 kB / 410.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.1696, allocations: 1.042 MB / 411.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1697, allocations: 0 / 411.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.1707, allocations: 0.5357 MB / 411.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008622/0.1715, allocations: 190.4 kB / 412 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.1742, allocations: 1.296 MB / 413.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005703/0.1747, allocations: 0.884 MB / 414.2 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003692/0.1751, allocations: 81.12 kB / 414.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.1753, allocations: 51.42 kB / 414.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1753, allocations: 3.938 kB / 414.3 MB, free: 6.266 MB / 350.1 MB Notification: Performance of Templates: time 0.02534/0.2006, allocations: 14.19 MB / 428.5 MB, free: 8.043 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)