Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009299/0.0009296, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001479/0.001479, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.528/1.528, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.081/3.081, allocations: 473.4 MB / 0.7469 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005243/0.0005244, allocations: 9.469 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.369, allocations: 162.2 MB / 1.074 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05885/0.4279, allocations: 59.13 MB / 1.132 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02104/0.449, allocations: 13.16 MB / 1.145 GB, free: 15 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003419/0.4525, allocations: 63.56 kB / 1.145 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002887/0.4554, allocations: 0.8121 MB / 1.146 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0079/0.4633, allocations: 2.153 MB / 1.148 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004413/0.4677, allocations: 1.429 MB / 1.149 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.008617/0.4763, allocations: 5.565 MB / 1.155 GB, free: 4.973 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002418/0.4788, allocations: 1.111 MB / 1.156 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003692/0.4825, allocations: 1.314 MB / 1.157 GB, free: 2.504 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002518/0.485, allocations: 1.166 MB / 1.158 GB, free: 1.332 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002549/0.4853, allocations: 60 kB / 1.158 GB, free: 1.273 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004849/0.4902, allocations: 1.399 MB / 1.159 GB, free: 15.87 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0008213/0.491, allocations: 350.3 kB / 1.16 GB, free: 15.53 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002086/0.4932, allocations: 0.8603 MB / 1.161 GB, free: 14.66 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.005323/0.4985, allocations: 2.698 MB / 1.163 GB, free: 11.95 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.4985, allocations: 0 / 1.163 GB, free: 11.95 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.845e-06/0.4986, allocations: 0 / 1.163 GB, free: 11.95 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.835e-05/0.4986, allocations: 0 / 1.163 GB, free: 11.95 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.004397/0.503, allocations: 1.914 MB / 1.165 GB, free: 9.973 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.5031, allocations: 8.031 kB / 1.165 GB, free: 9.965 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003831/0.5069, allocations: 0.5878 MB / 1.166 GB, free: 9.375 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003/0.5099, allocations: 1.422 MB / 1.167 GB, free: 7.898 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.5101, allocations: 149.4 kB / 1.167 GB, free: 7.742 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.5103, allocations: 99.98 kB / 1.167 GB, free: 7.645 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003263/0.5136, allocations: 1.369 MB / 1.169 GB, free: 6.238 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.5137, allocations: 0 / 1.169 GB, free: 6.238 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.5138, allocations: 43.94 kB / 1.169 GB, free: 6.195 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.709e-05/0.5138, allocations: 24 kB / 1.169 GB, free: 6.172 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003952/0.5178, allocations: 1.409 MB / 1.17 GB, free: 4.766 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.009483/0.5273, allocations: 5.502 MB / 1.175 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002771/0.5301, allocations: 1.105 MB / 1.177 GB, free: 13.76 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/0.5318, allocations: 0.6369 MB / 1.177 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001304/0.5332, allocations: 1.24 MB / 1.178 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001881/0.5351, allocations: 0.694 MB / 1.179 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 4.078e-06/0.5351, allocations: 0 / 1.179 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005753/0.5408, allocations: 1.813 MB / 1.181 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.5409, allocations: 59.97 kB / 1.181 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/0.5429, allocations: 1.336 MB / 1.182 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.543, allocations: 45.64 kB / 1.182 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006764/0.5437, allocations: 0.6778 MB / 1.183 GB, free: 6.93 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003087/0.544, allocations: 236.5 kB / 1.183 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.5442, allocations: 77.67 kB / 1.183 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.5444, allocations: 330 kB / 1.184 GB, free: 6.285 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.546, allocations: 0.5641 MB / 1.184 GB, free: 5.719 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001778/0.5478, allocations: 0.7912 MB / 1.185 GB, free: 4.848 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003173/0.551, allocations: 1.222 MB / 1.186 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.551, allocations: 4 kB / 1.186 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004148/0.5552, allocations: 1.501 MB / 1.188 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001837/0.5554, allocations: 212.4 kB / 1.188 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.5554, allocations: 7.938 kB / 1.188 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.582e-05/0.5554, allocations: 8 kB / 1.188 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.5567, allocations: 275.7 kB / 1.188 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.5568, allocations: 11.88 kB / 1.188 GB, free: 1.504 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001923/0.5587, allocations: 243 kB / 1.188 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.5588, allocations: 39.98 kB / 1.188 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.5588, allocations: 4 kB / 1.188 GB, free: 1.223 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003577/0.5624, allocations: 1.329 MB / 1.19 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5624, allocations: 4 kB / 1.19 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.5624, allocations: 8 kB / 1.19 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.5636, allocations: 272 kB / 1.19 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.5637, allocations: 15.88 kB / 1.19 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.5655, allocations: 227.2 kB / 1.19 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.534e-05/0.5656, allocations: 39.97 kB / 1.19 GB, free: 15.33 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 (chi.tru.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 (97): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008693/0.5665, allocations: 420.9 kB / 1.191 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.5668, allocations: 150.1 kB / 1.191 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003973/0.5707, allocations: 1.544 MB / 1.192 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/0.5708, allocations: 11.94 kB / 1.192 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.5708, allocations: 7.984 kB / 1.192 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003335/0.5741, allocations: 1.308 MB / 1.193 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00698/0.5811, allocations: 3.312 MB / 1.197 GB, free: 8.367 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.926e-06/0.5812, allocations: 4 kB / 1.197 GB, free: 8.363 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.5823, allocations: 240 kB / 1.197 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.167e-05/0.5824, allocations: 4 kB / 1.197 GB, free: 8.125 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.387e-05/0.5824, allocations: 31.91 kB / 1.197 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.199e-05/0.5824, allocations: 11.94 kB / 1.197 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.5824, allocations: 4 kB / 1.197 GB, free: 8.078 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005693/0.5881, allocations: 2.349 MB / 1.199 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009819/0.5892, allocations: 374.8 kB / 1.2 GB, free: 5.262 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.5893, allocations: 19.94 kB / 1.2 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.5908, allocations: 187.7 kB / 1.2 GB, free: 5.059 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.591, allocations: 72.36 kB / 1.2 GB, free: 4.988 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.699e-05/0.5911, allocations: 39.97 kB / 1.2 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001441/0.5925, allocations: 0.9454 MB / 1.201 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5926, allocations: 0 / 1.201 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002441/0.595, allocations: 0.8071 MB / 1.202 GB, free: 3.199 MB / 0.9512 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001356/0.5964, allocations: 0.5164 MB / 1.202 GB, free: 2.691 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005768/0.6022, allocations: 2.113 MB / 1.204 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.453e-06/0.6022, allocations: 192 / 1.204 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.6042, allocations: 0.7263 MB / 1.205 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005311/0.6095, allocations: 0.7704 MB / 1.206 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00761/0.6172, allocations: 3.532 MB / 1.209 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.6182, allocations: 1.25 MB / 1.21 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002094/0.6203, allocations: 371.6 kB / 1.211 GB, free: 9.801 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004318/0.6208, allocations: 135.4 kB / 1.211 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of SimCode: time 8.61e-07/0.6208, allocations: 0 / 1.211 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of Templates: time 0.05879/0.6796, allocations: 31.15 MB / 1.241 GB, free: 10.88 MB / 0.9981 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)