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.007085/0.007086, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001285/0.001285, allocations: 197.1 kB / 16.67 MB, free: 5.969 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.605/1.605, allocations: 205.1 MB / 222.6 MB, free: 4.367 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.001203/0.001203, allocations: 49.31 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09649/0.0977, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005616/0.1034, allocations: 4.357 MB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.1056, allocations: 1.266 MB / 378.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002348/0.1059, allocations: 8 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.1062, allocations: 134.8 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005425/0.1068, allocations: 265.8 kB / 379.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004206/0.1072, allocations: 195.6 kB / 379.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009336/0.1082, allocations: 0.9414 MB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003475/0.1085, allocations: 240.5 kB / 380.6 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004259/0.1089, allocations: 366.7 kB / 380.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.1094, allocations: 402.3 kB / 381.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.1095, allocations: 76 kB / 381.4 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.1097, allocations: 76 kB / 381.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.1098, allocations: 179.3 kB / 381.6 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003858/0.1102, allocations: 418.1 kB / 382 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008929/0.1111, allocations: 0.9221 MB / 383 MB, free: 7.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1111, allocations: 4 kB / 383 MB, free: 7.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1111, allocations: 0 / 383 MB, free: 7.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1112, allocations: 0 / 383 MB, free: 7.445 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.001858/0.113, allocations: 1.132 MB / 384.1 MB, free: 6.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.1131, allocations: 8.031 kB / 384.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.1132, allocations: 92.42 kB / 384.2 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007524/0.1139, allocations: 481.1 kB / 384.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.1141, allocations: 104.9 kB / 384.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.264e-05/0.1142, allocations: 48.38 kB / 384.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.1153, allocations: 0.6477 MB / 385.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.1154, allocations: 11.94 kB / 385.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.1154, allocations: 16 kB / 385.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.1154, allocations: 12 kB / 385.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.1165, allocations: 451.6 kB / 385.9 MB, free: 4.277 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.002818/0.1193, allocations: 1.944 MB / 387.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.1212, allocations: 0.6862 MB / 388.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000544/0.1217, allocations: 267.7 kB / 388.8 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.037e-05/0.1218, allocations: 20.41 kB / 388.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.1218, allocations: 46.89 kB / 388.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 1.583e-06/0.1218, allocations: 0 / 388.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004868/0.1267, allocations: 1.48 MB / 390.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002419/0.127, allocations: 0.5643 MB / 390.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006185/0.1276, allocations: 0.5381 MB / 391.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.123e-05/0.1276, allocations: 41.7 kB / 391.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.1278, allocations: 289.1 kB / 391.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.128, allocations: 198.3 kB / 392 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/0.1282, allocations: 106.2 kB / 392.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1283, allocations: 374.8 kB / 392.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005124/0.1289, allocations: 193 kB / 392.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006954/0.1296, allocations: 416.3 kB / 393.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.1306, allocations: 488.5 kB / 393.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1307, allocations: 0 / 393.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002234/0.1329, allocations: 0.8226 MB / 394.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.1329, allocations: 33.7 kB / 394.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.1329, allocations: 0 / 394.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009732/0.1339, allocations: 226.4 kB / 394.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000684/0.1346, allocations: 127.8 kB / 394.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007209/0.1418, allocations: 5.611 MB / 400.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006561/0.1425, allocations: 75.62 kB / 400.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.1426, allocations: 19.98 kB / 400.4 MB, free: 4.801 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.000276/0.1428, allocations: 201.6 kB / 400.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.143, allocations: 71.58 kB / 400.7 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.1452, allocations: 0.7812 MB / 401.5 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1452, allocations: 4 kB / 401.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.1452, allocations: 0 / 401.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002145/0.1474, allocations: 1.039 MB / 402.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.1505, allocations: 1.513 MB / 404.1 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.1505, allocations: 4.125 kB / 404.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/0.1512, allocations: 123.8 kB / 404.2 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008197/0.1521, allocations: 173.5 kB / 404.3 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/0.1521, allocations: 19.98 kB / 404.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005629/0.1578, allocations: 3.803 MB / 408.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1578, allocations: 0 / 408.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/0.1606, allocations: 1.063 MB / 409.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/0.161, allocations: 208.5 kB / 409.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.063e-05/0.1611, allocations: 16 kB / 409.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000496/0.1616, allocations: 31.97 kB / 409.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.1617, allocations: 48.44 kB / 409.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.1618, allocations: 19.92 kB / 409.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000536/0.1623, allocations: 386.8 kB / 409.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1623, allocations: 0 / 409.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008168/0.1632, allocations: 219.8 kB / 410.1 MB, free: 10.58 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.0001549/0.1633, allocations: 115.2 kB / 410.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002307/0.1656, allocations: 1.038 MB / 411.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1656, allocations: 0 / 411.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.1667, allocations: 0.5318 MB / 411.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007952/0.1675, allocations: 198.7 kB / 412 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.1697, allocations: 1.292 MB / 413.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004447/0.1702, allocations: 0.8879 MB / 414.2 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003057/0.1705, allocations: 81.12 kB / 414.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.1707, allocations: 59.42 kB / 414.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1707, allocations: 0 / 414.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of Templates: time 0.02273/0.1934, allocations: 14.2 MB / 428.5 MB, free: 8.008 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)