Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01025/0.01025, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.915/2.915, allocations: 462.7 MB / 0.7364 GB, free: 252 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003448, allocations: 16.3 kB / 0.9028 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3517, allocations: 159.6 MB / 1.059 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.06293/0.4147, allocations: 59.13 MB / 1.116 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02077/0.4355, allocations: 13.11 MB / 1.129 GB, free: 12.97 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00305/0.4386, allocations: 63.56 kB / 1.129 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002647/0.4413, allocations: 0.8082 MB / 1.13 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006939/0.4482, allocations: 2.161 MB / 1.132 GB, free: 9.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004079/0.4523, allocations: 1.417 MB / 1.134 GB, free: 8.52 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007873/0.4602, allocations: 5.562 MB / 1.139 GB, free: 2.941 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001824/0.4621, allocations: 1.123 MB / 1.14 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002902/0.465, allocations: 1.314 MB / 1.141 GB, free: 480 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001771/0.4668, allocations: 1.182 MB / 1.143 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.467, allocations: 60 kB / 1.143 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003286/0.4703, allocations: 1.364 MB / 1.144 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004172/0.4707, allocations: 338.4 kB / 1.144 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.4718, allocations: 0.8409 MB / 1.145 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003767/0.4755, allocations: 2.671 MB / 1.148 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4756, allocations: 0 / 1.148 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.005e-06/0.4756, allocations: 0 / 1.148 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.492e-05/0.4756, allocations: 0 / 1.148 GB, free: 9.992 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.003656/0.4793, allocations: 1.895 MB / 1.15 GB, free: 8.035 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.4793, allocations: 8.031 kB / 1.15 GB, free: 8.027 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003926/0.4833, allocations: 0.5839 MB / 1.15 GB, free: 7.441 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003173/0.4865, allocations: 1.398 MB / 1.151 GB, free: 5.988 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.4867, allocations: 145.4 kB / 1.152 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.4869, allocations: 108 kB / 1.152 GB, free: 5.73 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003144/0.49, allocations: 1.366 MB / 1.153 GB, free: 4.328 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.4901, allocations: 4 kB / 1.153 GB, free: 4.324 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.4902, allocations: 36 kB / 1.153 GB, free: 4.289 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/0.4902, allocations: 31.98 kB / 1.153 GB, free: 4.258 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003879/0.4941, allocations: 1.405 MB / 1.154 GB, free: 2.855 MB / 0.9044 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.008017/0.5022, allocations: 5.485 MB / 1.16 GB, free: 13.02 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005776/0.508, allocations: 1.49 MB / 1.161 GB, free: 11.48 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001718/0.5097, allocations: 0.6154 MB / 1.162 GB, free: 10.87 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009634/0.5107, allocations: 1.24 MB / 1.163 GB, free: 9.348 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001877/0.5126, allocations: 0.6834 MB / 1.164 GB, free: 8.652 MB / 0.92 GB Notification: Performance of pre-optimization done (n=71): time 3.407e-06/0.5126, allocations: 4 kB / 1.164 GB, free: 8.648 MB / 0.92 GB Notification: Performance of matching and sorting (n=71): time 0.02176/0.5344, allocations: 3.796 MB / 1.167 GB, free: 4.82 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.691e-05/0.5345, allocations: 56.06 kB / 1.168 GB, free: 4.754 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/0.5367, allocations: 1.279 MB / 1.169 GB, free: 3.465 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0002853/0.537, allocations: 41.7 kB / 1.169 GB, free: 3.418 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007297/0.5378, allocations: 0.6658 MB / 1.169 GB, free: 2.742 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004151/0.5382, allocations: 244.5 kB / 1.17 GB, free: 2.5 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.5384, allocations: 73.67 kB / 1.17 GB, free: 2.422 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5385, allocations: 341.9 kB / 1.17 GB, free: 2.082 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001707/0.5403, allocations: 0.5485 MB / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.5421, allocations: 0.7831 MB / 1.171 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003216/0.5453, allocations: 1.199 MB / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5453, allocations: 4 kB / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.01022/0.5555, allocations: 2.176 MB / 1.175 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001787/0.5558, allocations: 216.1 kB / 1.175 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.5558, allocations: 4 kB / 1.175 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/0.5575, allocations: 492.5 kB / 1.175 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009629/0.5585, allocations: 199.8 kB / 1.176 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01625/0.5748, allocations: 3.822 MB / 1.179 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.5768, allocations: 239 kB / 1.18 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/0.577, allocations: 35.98 kB / 1.18 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.5771, allocations: 4 kB / 1.18 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009801/0.5869, allocations: 2.02 MB / 1.182 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.5869, allocations: 4 kB / 1.182 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001607/0.5885, allocations: 496.6 kB / 1.182 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009291/0.5895, allocations: 203.7 kB / 1.182 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01616/0.6056, allocations: 3.802 MB / 1.186 GB, free: 1.387 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002136/0.6078, allocations: 239.1 kB / 1.186 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002158/0.6081, allocations: 43.97 kB / 1.186 GB, free: 1.109 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (fal.y,chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001005/0.6091, allocations: 416.8 kB / 1.187 GB, free: 0.6914 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005306/0.6096, allocations: 150.2 kB / 1.187 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/0.6199, allocations: 2.223 MB / 1.189 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.992e-05/0.62, allocations: 15.92 kB / 1.189 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.62, allocations: 0 / 1.189 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009615/0.6296, allocations: 1.992 MB / 1.191 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/0.6434, allocations: 3.988 MB / 1.195 GB, free: 8.113 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/0.6435, allocations: 4 kB / 1.195 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008083/0.6443, allocations: 171.8 kB / 1.195 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/0.6459, allocations: 496.5 kB / 1.195 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/0.6461, allocations: 27.97 kB / 1.195 GB, free: 7.426 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01634/0.6625, allocations: 3.795 MB / 1.199 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.6625, allocations: 4 kB / 1.199 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/0.6748, allocations: 3.014 MB / 1.202 GB, free: 404 kB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.676, allocations: 374.8 kB / 1.202 GB, free: 8 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004265/0.6765, allocations: 20.03 kB / 1.202 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001803/0.6783, allocations: 175.8 kB / 1.203 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/0.6785, allocations: 80.34 kB / 1.203 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.6787, allocations: 35.97 kB / 1.203 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001557/0.6802, allocations: 0.9168 MB / 1.204 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6802, allocations: 0 / 1.204 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002714/0.6829, allocations: 0.8539 MB / 1.204 GB, free: 13.93 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001272/0.6842, allocations: 0.5079 MB / 1.205 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.008273/0.6925, allocations: 2.602 MB / 1.208 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.6926, allocations: 0 / 1.208 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.003263/0.6958, allocations: 0.975 MB / 1.208 GB, free: 9.793 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006013/0.7019, allocations: 0.7718 MB / 1.209 GB, free: 9.027 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007563/0.7095, allocations: 3.463 MB / 1.213 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.7105, allocations: 1.246 MB / 1.214 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001727/0.7123, allocations: 347.5 kB / 1.214 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004152/0.7127, allocations: 127.4 kB / 1.214 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of SimCode: time 1.303e-06/0.7127, allocations: 0 / 1.214 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of Templates: time 0.6672/1.38, allocations: 40.69 MB / 1.254 GB, free: 182 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches