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.411/1.411, allocations: 252 MB / 267.6 MB, free: 10.91 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.001149/0.001148, allocations: 179.9 kB / 327.3 MB, free: 2.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.4 MB / 0.5783 GB, free: 20.23 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.0008187/0.0008185, allocations: 82.36 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000522/0.0005221, allocations: 11.38 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2648, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.0478/0.3127, allocations: 61.82 MB / 0.9612 GB, free: 1.906 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.03094/0.3437, allocations: 18.13 MB / 0.9789 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004338/0.3481, allocations: 79.44 kB / 0.979 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.004214/0.3523, allocations: 0.8192 MB / 0.9798 GB, free: 14.84 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.00849/0.3609, allocations: 2.102 MB / 0.9818 GB, free: 12.73 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.009899/0.3708, allocations: 2.756 MB / 0.9845 GB, free: 9.992 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.01003/0.3808, allocations: 5.965 MB / 0.9904 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003913/0.3848, allocations: 1.352 MB / 0.9917 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005217/0.3901, allocations: 1.665 MB / 0.9933 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003429/0.3935, allocations: 1.376 MB / 0.9946 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0008119/0.3944, allocations: 76 kB / 0.9947 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005077/0.3995, allocations: 1.559 MB / 0.9962 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.001356/0.4009, allocations: 430.2 kB / 0.9967 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.001811/0.4027, allocations: 448.5 kB / 0.9971 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.006695/0.4095, allocations: 2.716 MB / 0.9997 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.4095, allocations: 0 / 0.9997 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.375e-06/0.4095, allocations: 0 / 0.9997 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0001648/0.4097, allocations: 0 / 0.9997 GB, free: 10.35 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.007101/0.4168, allocations: 2.357 MB / 1.002 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.4169, allocations: 12.03 kB / 1.002 GB, free: 7.906 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002267/0.4192, allocations: 385 kB / 1.002 GB, free: 7.527 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005573/0.4248, allocations: 1.731 MB / 1.004 GB, free: 5.746 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004851/0.4253, allocations: 162.4 kB / 1.004 GB, free: 5.586 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005657/0.4259, allocations: 139.9 kB / 1.004 GB, free: 5.449 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004284/0.4302, allocations: 1.458 MB / 1.006 GB, free: 3.898 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-05/0.4303, allocations: 7.938 kB / 1.006 GB, free: 3.891 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002597/0.4305, allocations: 55.94 kB / 1.006 GB, free: 3.836 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.513e-05/0.4306, allocations: 32 kB / 1.006 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.4339, allocations: 1.137 MB / 1.007 GB, free: 2.66 MB / 0.6511 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.01352/0.4475, allocations: 7.374 MB / 1.014 GB, free: 10.71 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.4502, allocations: 1.362 MB / 1.016 GB, free: 9.234 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.4514, allocations: 462.6 kB / 1.016 GB, free: 8.777 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005449/0.4568, allocations: 2.592 MB / 1.019 GB, free: 5.957 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001269/0.4581, allocations: 0.4908 MB / 1.019 GB, free: 5.445 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008735/0.4591, allocations: 91.33 kB / 1.019 GB, free: 5.355 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=63): time 4.989e-06/0.4591, allocations: 0 / 1.019 GB, free: 5.355 MB / 0.6667 GB Notification: Performance of matching and sorting (n=63): time 0.003839/0.4629, allocations: 1.288 MB / 1.02 GB, free: 4.039 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.4631, allocations: 192.5 kB / 1.021 GB, free: 3.809 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/0.4663, allocations: 1.502 MB / 1.022 GB, free: 2.309 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001872/0.4665, allocations: 45.7 kB / 1.022 GB, free: 2.258 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.4676, allocations: 0.8997 MB / 1.023 GB, free: 1.348 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003607/0.4679, allocations: 220.8 kB / 1.023 GB, free: 1.129 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.4681, allocations: 20 kB / 1.023 GB, free: 1.109 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001924/0.4683, allocations: 341.9 kB / 1.023 GB, free: 0.7695 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.4695, allocations: 397.7 kB / 1.024 GB, free: 392 kB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.471, allocations: 0.7537 MB / 1.025 GB, free: 15.46 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.4723, allocations: 0.504 MB / 1.025 GB, free: 14.95 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.4723, allocations: 0 / 1.025 GB, free: 14.95 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00329/0.4756, allocations: 1.315 MB / 1.026 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003747/0.476, allocations: 413.7 kB / 1.027 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.063e-05/0.476, allocations: 12 kB / 1.027 GB, free: 13.06 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.212e-05/0.4761, allocations: 16 kB / 1.027 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.4771, allocations: 259.6 kB / 1.027 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.138e-05/0.4772, allocations: 19.88 kB / 1.027 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.479, allocations: 140.4 kB / 1.027 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.4791, allocations: 55.98 kB / 1.027 GB, free: 12.58 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.4792, allocations: 4 kB / 1.027 GB, free: 12.58 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002674/0.4818, allocations: 1.136 MB / 1.028 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.393e-05/0.4819, allocations: 20.08 kB / 1.028 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/0.4819, allocations: 16 kB / 1.028 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.4829, allocations: 251.6 kB / 1.029 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.744e-05/0.483, allocations: 27.86 kB / 1.029 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.4846, allocations: 132.4 kB / 1.029 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.4848, allocations: 51.98 kB / 1.029 GB, free: 10.94 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 ($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 (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001121/0.4859, allocations: 495.9 kB / 1.029 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005201/0.4865, allocations: 165.9 kB / 1.029 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.4896, allocations: 1.115 MB / 1.031 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.498e-05/0.4896, allocations: 15.95 kB / 1.031 GB, free: 9.145 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.4897, allocations: 4 kB / 1.031 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001944/0.4916, allocations: 0.8159 MB / 1.031 GB, free: 8.309 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.006613/0.4982, allocations: 2.701 MB / 1.034 GB, free: 5.523 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.4983, allocations: 4 kB / 1.034 GB, free: 5.52 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008017/0.4991, allocations: 164 kB / 1.034 GB, free: 5.359 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000234/0.4994, allocations: 32.83 kB / 1.034 GB, free: 5.324 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.797e-05/0.4995, allocations: 23.98 kB / 1.034 GB, free: 5.301 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/0.5009, allocations: 1.378 MB / 1.036 GB, free: 3.789 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.5009, allocations: 0 / 1.036 GB, free: 3.789 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003915/0.5048, allocations: 1.635 MB / 1.037 GB, free: 2.109 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/0.5061, allocations: 370.5 kB / 1.038 GB, free: 1.727 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006728/0.5068, allocations: 23.98 kB / 1.038 GB, free: 1.703 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/0.5084, allocations: 115.9 kB / 1.038 GB, free: 1.59 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.5086, allocations: 60.41 kB / 1.038 GB, free: 1.527 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.5087, allocations: 36.11 kB / 1.038 GB, free: 1.492 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002619/0.5114, allocations: 1.079 MB / 1.039 GB, free: 400 kB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5114, allocations: 0 / 1.039 GB, free: 400 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004647/0.516, allocations: 0.9939 MB / 1.04 GB, free: 15.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001922/0.518, allocations: 0.5189 MB / 1.04 GB, free: 14.87 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.004568/0.5226, allocations: 1.707 MB / 1.042 GB, free: 13.14 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.5227, allocations: 7.938 kB / 1.042 GB, free: 13.13 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001505/0.5242, allocations: 0.5609 MB / 1.042 GB, free: 12.55 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005501/0.5297, allocations: 0.8793 MB / 1.043 GB, free: 11.69 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008655/0.5384, allocations: 3.957 MB / 1.047 GB, free: 7.668 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001662/0.5401, allocations: 1.392 MB / 1.049 GB, free: 6.246 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007122/0.5408, allocations: 155.4 kB / 1.049 GB, free: 6.094 MB / 0.698 GB Notification: Performance of SimCode: time 1.072e-06/0.5409, allocations: 0 / 1.049 GB, free: 6.094 MB / 0.698 GB Notification: Performance of Templates: time 0.5505/1.091, allocations: 35.71 MB / 1.084 GB, free: 130.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)