Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.00161/0.00161, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002124/0.002124, allocations: 192 kB / 16.14 MB, free: 6.656 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.584/1.584, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.079/3.079, allocations: 472.6 MB / 0.7447 GB, free: 5.004 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 62.33 kB / 0.9113 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4058, allocations: 159.9 MB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06158/0.4675, allocations: 60.23 MB / 1.126 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02305/0.4906, allocations: 13.32 MB / 1.139 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004242/0.4949, allocations: 59.62 kB / 1.139 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.004309/0.4992, allocations: 0.8238 MB / 1.14 GB, free: 256 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.008686/0.508, allocations: 2.146 MB / 1.142 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004933/0.5129, allocations: 1.431 MB / 1.144 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007746/0.5207, allocations: 5.57 MB / 1.149 GB, free: 7.098 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.5227, allocations: 1.13 MB / 1.15 GB, free: 5.938 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003266/0.526, allocations: 1.361 MB / 1.152 GB, free: 4.57 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001867/0.5279, allocations: 1.205 MB / 1.153 GB, free: 3.359 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002136/0.5281, allocations: 76 kB / 1.153 GB, free: 3.285 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003584/0.5317, allocations: 1.419 MB / 1.154 GB, free: 1.863 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004641/0.5322, allocations: 362.5 kB / 1.155 GB, free: 1.508 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.5333, allocations: 0.8586 MB / 1.155 GB, free: 0.6445 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004248/0.5376, allocations: 2.746 MB / 1.158 GB, free: 13.89 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.5376, allocations: 0 / 1.158 GB, free: 13.89 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5376, allocations: 0 / 1.158 GB, free: 13.89 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.429e-05/0.5377, allocations: 0 / 1.158 GB, free: 13.89 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.004117/0.5418, allocations: 2.224 MB / 1.16 GB, free: 11.6 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.5418, allocations: 12.03 kB / 1.16 GB, free: 11.59 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003912/0.5458, allocations: 0.5527 MB / 1.161 GB, free: 11.03 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002943/0.5487, allocations: 1.418 MB / 1.162 GB, free: 9.562 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002309/0.549, allocations: 157.4 kB / 1.162 GB, free: 9.395 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002103/0.5492, allocations: 104 kB / 1.162 GB, free: 9.293 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003539/0.5527, allocations: 1.33 MB / 1.164 GB, free: 7.93 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.5528, allocations: 3.938 kB / 1.164 GB, free: 7.926 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.5529, allocations: 44 kB / 1.164 GB, free: 7.883 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.848e-05/0.553, allocations: 27.94 kB / 1.164 GB, free: 7.855 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003857/0.5568, allocations: 1.347 MB / 1.165 GB, free: 6.508 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.008155/0.565, allocations: 5.474 MB / 1.17 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002581/0.5676, allocations: 1.066 MB / 1.171 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/0.5692, allocations: 0.6002 MB / 1.172 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009754/0.5702, allocations: 1.24 MB / 1.173 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001934/0.5722, allocations: 0.6628 MB / 1.174 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 3.857e-06/0.5722, allocations: 0 / 1.174 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005408/0.5776, allocations: 1.715 MB / 1.176 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.5777, allocations: 59.97 kB / 1.176 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.5798, allocations: 1.329 MB / 1.177 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.5799, allocations: 45.7 kB / 1.177 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006985/0.5806, allocations: 0.674 MB / 1.178 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/0.5809, allocations: 244.4 kB / 1.178 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003267/0.5813, allocations: 174.5 kB / 1.178 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5814, allocations: 341.9 kB / 1.178 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.583, allocations: 0.5278 MB / 1.179 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.5849, allocations: 0.7638 MB / 1.18 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003299/0.5882, allocations: 1.156 MB / 1.181 GB, free: 5.574 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.5882, allocations: 4 kB / 1.181 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004466/0.5927, allocations: 1.415 MB / 1.182 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.5928, allocations: 49.62 kB / 1.182 GB, free: 4.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.5928, allocations: 4 kB / 1.182 GB, free: 4.082 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.5928, allocations: 11.94 kB / 1.182 GB, free: 4.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.5941, allocations: 251.7 kB / 1.182 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.507e-05/0.5941, allocations: 7.938 kB / 1.182 GB, free: 3.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/0.5961, allocations: 226.9 kB / 1.183 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.5963, allocations: 39.98 kB / 1.183 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002224/0.5985, allocations: 0.8024 MB / 1.184 GB, free: 2.75 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001759/0.6003, allocations: 0.7517 MB / 1.184 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003129/0.6034, allocations: 1.144 MB / 1.185 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.019e-06/0.6034, allocations: 0 / 1.185 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004219/0.6076, allocations: 1.411 MB / 1.187 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/0.6077, allocations: 38.94 kB / 1.187 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.6077, allocations: 4 kB / 1.187 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.6078, allocations: 11.94 kB / 1.187 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.6091, allocations: 255.9 kB / 1.187 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.009e-05/0.6091, allocations: 8 kB / 1.187 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/0.6111, allocations: 215.2 kB / 1.187 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.6112, allocations: 39.98 kB / 1.187 GB, free: 14.73 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.0003733/0.6116, allocations: 228.1 kB / 1.188 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005305/0.6121, allocations: 150.2 kB / 1.188 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004287/0.6164, allocations: 1.493 MB / 1.189 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.6165, allocations: 8 kB / 1.189 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.6165, allocations: 3.938 kB / 1.189 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003361/0.6198, allocations: 1.23 MB / 1.19 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007757/0.6276, allocations: 3.238 MB / 1.193 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.6277, allocations: 7.984 kB / 1.193 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.6289, allocations: 223.9 kB / 1.194 GB, free: 7.945 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.529e-05/0.6289, allocations: 8 kB / 1.194 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.837e-05/0.629, allocations: 23.98 kB / 1.194 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.339e-05/0.629, allocations: 15.98 kB / 1.194 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.629, allocations: 7.938 kB / 1.194 GB, free: 7.891 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005964/0.635, allocations: 2.243 MB / 1.196 GB, free: 5.57 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009716/0.636, allocations: 354.8 kB / 1.196 GB, free: 5.203 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004434/0.6364, allocations: 20 kB / 1.196 GB, free: 5.184 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/0.6383, allocations: 159.9 kB / 1.196 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.6385, allocations: 68.36 kB / 1.197 GB, free: 4.961 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.6386, allocations: 39.97 kB / 1.197 GB, free: 4.922 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001872/0.6405, allocations: 0.9532 MB / 1.197 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6405, allocations: 0 / 1.197 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002938/0.6435, allocations: 0.8071 MB / 1.198 GB, free: 3.164 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.001567/0.645, allocations: 0.5105 MB / 1.199 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006044/0.6511, allocations: 2.015 MB / 1.201 GB, free: 0.6172 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/0.6511, allocations: 192 / 1.201 GB, free: 0.6172 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002161/0.6533, allocations: 0.6834 MB / 1.201 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004885/0.6582, allocations: 0.7529 MB / 1.202 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008809/0.6671, allocations: 3.464 MB / 1.206 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.6685, allocations: 1.249 MB / 1.207 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002751/0.6713, allocations: 371.6 kB / 1.207 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007024/0.672, allocations: 127.4 kB / 1.207 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of SimCode: time 1.823e-06/0.672, allocations: 0 / 1.207 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of Templates: time 0.05692/0.7289, allocations: 30.43 MB / 1.237 GB, free: 11.8 MB / 0.9981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)