Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001231/0.001231, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001419/0.001419, allocations: 191.8 kB / 16.14 MB, free: 6.688 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.488/1.488, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.941/2.941, allocations: 472.6 MB / 0.7447 GB, free: 4.949 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 62.48 kB / 0.9113 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.393, allocations: 159.9 MB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.05959/0.4527, allocations: 60.24 MB / 1.126 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02178/0.4745, allocations: 13.29 MB / 1.139 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003823/0.4784, allocations: 67.56 kB / 1.139 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003427/0.4819, allocations: 0.8082 MB / 1.14 GB, free: 292 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.008224/0.4901, allocations: 2.142 MB / 1.142 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004923/0.4951, allocations: 1.419 MB / 1.144 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007464/0.5025, allocations: 5.577 MB / 1.149 GB, free: 7.141 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002378/0.505, allocations: 1.138 MB / 1.15 GB, free: 5.973 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003338/0.5083, allocations: 1.365 MB / 1.152 GB, free: 4.602 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002226/0.5106, allocations: 1.201 MB / 1.153 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002861/0.5109, allocations: 76 kB / 1.153 GB, free: 3.32 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00412/0.515, allocations: 1.388 MB / 1.154 GB, free: 1.93 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004984/0.5155, allocations: 354.5 kB / 1.154 GB, free: 1.582 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.5169, allocations: 0.8547 MB / 1.155 GB, free: 0.7227 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004594/0.5215, allocations: 2.711 MB / 1.158 GB, free: 14 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.5215, allocations: 0 / 1.158 GB, free: 14 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5215, allocations: 4 kB / 1.158 GB, free: 14 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.911e-05/0.5216, allocations: 0 / 1.158 GB, free: 14 MB / 0.92 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.004259/0.5258, allocations: 2.193 MB / 1.16 GB, free: 11.74 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.5259, allocations: 16.03 kB / 1.16 GB, free: 11.72 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00378/0.5297, allocations: 0.5605 MB / 1.161 GB, free: 11.16 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002614/0.5323, allocations: 1.402 MB / 1.162 GB, free: 9.707 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001915/0.5325, allocations: 153.4 kB / 1.162 GB, free: 9.543 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/0.5327, allocations: 104 kB / 1.162 GB, free: 9.441 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00305/0.5358, allocations: 1.33 MB / 1.164 GB, free: 8.078 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.5358, allocations: 7.938 kB / 1.164 GB, free: 8.07 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.5359, allocations: 39.98 kB / 1.164 GB, free: 8.031 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.304e-05/0.536, allocations: 24 kB / 1.164 GB, free: 8.008 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003742/0.5397, allocations: 1.347 MB / 1.165 GB, free: 6.66 MB / 0.92 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.008398/0.5482, allocations: 5.457 MB / 1.17 GB, free: 0.8477 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005858/0.554, allocations: 1.418 MB / 1.172 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/0.5557, allocations: 0.5919 MB / 1.172 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/0.5568, allocations: 1.236 MB / 1.173 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002165/0.5589, allocations: 0.66 MB / 1.174 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=71): time 3.597e-06/0.559, allocations: 4 kB / 1.174 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71): time 0.02153/0.5805, allocations: 3.713 MB / 1.178 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.5806, allocations: 60.06 kB / 1.178 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/0.5834, allocations: 1.275 MB / 1.179 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002536/0.5836, allocations: 45.7 kB / 1.179 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008046/0.5845, allocations: 0.6658 MB / 1.18 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003762/0.5848, allocations: 236.5 kB / 1.18 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004235/0.5853, allocations: 182.4 kB / 1.18 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5854, allocations: 341.9 kB / 1.18 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.5871, allocations: 0.5278 MB / 1.181 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002178/0.5893, allocations: 0.7638 MB / 1.182 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003301/0.5926, allocations: 1.136 MB / 1.183 GB, free: 3.461 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.5926, allocations: 0 / 1.183 GB, free: 3.461 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.01008/0.6027, allocations: 2.137 MB / 1.185 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.408e-05/0.6028, allocations: 35.11 kB / 1.185 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/0.6028, allocations: 4 kB / 1.185 GB, free: 1.262 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001778/0.6046, allocations: 488.6 kB / 1.185 GB, free: 0.7812 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009383/0.6055, allocations: 195.7 kB / 1.186 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01686/0.6224, allocations: 3.809 MB / 1.189 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/0.6247, allocations: 227.1 kB / 1.19 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002637/0.625, allocations: 39.98 kB / 1.19 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002637/0.6276, allocations: 0.7913 MB / 1.19 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001929/0.6296, allocations: 0.7399 MB / 1.191 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003477/0.6331, allocations: 1.132 MB / 1.192 GB, free: 9.59 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.748e-06/0.6331, allocations: 4 kB / 1.192 GB, free: 9.586 MB / 0.9512 GB Notification: Performance of matching and sorting (n=99) (initialization_lambda0): time 0.01029/0.6434, allocations: 2.114 MB / 1.194 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.96e-05/0.6435, allocations: 37.64 kB / 1.194 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.6435, allocations: 4 kB / 1.194 GB, free: 7.402 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/0.6451, allocations: 492.5 kB / 1.195 GB, free: 6.918 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.6462, allocations: 191.7 kB / 1.195 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01646/0.6627, allocations: 3.814 MB / 1.199 GB, free: 2.785 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/0.665, allocations: 207.2 kB / 1.199 GB, free: 2.582 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.6653, allocations: 43.97 kB / 1.199 GB, free: 2.539 MB / 0.9512 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.0004398/0.6657, allocations: 240 kB / 1.199 GB, free: 2.297 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000559/0.6663, allocations: 142.2 kB / 1.199 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009866/0.6762, allocations: 2.188 MB / 1.201 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.726e-05/0.6762, allocations: 12 kB / 1.201 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.6763, allocations: 0 / 1.201 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008936/0.6852, allocations: 1.941 MB / 1.203 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/0.6985, allocations: 3.913 MB / 1.207 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.6985, allocations: 4 kB / 1.207 GB, free: 9.867 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007352/0.6992, allocations: 155.8 kB / 1.207 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001538/0.7008, allocations: 0.4889 MB / 1.208 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.7009, allocations: 36.03 kB / 1.208 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01546/0.7164, allocations: 3.787 MB / 1.211 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.7164, allocations: 7.984 kB / 1.212 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/0.7281, allocations: 2.944 MB / 1.214 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.7291, allocations: 342.9 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004933/0.7297, allocations: 28.05 kB / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001815/0.7315, allocations: 163.6 kB / 1.215 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002181/0.7317, allocations: 80.34 kB / 1.215 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.7318, allocations: 35.97 kB / 1.215 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001918/0.7338, allocations: 0.9129 MB / 1.216 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.773e-06/0.7338, allocations: 0 / 1.216 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.00356/0.7373, allocations: 0.8501 MB / 1.217 GB, free: 15.82 MB / 0.9825 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.001527/0.7389, allocations: 0.5133 MB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008057/0.747, allocations: 2.512 MB / 1.22 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.747, allocations: 4.062 kB / 1.22 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.003109/0.7501, allocations: 0.9398 MB / 1.221 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004274/0.7544, allocations: 0.7578 MB / 1.221 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007022/0.7614, allocations: 3.398 MB / 1.225 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.7625, allocations: 1.246 MB / 1.226 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001618/0.7641, allocations: 347.5 kB / 1.226 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.7645, allocations: 115.4 kB / 1.226 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of SimCode: time 1.162e-06/0.7645, allocations: 0 / 1.226 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of Templates: time 0.6606/1.425, allocations: 40.02 MB / 1.265 GB, free: 171.6 MB / 0.9981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1)