Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001338/0.001338, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001745/0.001744, allocations: 200.5 kB / 16.26 MB, free: 6.621 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.516/1.516, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.92/2.92, allocations: 472.6 MB / 0.7448 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 71.3 kB / 0.9115 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3644, 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.06119/0.4256, allocations: 60.11 MB / 1.126 GB, free: 14.47 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0218/0.4475, allocations: 13.12 MB / 1.139 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003507/0.451, allocations: 63.56 kB / 1.139 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003432/0.4545, allocations: 0.8434 MB / 1.14 GB, free: 416 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007716/0.4623, allocations: 2.173 MB / 1.142 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005054/0.4673, allocations: 1.443 MB / 1.144 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007234/0.4746, allocations: 4.351 MB / 1.148 GB, free: 8.434 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002764/0.4774, allocations: 1.338 MB / 1.149 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004895/0.4823, allocations: 1.583 MB / 1.151 GB, free: 5.484 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002764/0.4851, allocations: 1.26 MB / 1.152 GB, free: 4.219 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0006715/0.4858, allocations: 140 kB / 1.152 GB, free: 4.082 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004387/0.4902, allocations: 1.481 MB / 1.154 GB, free: 2.598 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0008599/0.491, allocations: 426.5 kB / 1.154 GB, free: 2.18 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002623/0.4937, allocations: 0.9212 MB / 1.155 GB, free: 1.254 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.007261/0.5009, allocations: 2.773 MB / 1.158 GB, free: 14.47 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.501, allocations: 4 kB / 1.158 GB, free: 14.47 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.144e-06/0.501, allocations: 4 kB / 1.158 GB, free: 14.46 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001157/0.5011, allocations: 0 / 1.158 GB, free: 14.46 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.006461/0.5076, allocations: 2.189 MB / 1.16 GB, free: 12.21 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.5076, allocations: 12.03 kB / 1.16 GB, free: 12.2 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003892/0.5115, allocations: 0.5527 MB / 1.16 GB, free: 11.64 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002842/0.5144, allocations: 1.414 MB / 1.162 GB, free: 10.18 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.5146, allocations: 145.4 kB / 1.162 GB, free: 10.02 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.5148, allocations: 100 kB / 1.162 GB, free: 9.926 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.5179, allocations: 1.33 MB / 1.163 GB, free: 8.559 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.5179, allocations: 7.938 kB / 1.163 GB, free: 8.551 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/0.518, allocations: 40 kB / 1.163 GB, free: 8.512 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.103e-05/0.5181, allocations: 24 kB / 1.163 GB, free: 8.488 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003489/0.5216, allocations: 1.347 MB / 1.165 GB, free: 7.145 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.008072/0.5297, allocations: 5.457 MB / 1.17 GB, free: 1.328 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00563/0.5353, allocations: 1.419 MB / 1.171 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.5369, allocations: 0.5964 MB / 1.172 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001013/0.538, allocations: 1.236 MB / 1.173 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001822/0.5398, allocations: 0.664 MB / 1.174 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=71): time 3.327e-06/0.5398, allocations: 3.938 kB / 1.174 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71): time 0.02118/0.561, allocations: 3.714 MB / 1.177 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.5611, allocations: 60.06 kB / 1.177 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.563, allocations: 1.271 MB / 1.179 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.000203/0.5632, allocations: 45.7 kB / 1.179 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006122/0.5639, allocations: 0.6697 MB / 1.179 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002886/0.5642, allocations: 240.5 kB / 1.18 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.5645, allocations: 182.4 kB / 1.18 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5646, allocations: 337.9 kB / 1.18 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.5662, allocations: 0.5317 MB / 1.181 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001744/0.5679, allocations: 0.756 MB / 1.181 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002956/0.5709, allocations: 1.148 MB / 1.182 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5709, allocations: 0 / 1.182 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.009852/0.5808, allocations: 2.133 MB / 1.185 GB, free: 1.77 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.381e-05/0.5808, allocations: 29.7 kB / 1.185 GB, free: 1.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.5809, allocations: 4 kB / 1.185 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.5825, allocations: 0.489 MB / 1.185 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008756/0.5834, allocations: 191.7 kB / 1.185 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02034/0.6037, allocations: 4.119 MB / 1.189 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.6066, allocations: 227.2 kB / 1.189 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/0.6068, allocations: 39.98 kB / 1.189 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003115/0.6099, allocations: 0.7875 MB / 1.19 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002653/0.6126, allocations: 0.7478 MB / 1.191 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004565/0.6172, allocations: 1.132 MB / 1.192 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.384e-06/0.6172, allocations: 7.938 kB / 1.192 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of matching and sorting (n=99) (initialization_lambda0): time 0.01613/0.6333, allocations: 2.11 MB / 1.194 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.73e-05/0.6335, allocations: 33.7 kB / 1.194 GB, free: 7.551 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.6335, allocations: 4 kB / 1.194 GB, free: 7.547 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00276/0.6363, allocations: 0.4929 MB / 1.195 GB, free: 7.051 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.6379, allocations: 191.7 kB / 1.195 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.026/0.6639, allocations: 4.138 MB / 1.199 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.6659, allocations: 207.3 kB / 1.199 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002316/0.6662, allocations: 44.16 kB / 1.199 GB, free: 2.344 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.0004117/0.6666, allocations: 236 kB / 1.199 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005488/0.6672, allocations: 146.1 kB / 1.199 GB, free: 1.961 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01006/0.6772, allocations: 2.184 MB / 1.202 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/0.6773, allocations: 12 kB / 1.202 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.6773, allocations: 0 / 1.202 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009311/0.6866, allocations: 1.941 MB / 1.204 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.7, allocations: 3.913 MB / 1.207 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.24e-05/0.7001, allocations: 4 kB / 1.207 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007711/0.7009, allocations: 155.8 kB / 1.208 GB, free: 9.523 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.7025, allocations: 0.4928 MB / 1.208 GB, free: 9.027 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/0.7026, allocations: 31.97 kB / 1.208 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01658/0.7192, allocations: 4.112 MB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.046e-06/0.7193, allocations: 7.938 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/0.7314, allocations: 2.932 MB / 1.215 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009659/0.7324, allocations: 346.9 kB / 1.215 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004493/0.7329, allocations: 27.88 kB / 1.215 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/0.7347, allocations: 167.7 kB / 1.215 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.7349, allocations: 76.36 kB / 1.215 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.7351, allocations: 39.95 kB / 1.216 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001769/0.7368, allocations: 0.909 MB / 1.216 GB, free: 160 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7369, allocations: 0 / 1.216 GB, free: 160 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003625/0.7405, allocations: 0.8502 MB / 1.217 GB, free: 15.3 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.001343/0.7418, allocations: 0.5103 MB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008631/0.7505, allocations: 2.579 MB / 1.22 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.7505, allocations: 0 / 1.22 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.003271/0.7538, allocations: 0.9555 MB / 1.221 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003925/0.7578, allocations: 0.7671 MB / 1.222 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00711/0.7649, allocations: 3.403 MB / 1.225 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009816/0.7659, allocations: 1.242 MB / 1.226 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.00152/0.7674, allocations: 335.5 kB / 1.227 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003449/0.7678, allocations: 127.3 kB / 1.227 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of SimCode: time 6.71e-07/0.7678, allocations: 0 / 1.227 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of Templates: time 0.6023/1.37, allocations: 41.44 MB / 1.267 GB, free: 171.8 MB / 0.9981 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & ./Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1)