Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) 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(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.00116/0.00116, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3834/0.3834, allocations: 54.99 MB / 325.4 MB, free: 0.6836 MB / 254.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: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005462/0.0005464, allocations: 16 kB / 396.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.334, allocations: 60.71 MB / 457.3 MB, free: 38.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03486/0.3689, allocations: 44.36 MB / 0.4899 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02102/0.39, allocations: 15.52 MB / 0.5051 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002885/0.3929, allocations: 59.38 kB / 0.5051 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003328/0.3963, allocations: 0.9308 MB / 0.506 GB, free: 156 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007848/0.4042, allocations: 2.334 MB / 0.5083 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008728/0.4129, allocations: 2.643 MB / 0.5109 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006687/0.4196, allocations: 2.677 MB / 0.5135 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.4222, allocations: 1.19 MB / 0.5147 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003707/0.4259, allocations: 1.321 MB / 0.5159 GB, free: 11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002428/0.4284, allocations: 0.9178 MB / 0.5168 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003242/0.4287, allocations: 66.94 kB / 0.5169 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004125/0.4329, allocations: 1.31 MB / 0.5182 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006526/0.4335, allocations: 384.4 kB / 0.5186 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008936/0.4345, allocations: 401.9 kB / 0.5189 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004614/0.4391, allocations: 2.376 MB / 0.5213 GB, free: 8.578 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4391, allocations: 0 / 0.5213 GB, free: 8.578 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4391, allocations: 0 / 0.5213 GB, free: 8.578 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.421e-05/0.4392, allocations: 0 / 0.5213 GB, free: 8.578 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.005078/0.4443, allocations: 2.193 MB / 0.5234 GB, free: 6.938 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.4443, allocations: 17.27 kB / 0.5234 GB, free: 6.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002328/0.4467, allocations: 482.5 kB / 0.5239 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003302/0.45, allocations: 1.482 MB / 0.5253 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003788/0.4504, allocations: 154.5 kB / 0.5255 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002103/0.4506, allocations: 119.8 kB / 0.5256 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00299/0.4536, allocations: 1.407 MB / 0.527 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.706e-05/0.4536, allocations: 1.594 kB / 0.527 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.4538, allocations: 51.28 kB / 0.527 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.387e-05/0.4538, allocations: 32.39 kB / 0.527 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002915/0.4567, allocations: 1.18 MB / 0.5282 GB, free: 3.734 MB / 398.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.009619/0.4664, allocations: 7.034 MB / 0.5351 GB, free: 12.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002853/0.4692, allocations: 1.494 MB / 0.5365 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004314/0.4736, allocations: 2.624 MB / 0.5391 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001307/0.4749, allocations: 0.5407 MB / 0.5396 GB, free: 7.059 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006833/0.4756, allocations: 87.25 kB / 0.5397 GB, free: 6.973 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 2.464e-06/0.4756, allocations: 4 kB / 0.5397 GB, free: 6.969 MB / 414.1 MB Notification: Performance of matching and sorting (n=65): time 0.00379/0.4794, allocations: 1.409 MB / 0.5411 GB, free: 5.531 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.915e-05/0.4796, allocations: 196.4 kB / 0.5413 GB, free: 5.297 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002175/0.4817, allocations: 1.559 MB / 0.5428 GB, free: 3.734 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.4819, allocations: 41.7 kB / 0.5428 GB, free: 3.688 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00075/0.4826, allocations: 0.8493 MB / 0.5437 GB, free: 2.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.4829, allocations: 228.7 kB / 0.5439 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.298e-05/0.4829, allocations: 23.98 kB / 0.5439 GB, free: 2.578 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4831, allocations: 341.9 kB / 0.5442 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.4841, allocations: 413.7 kB / 0.5446 GB, free: 1.832 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.4853, allocations: 0.7529 MB / 0.5453 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.4864, allocations: 0.5046 MB / 0.5458 GB, free: 428 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.4865, allocations: 4 kB / 0.5458 GB, free: 424 kB / 414.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.003033/0.4895, allocations: 1.331 MB / 0.5471 GB, free: 15.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001269/0.4908, allocations: 3.374 MB / 0.5504 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.552e-05/0.4908, allocations: 8 kB / 0.5504 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.383e-05/0.4909, allocations: 16.62 kB / 0.5505 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.4922, allocations: 275.6 kB / 0.5507 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000417/0.4926, allocations: 0.6171 MB / 0.5513 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.4943, allocations: 143.9 kB / 0.5515 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4944, allocations: 51.98 kB / 0.5515 GB, free: 10.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.4944, allocations: 7.953 kB / 0.5515 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00237/0.4968, allocations: 1.128 MB / 0.5526 GB, free: 9.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.4969, allocations: 8 kB / 0.5526 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.4969, allocations: 16 kB / 0.5526 GB, free: 9.113 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.498, allocations: 268.1 kB / 0.5529 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003443/0.4983, allocations: 0.6142 MB / 0.5535 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.4999, allocations: 132.9 kB / 0.5536 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.882e-05/0.5, allocations: 43.98 kB / 0.5537 GB, free: 8.043 MB / 430.1 MB Warning: Assuming fixed start value for the following 1 variables: vol.dynBal.m:VARIABLE(min = max(0.0, 0.0) start = vol.V * vol.rho_start unit = "kg" fixed = true protected = true ) "Mass of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 112 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009109/0.5009, allocations: 495.4 kB / 0.5541 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.5012, allocations: 161.9 kB / 0.5543 GB, free: 7.391 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002795/0.504, allocations: 1.249 MB / 0.5555 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/0.504, allocations: 8 kB / 0.5555 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.504, allocations: 4 kB / 0.5555 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002169/0.5062, allocations: 1.092 MB / 0.5566 GB, free: 4.969 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005036/0.5113, allocations: 2.503 MB / 0.559 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.5113, allocations: 0 / 0.559 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008524/0.5122, allocations: 171.8 kB / 0.5592 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002589/0.5124, allocations: 61.62 kB / 0.5593 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-05/0.5125, allocations: 31.97 kB / 0.5593 GB, free: 2.133 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.5139, allocations: 1.927 MB / 0.5612 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5139, allocations: 32 / 0.5612 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003956/0.5179, allocations: 1.721 MB / 0.5629 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.5192, allocations: 346.8 kB / 0.5632 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003441/0.5196, allocations: 16 kB / 0.5632 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.5207, allocations: 127.8 kB / 0.5633 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.5209, allocations: 56.56 kB / 0.5634 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-05/0.521, allocations: 27.98 kB / 0.5634 GB, free: 13.72 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001944/0.5229, allocations: 1.047 MB / 0.5644 GB, free: 12.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5229, allocations: 0 / 0.5644 GB, free: 12.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003425/0.5264, allocations: 0.9238 MB / 0.5653 GB, free: 11.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (vol.dynBal.U,vol.dynBal.m,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.heaCoo.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001867/0.5282, allocations: 0.739 MB / 0.5661 GB, free: 11.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004102/0.5324, allocations: 1.776 MB / 0.5678 GB, free: 9.379 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5324, allocations: 1.188 kB / 0.5678 GB, free: 9.379 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.5337, allocations: 0.6049 MB / 0.5684 GB, free: 8.766 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/0.537, allocations: 0.6878 MB / 0.5691 GB, free: 8.098 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006085/0.5431, allocations: 3.826 MB / 0.5728 GB, free: 4.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009704/0.5441, allocations: 1.388 MB / 0.5741 GB, free: 2.832 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001741/0.5458, allocations: 401.8 kB / 0.5745 GB, free: 2.441 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.5462, allocations: 139.4 kB / 0.5747 GB, free: 2.305 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5462, allocations: 0 / 0.5747 GB, free: 2.305 MB / 446.1 MB Notification: Performance of Templates: time 0.05182/0.598, allocations: 30 MB / 0.604 GB, free: 4.488 MB / 478.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) Environment - environmentSimulation: