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.001518/0.001519, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001995/0.001996, allocations: 187.3 kB / 16.25 MB, free: 6.641 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.5/1.5, allocations: 222.9 MB / 239.9 MB, free: 4.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.898/2.898, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 68.12 kB / 0.9115 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4628/0.4645, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.05903/0.5235, allocations: 60.13 MB / 1.126 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02037/0.544, allocations: 13.13 MB / 1.139 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003644/0.5476, allocations: 67.56 kB / 1.139 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002756/0.5505, allocations: 0.8434 MB / 1.14 GB, free: 388 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007743/0.5582, allocations: 2.158 MB / 1.142 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004736/0.563, allocations: 1.444 MB / 1.144 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007052/0.57, allocations: 4.357 MB / 1.148 GB, free: 8.418 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002461/0.5725, allocations: 1.338 MB / 1.149 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004149/0.5767, allocations: 1.588 MB / 1.151 GB, free: 5.461 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00208/0.5788, allocations: 1.248 MB / 1.152 GB, free: 4.207 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003014/0.5791, allocations: 144 kB / 1.152 GB, free: 4.066 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003665/0.5828, allocations: 1.481 MB / 1.154 GB, free: 2.582 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005097/0.5833, allocations: 430.5 kB / 1.154 GB, free: 2.16 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.5849, allocations: 0.9134 MB / 1.155 GB, free: 1.242 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.005218/0.5901, allocations: 2.777 MB / 1.158 GB, free: 14.46 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5901, allocations: 0 / 1.158 GB, free: 14.46 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5901, allocations: 3.938 kB / 1.158 GB, free: 14.45 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.801e-05/0.5902, allocations: 4 kB / 1.158 GB, free: 14.45 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.003995/0.5942, allocations: 2.197 MB / 1.16 GB, free: 12.19 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.5942, allocations: 8.031 kB / 1.16 GB, free: 12.18 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003701/0.5979, allocations: 0.5527 MB / 1.16 GB, free: 11.62 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/0.6004, allocations: 1.417 MB / 1.162 GB, free: 10.15 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.6006, allocations: 145.4 kB / 1.162 GB, free: 10 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.6008, allocations: 104 kB / 1.162 GB, free: 9.898 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003175/0.604, allocations: 1.326 MB / 1.163 GB, free: 8.535 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.238e-05/0.6041, allocations: 11.92 kB / 1.163 GB, free: 8.523 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.6042, allocations: 40 kB / 1.163 GB, free: 8.484 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.558e-05/0.6042, allocations: 24 kB / 1.163 GB, free: 8.461 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003782/0.608, allocations: 1.343 MB / 1.165 GB, free: 7.121 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.008192/0.6162, allocations: 5.457 MB / 1.17 GB, free: 1.305 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005718/0.622, allocations: 1.421 MB / 1.171 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.6238, allocations: 0.5925 MB / 1.172 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009682/0.6247, allocations: 1.24 MB / 1.173 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001885/0.6266, allocations: 0.6561 MB / 1.174 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=71): time 3.497e-06/0.6267, allocations: 4 kB / 1.174 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71): time 0.02169/0.6484, allocations: 3.713 MB / 1.177 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.6484, allocations: 64.05 kB / 1.177 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/0.6502, allocations: 1.275 MB / 1.179 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.6504, allocations: 41.7 kB / 1.179 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005796/0.651, allocations: 0.6658 MB / 1.179 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/0.6513, allocations: 244.5 kB / 1.18 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/0.6516, allocations: 178.4 kB / 1.18 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.6517, allocations: 341.9 kB / 1.18 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001554/0.6533, allocations: 0.5278 MB / 1.181 GB, free: 5.934 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.6551, allocations: 0.7543 MB / 1.181 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002995/0.6581, allocations: 1.152 MB / 1.182 GB, free: 3.902 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.6581, allocations: 0 / 1.182 GB, free: 3.902 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.009883/0.668, allocations: 2.126 MB / 1.184 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.456e-05/0.668, allocations: 33.7 kB / 1.185 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.668, allocations: 4 kB / 1.185 GB, free: 1.715 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001638/0.6697, allocations: 496.8 kB / 1.185 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008647/0.6706, allocations: 195.7 kB / 1.185 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/0.6871, allocations: 4.121 MB / 1.189 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.689, allocations: 227 kB / 1.189 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/0.6892, allocations: 35.98 kB / 1.189 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002088/0.6913, allocations: 0.7868 MB / 1.19 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00168/0.693, allocations: 0.7517 MB / 1.191 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002968/0.696, allocations: 1.132 MB / 1.192 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.97e-06/0.696, allocations: 0 / 1.192 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of matching and sorting (n=99) (initialization_lambda0): time 0.009779/0.7058, allocations: 2.11 MB / 1.194 GB, free: 7.578 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.7059, allocations: 37.64 kB / 1.194 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.7059, allocations: 4 kB / 1.194 GB, free: 7.531 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001686/0.7076, allocations: 0.489 MB / 1.195 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/0.7085, allocations: 187.7 kB / 1.195 GB, free: 6.855 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01654/0.725, allocations: 4.144 MB / 1.199 GB, free: 2.578 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/0.7271, allocations: 211.3 kB / 1.199 GB, free: 2.371 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/0.7274, allocations: 39.97 kB / 1.199 GB, free: 2.332 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.0004064/0.7278, allocations: 238.6 kB / 1.199 GB, free: 2.094 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005066/0.7283, allocations: 150.1 kB / 1.199 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/0.7386, allocations: 2.18 MB / 1.202 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-05/0.7386, allocations: 11.94 kB / 1.202 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.7386, allocations: 0 / 1.202 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009662/0.7483, allocations: 1.941 MB / 1.204 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/0.7623, allocations: 3.917 MB / 1.207 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/0.7624, allocations: 4 kB / 1.207 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000837/0.7632, allocations: 151.8 kB / 1.207 GB, free: 9.512 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001623/0.7649, allocations: 0.4966 MB / 1.208 GB, free: 9.012 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.765, allocations: 27.98 kB / 1.208 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01762/0.7826, allocations: 4.108 MB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.7827, allocations: 4 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/0.7949, allocations: 2.944 MB / 1.215 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/0.7962, allocations: 346.9 kB / 1.215 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006023/0.7968, allocations: 23.94 kB / 1.215 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/0.7987, allocations: 167.7 kB / 1.215 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.799, allocations: 76.36 kB / 1.215 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.7991, allocations: 39.97 kB / 1.216 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001947/0.8011, allocations: 0.9168 MB / 1.216 GB, free: 140 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8011, allocations: 0 / 1.216 GB, free: 140 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003368/0.8044, allocations: 0.8462 MB / 1.217 GB, free: 15.29 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.001268/0.8057, allocations: 0.5167 MB / 1.218 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008499/0.8142, allocations: 2.579 MB / 1.22 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.8143, allocations: 0 / 1.22 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.00324/0.8175, allocations: 0.9477 MB / 1.221 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004317/0.8219, allocations: 0.7665 MB / 1.222 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007237/0.8291, allocations: 3.395 MB / 1.225 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009987/0.8301, allocations: 1.245 MB / 1.226 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001606/0.8318, allocations: 335.5 kB / 1.227 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003663/0.8321, allocations: 131.3 kB / 1.227 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of SimCode: time 1.052e-06/0.8321, allocations: 0 / 1.227 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of Templates: time 0.6152/1.447, allocations: 41.44 MB / 1.267 GB, free: 172.2 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)