Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.385/1.385, allocations: 251.5 MB / 267.4 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009666/0.0009666, allocations: 176.6 kB / 326.5 MB, free: 2.676 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.75/1.75, allocations: 205 MB / 0.5766 GB, free: 20.96 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008026/0.0008026, allocations: 82.33 kB / 0.6803 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003259/0.0003258, allocations: 11.59 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2229, allocations: 105.4 MB / 0.8967 GB, free: 68.13 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05269/0.2756, allocations: 66.33 MB / 0.9615 GB, free: 1.57 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.03332/0.309, allocations: 19.76 MB / 0.9808 GB, free: 13.77 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00602/0.3151, allocations: 79.5 kB / 0.9809 GB, free: 13.69 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.004139/0.3192, allocations: 1.018 MB / 0.9819 GB, free: 12.66 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.008055/0.3273, allocations: 2.433 MB / 0.9843 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.009232/0.3366, allocations: 3.133 MB / 0.9873 GB, free: 7.109 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.008678/0.3453, allocations: 6.984 MB / 0.9941 GB, free: 108 kB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004417/0.3497, allocations: 1.554 MB / 0.9957 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004799/0.3545, allocations: 1.75 MB / 0.9974 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002584/0.3571, allocations: 1.454 MB / 0.9988 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0005218/0.3577, allocations: 80 kB / 0.9989 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004486/0.3622, allocations: 1.914 MB / 1.001 GB, free: 9.285 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0007722/0.363, allocations: 454 kB / 1.001 GB, free: 8.84 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.001884/0.3649, allocations: 1.01 MB / 1.002 GB, free: 7.824 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.004127/0.369, allocations: 2.763 MB / 1.005 GB, free: 5.055 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.369, allocations: 7.938 kB / 1.005 GB, free: 5.047 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.934e-06/0.369, allocations: 3.938 kB / 1.005 GB, free: 5.043 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.000126/0.3692, allocations: 0 / 1.005 GB, free: 5.043 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.005365/0.3745, allocations: 2.333 MB / 1.007 GB, free: 2.637 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3746, allocations: 8.031 kB / 1.007 GB, free: 2.629 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001912/0.3765, allocations: 397.9 kB / 1.008 GB, free: 2.238 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004257/0.3808, allocations: 1.796 MB / 1.009 GB, free: 400 kB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004103/0.3812, allocations: 158.4 kB / 1.009 GB, free: 240 kB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003341/0.3816, allocations: 140 kB / 1.01 GB, free: 100 kB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003314/0.3849, allocations: 1.469 MB / 1.011 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.53e-05/0.385, allocations: 0 / 1.011 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001651/0.3852, allocations: 63.88 kB / 1.011 GB, free: 14.47 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.233e-05/0.3852, allocations: 32 kB / 1.011 GB, free: 14.44 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.3881, allocations: 1.141 MB / 1.012 GB, free: 13.29 MB / 0.6667 GB 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.0113/0.3994, allocations: 7.389 MB / 1.019 GB, free: 5.328 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002435/0.4019, allocations: 1.362 MB / 1.021 GB, free: 3.852 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009972/0.4029, allocations: 462.6 kB / 1.021 GB, free: 3.395 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004999/0.4079, allocations: 2.596 MB / 1.024 GB, free: 0.5703 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001243/0.4092, allocations: 0.4986 MB / 1.024 GB, free: 52 kB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008724/0.4101, allocations: 91.33 kB / 1.024 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 4.148e-06/0.4102, allocations: 0 / 1.024 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.003697/0.4139, allocations: 1.288 MB / 1.026 GB, free: 14.64 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.414, allocations: 192.4 kB / 1.026 GB, free: 14.41 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002869/0.4169, allocations: 1.521 MB / 1.027 GB, free: 12.89 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.417, allocations: 45.7 kB / 1.027 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008963/0.4179, allocations: 0.9036 MB / 1.028 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002447/0.4182, allocations: 220.8 kB / 1.028 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.4184, allocations: 97.66 kB / 1.028 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.4186, allocations: 345.9 kB / 1.029 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.4196, allocations: 401.8 kB / 1.029 GB, free: 10.87 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.421, allocations: 0.781 MB / 1.03 GB, free: 9.922 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002306/0.4234, allocations: 1.156 MB / 1.031 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.246e-05/0.4234, allocations: 0 / 1.031 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003224/0.4266, allocations: 1.35 MB / 1.032 GB, free: 7.266 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003329/0.427, allocations: 413.4 kB / 1.033 GB, free: 6.719 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/0.427, allocations: 12 kB / 1.033 GB, free: 6.707 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.713e-05/0.4271, allocations: 20 kB / 1.033 GB, free: 6.688 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.4281, allocations: 255.6 kB / 1.033 GB, free: 6.438 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.778e-05/0.4281, allocations: 23.88 kB / 1.033 GB, free: 6.414 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.4296, allocations: 140.4 kB / 1.033 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.4298, allocations: 51.98 kB / 1.033 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.4298, allocations: 6.5 kB / 1.033 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002483/0.4323, allocations: 1.155 MB / 1.034 GB, free: 5.059 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/0.4323, allocations: 11.98 kB / 1.034 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.4323, allocations: 16.59 kB / 1.034 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009315/0.4333, allocations: 247.6 kB / 1.035 GB, free: 4.789 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.418e-05/0.4333, allocations: 23.92 kB / 1.035 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.4348, allocations: 136.5 kB / 1.035 GB, free: 4.633 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.4349, allocations: 55.92 kB / 1.035 GB, free: 4.578 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001013/0.436, allocations: 492.7 kB / 1.035 GB, free: 4.086 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004734/0.4364, allocations: 169.8 kB / 1.035 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/0.4391, allocations: 1.112 MB / 1.037 GB, free: 2.793 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.876e-05/0.4392, allocations: 8 kB / 1.037 GB, free: 2.785 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.4392, allocations: 4 kB / 1.037 GB, free: 2.781 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00181/0.441, allocations: 0.8238 MB / 1.037 GB, free: 1.941 MB / 0.6823 GB 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 postOpt removeSimpleEquations (simulation): time 0.005506/0.4465, allocations: 2.693 MB / 1.04 GB, free: 15.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.4466, allocations: 4 kB / 1.04 GB, free: 15.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007564/0.4473, allocations: 164 kB / 1.04 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002035/0.4475, allocations: 40.75 kB / 1.04 GB, free: 14.96 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.774e-05/0.4476, allocations: 31.98 kB / 1.04 GB, free: 14.93 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.4488, allocations: 1.367 MB / 1.042 GB, free: 13.43 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.4488, allocations: 3.984 kB / 1.042 GB, free: 13.42 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.4523, allocations: 1.65 MB / 1.043 GB, free: 11.73 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009088/0.4533, allocations: 354.5 kB / 1.044 GB, free: 11.36 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004971/0.4538, allocations: 20 kB / 1.044 GB, free: 11.34 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.4551, allocations: 123.8 kB / 1.044 GB, free: 11.22 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.4553, allocations: 60.42 kB / 1.044 GB, free: 11.16 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.054e-05/0.4554, allocations: 35.97 kB / 1.044 GB, free: 11.12 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.002155/0.4576, allocations: 1.098 MB / 1.045 GB, free: 10 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4576, allocations: 3.938 kB / 1.045 GB, free: 10 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003209/0.4608, allocations: 0.9862 MB / 1.046 GB, free: 9.012 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00143/0.4622, allocations: 0.5373 MB / 1.046 GB, free: 8.469 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003726/0.466, allocations: 1.73 MB / 1.048 GB, free: 6.707 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.466, allocations: 0 / 1.048 GB, free: 6.707 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.4672, allocations: 0.5729 MB / 1.049 GB, free: 6.117 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004855/0.4721, allocations: 0.8647 MB / 1.049 GB, free: 5.262 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006567/0.4787, allocations: 3.946 MB / 1.053 GB, free: 1.258 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.367/0.8457, allocations: 1.392 MB / 1.055 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006585/0.8464, allocations: 152.7 kB / 1.055 GB, free: 147.3 MB / 0.698 GB Notification: Performance of SimCode: time 1.543e-06/0.8464, allocations: 0 / 1.055 GB, free: 147.3 MB / 0.698 GB Notification: Performance of Templates: time 0.05694/0.9033, allocations: 35.71 MB / 1.09 GB, free: 133.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)