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.001536/0.001536, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001947/0.001947, allocations: 193 kB / 16.53 MB, free: 6.391 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.467/1.467, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.752/2.752, allocations: 472.6 MB / 0.7451 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 59.77 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4112, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05963/0.4709, allocations: 60.62 MB / 1.127 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02031/0.4912, allocations: 13.25 MB / 1.14 GB, free: 312 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003636/0.4949, allocations: 71.56 kB / 1.14 GB, free: 240 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003432/0.4984, allocations: 0.9668 MB / 1.141 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007571/0.5061, allocations: 2.316 MB / 1.144 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004772/0.5108, allocations: 1.581 MB / 1.145 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.006441/0.5173, allocations: 4.322 MB / 1.149 GB, free: 7.035 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00215/0.5195, allocations: 1.346 MB / 1.151 GB, free: 5.66 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003768/0.5233, allocations: 1.554 MB / 1.152 GB, free: 4.105 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00209/0.5254, allocations: 1.206 MB / 1.153 GB, free: 2.895 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005097/0.5259, allocations: 144 kB / 1.153 GB, free: 2.754 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003656/0.5296, allocations: 1.501 MB / 1.155 GB, free: 1.25 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006075/0.5302, allocations: 430.4 kB / 1.155 GB, free: 0.8281 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001296/0.5315, allocations: 0.9174 MB / 1.156 GB, free: 15.9 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004451/0.536, allocations: 2.793 MB / 1.159 GB, free: 13.11 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.536, allocations: 0 / 1.159 GB, free: 13.11 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.304e-06/0.536, allocations: 4 kB / 1.159 GB, free: 13.1 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.152e-05/0.536, allocations: 0 / 1.159 GB, free: 13.1 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.003657/0.5397, allocations: 2.221 MB / 1.161 GB, free: 10.82 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.5398, allocations: 16.02 kB / 1.161 GB, free: 10.8 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003616/0.5434, allocations: 0.5527 MB / 1.162 GB, free: 10.25 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.5457, allocations: 1.398 MB / 1.163 GB, free: 8.797 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.5459, allocations: 145.4 kB / 1.163 GB, free: 8.645 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.5461, allocations: 104 kB / 1.163 GB, free: 8.543 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002933/0.549, allocations: 1.326 MB / 1.165 GB, free: 7.18 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.5491, allocations: 3.938 kB / 1.165 GB, free: 7.176 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.5492, allocations: 40 kB / 1.165 GB, free: 7.137 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.5492, allocations: 28 kB / 1.165 GB, free: 7.109 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003631/0.5529, allocations: 1.35 MB / 1.166 GB, free: 5.762 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.007338/0.5602, allocations: 5.513 MB / 1.171 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002574/0.5628, allocations: 1.067 MB / 1.172 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.5644, allocations: 0.5997 MB / 1.173 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009302/0.5653, allocations: 1.236 MB / 1.174 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001822/0.5672, allocations: 0.6666 MB / 1.175 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 3.356e-06/0.5672, allocations: 0 / 1.175 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005276/0.5725, allocations: 1.715 MB / 1.177 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.5725, allocations: 59.97 kB / 1.177 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/0.5743, allocations: 1.344 MB / 1.178 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.5744, allocations: 45.7 kB / 1.178 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005464/0.575, allocations: 0.6701 MB / 1.179 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.5752, allocations: 248.4 kB / 1.179 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.5755, allocations: 174.5 kB / 1.179 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.5757, allocations: 338 kB / 1.179 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.5773, allocations: 0.5356 MB / 1.18 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/0.579, allocations: 0.7599 MB / 1.181 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003104/0.5821, allocations: 1.16 MB / 1.182 GB, free: 4.766 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5821, allocations: 0 / 1.182 GB, free: 4.766 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003985/0.5861, allocations: 1.427 MB / 1.183 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.98e-05/0.5862, allocations: 37.64 kB / 1.183 GB, free: 3.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.5862, allocations: 8 kB / 1.183 GB, free: 3.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-05/0.5862, allocations: 8 kB / 1.183 GB, free: 3.262 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.5875, allocations: 251.7 kB / 1.183 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.089e-05/0.5875, allocations: 11.94 kB / 1.183 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.5891, allocations: 187 kB / 1.184 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.54e-05/0.5892, allocations: 35.98 kB / 1.184 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001994/0.5912, allocations: 0.8024 MB / 1.184 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001727/0.5929, allocations: 0.7471 MB / 1.185 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003038/0.596, allocations: 1.152 MB / 1.186 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.809e-06/0.596, allocations: 3.938 kB / 1.186 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003941/0.5999, allocations: 1.411 MB / 1.188 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.6, allocations: 35.42 kB / 1.188 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.6, allocations: 4 kB / 1.188 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.6, allocations: 11.94 kB / 1.188 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.6012, allocations: 259.9 kB / 1.188 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.6013, allocations: 8 kB / 1.188 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/0.6028, allocations: 171.3 kB / 1.188 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.614e-05/0.6029, allocations: 43.97 kB / 1.188 GB, free: 14 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.0002871/0.6032, allocations: 232.1 kB / 1.188 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.6035, allocations: 154.1 kB / 1.189 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003895/0.6074, allocations: 1.478 MB / 1.19 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.6074, allocations: 8 kB / 1.19 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.6074, allocations: 0 / 1.19 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003224/0.6106, allocations: 1.238 MB / 1.191 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006443/0.6171, allocations: 3.231 MB / 1.194 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.6171, allocations: 8.062 kB / 1.194 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.6183, allocations: 227.6 kB / 1.195 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.498e-05/0.6183, allocations: 11.98 kB / 1.195 GB, free: 7.207 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.757e-05/0.6184, allocations: 31.97 kB / 1.195 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/0.6184, allocations: 8 kB / 1.195 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.6184, allocations: 7.938 kB / 1.195 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005482/0.6239, allocations: 2.243 MB / 1.197 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006673/0.6246, allocations: 354.8 kB / 1.197 GB, free: 4.473 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/0.6248, allocations: 24 kB / 1.197 GB, free: 4.449 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.6261, allocations: 123.8 kB / 1.197 GB, free: 4.328 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.6263, allocations: 80.36 kB / 1.197 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.337e-05/0.6263, allocations: 35.97 kB / 1.197 GB, free: 4.215 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001327/0.6277, allocations: 0.9611 MB / 1.198 GB, free: 3.258 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.373e-06/0.6277, allocations: 0 / 1.198 GB, free: 3.258 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.00197/0.6297, allocations: 0.811 MB / 1.199 GB, free: 2.445 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.001034/0.6307, allocations: 0.5222 MB / 1.2 GB, free: 1.926 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005689/0.6364, allocations: 2.078 MB / 1.202 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.6364, allocations: 8 kB / 1.202 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.6384, allocations: 0.6834 MB / 1.202 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003697/0.6421, allocations: 0.7697 MB / 1.203 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006548/0.6487, allocations: 2.946 MB / 1.206 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007961/0.6495, allocations: 1.253 MB / 1.207 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001783/0.6513, allocations: 371.5 kB / 1.208 GB, free: 9.703 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000387/0.6517, allocations: 127.4 kB / 1.208 GB, free: 9.578 MB / 0.9669 GB Notification: Performance of SimCode: time 1.794e-06/0.6517, allocations: 0 / 1.208 GB, free: 9.578 MB / 0.9669 GB Notification: Performance of Templates: time 0.06022/0.7119, allocations: 31.97 MB / 1.239 GB, free: 9.996 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)