Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007397/0.007397, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001163/0.001163, allocations: 195.5 kB / 16.67 MB, free: 5.52 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.482/1.482, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.001206/0.001206, allocations: 51.94 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1234, allocations: 46.62 MB / 373.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.3019/0.4254, allocations: 4.819 MB / 378 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.4289, allocations: 1.405 MB / 379.4 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003973/0.4293, allocations: 6.812 kB / 379.4 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004541/0.4299, allocations: 156.9 kB / 379.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008238/0.4307, allocations: 338.7 kB / 379.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.4314, allocations: 213.1 kB / 380.1 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.4327, allocations: 1.034 MB / 381.1 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006861/0.4334, allocations: 299.6 kB / 381.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009441/0.4344, allocations: 399.3 kB / 381.8 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006534/0.435, allocations: 451.3 kB / 382.2 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.4352, allocations: 87.53 kB / 382.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.4354, allocations: 94.34 kB / 382.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.4356, allocations: 198.1 kB / 382.6 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000524/0.4361, allocations: 476.1 kB / 383.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001558/0.4377, allocations: 1.077 MB / 384.1 MB, free: 8.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.4377, allocations: 5.688 kB / 384.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4377, allocations: 0 / 384.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.4378, allocations: 0 / 384.2 MB, free: 8.086 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002741/0.4405, allocations: 1.218 MB / 385.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.636e-05/0.4406, allocations: 12.72 kB / 385.4 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/0.4409, allocations: 97.52 kB / 385.5 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.442, allocations: 0.5096 MB / 386 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.4422, allocations: 102.9 kB / 386.1 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.4423, allocations: 51.67 kB / 386.1 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.4439, allocations: 0.7951 MB / 386.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.4439, allocations: 1.5 kB / 386.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.41e-05/0.444, allocations: 29.19 kB / 387 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.444, allocations: 12.34 kB / 387 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.4455, allocations: 0.499 MB / 387.5 MB, free: 6.008 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.003876/0.4494, allocations: 2.148 MB / 389.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.4508, allocations: 0.5274 MB / 390.2 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006176/0.4514, allocations: 267 kB / 390.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.137e-05/0.4515, allocations: 20.56 kB / 390.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008277/0.4523, allocations: 317.6 kB / 390.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 3.356e-06/0.4523, allocations: 4 kB / 390.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005655/0.458, allocations: 1.491 MB / 392.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002564/0.4583, allocations: 0.8222 MB / 393.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000967/0.4593, allocations: 0.5954 MB / 393.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.4594, allocations: 40.67 kB / 393.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/0.4597, allocations: 332 kB / 394 MB, free: 2.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.4599, allocations: 187.6 kB / 394.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002389/0.4601, allocations: 135 kB / 394.3 MB, free: 1.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.4603, allocations: 380.7 kB / 394.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006057/0.4609, allocations: 207 kB / 394.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008523/0.4618, allocations: 0.5168 MB / 395.4 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.463, allocations: 0.5618 MB / 396 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.463, allocations: 2.516 kB / 396 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002365/0.4654, allocations: 0.9044 MB / 396.9 MB, free: 248 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.968e-05/0.4655, allocations: 65.48 kB / 397 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.4655, allocations: 2.75 kB / 397 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008126/0.4663, allocations: 222.1 kB / 397.2 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/0.467, allocations: 116.2 kB / 397.3 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007623/0.4746, allocations: 4.587 MB / 401.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.4758, allocations: 85.17 kB / 402 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.955e-05/0.4759, allocations: 22.58 kB / 402 MB, free: 12.38 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * 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: 2 * 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 {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000459/0.4764, allocations: 216.5 kB / 402.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.4766, allocations: 81.5 kB / 402.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002373/0.4768, allocations: 81.64 kB / 402.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.4768, allocations: 9.828 kB / 402.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4768, allocations: 1.25 kB / 402.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002576/0.4794, allocations: 1.05 MB / 403.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0039/0.4833, allocations: 1.537 MB / 405 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.4834, allocations: 0 / 405 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006515/0.484, allocations: 111.4 kB / 405.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005865/0.4846, allocations: 168.8 kB / 405.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-05/0.4847, allocations: 19.55 kB / 405.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005918/0.4906, allocations: 3.926 MB / 409.2 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4907, allocations: 0 / 409.2 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.494, allocations: 1.027 MB / 410.2 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007224/0.4947, allocations: 217.9 kB / 410.4 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/0.495, allocations: 13.88 kB / 410.4 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007933/0.4958, allocations: 41.89 kB / 410.5 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.496, allocations: 54.77 kB / 410.5 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.634e-05/0.4961, allocations: 18.33 kB / 410.5 MB, free: 5.609 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000781/0.4969, allocations: 417.7 kB / 410.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4969, allocations: 4.062 kB / 410.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001384/0.4983, allocations: 251.2 kB / 411.2 MB, free: 5.324 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002377/0.4985, allocations: 122 kB / 411.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.5011, allocations: 1.023 MB / 412.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/0.5012, allocations: 2.719 kB / 412.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.5024, allocations: 0.5449 MB / 412.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.5037, allocations: 221 kB / 413.1 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.5069, allocations: 1.306 MB / 414.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/0.5075, allocations: 0.9145 MB / 415.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004795/0.508, allocations: 92.48 kB / 415.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.5081, allocations: 53.41 kB / 415.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5081, allocations: 0 / 415.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of Templates: time 0.02752/0.5357, allocations: 16.29 MB / 431.8 MB, free: 2.734 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)