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.0009334/0.0009334, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.006612/0.006612, allocations: 172.9 kB / 16.26 MB, free: 6.613 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: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.047/3.047, allocations: 473.4 MB / 0.7469 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003727, allocations: 12.09 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3847, allocations: 162.2 MB / 1.074 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06505/0.4499, allocations: 59.12 MB / 1.132 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02214/0.4721, allocations: 13.18 MB / 1.145 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003502/0.4756, allocations: 63.56 kB / 1.145 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.479, allocations: 0.816 MB / 1.146 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008144/0.4872, allocations: 2.15 MB / 1.148 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004858/0.4921, allocations: 1.424 MB / 1.149 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.009474/0.5016, allocations: 5.565 MB / 1.155 GB, free: 4.961 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00247/0.5041, allocations: 1.107 MB / 1.156 GB, free: 3.816 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003944/0.508, allocations: 1.318 MB / 1.157 GB, free: 2.492 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00287/0.5109, allocations: 1.166 MB / 1.158 GB, free: 1.32 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003054/0.5113, allocations: 60 kB / 1.158 GB, free: 1.262 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004554/0.5158, allocations: 1.399 MB / 1.159 GB, free: 15.86 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004647/0.5163, allocations: 346.4 kB / 1.16 GB, free: 15.52 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.5178, allocations: 0.8525 MB / 1.161 GB, free: 14.66 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.005286/0.5231, allocations: 2.702 MB / 1.163 GB, free: 11.95 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.5231, allocations: 4 kB / 1.163 GB, free: 11.94 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.565e-06/0.5231, allocations: 0 / 1.163 GB, free: 11.94 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.251e-05/0.5232, allocations: 0 / 1.163 GB, free: 11.94 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.0041/0.5273, allocations: 1.914 MB / 1.165 GB, free: 9.965 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.5274, allocations: 8.031 kB / 1.165 GB, free: 9.957 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003623/0.531, allocations: 0.5878 MB / 1.166 GB, free: 9.367 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002714/0.5337, allocations: 1.426 MB / 1.167 GB, free: 7.887 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.5339, allocations: 145.4 kB / 1.167 GB, free: 7.734 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.5341, allocations: 100 kB / 1.167 GB, free: 7.637 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003173/0.5373, allocations: 1.362 MB / 1.169 GB, free: 6.238 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.5373, allocations: 3.938 kB / 1.169 GB, free: 6.234 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.5374, allocations: 44 kB / 1.169 GB, free: 6.191 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.239e-05/0.5375, allocations: 27.98 kB / 1.169 GB, free: 6.164 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003912/0.5414, allocations: 1.401 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.008013/0.5494, allocations: 5.521 MB / 1.175 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0026/0.5521, allocations: 1.099 MB / 1.177 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001682/0.5538, allocations: 0.6432 MB / 1.177 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009571/0.5547, allocations: 1.232 MB / 1.178 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001868/0.5566, allocations: 0.7018 MB / 1.179 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 4.439e-06/0.5566, allocations: 3.984 kB / 1.179 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005468/0.5621, allocations: 1.809 MB / 1.181 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.5622, allocations: 63.97 kB / 1.181 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001937/0.5641, allocations: 1.332 MB / 1.182 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.5643, allocations: 45.69 kB / 1.182 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006289/0.5649, allocations: 0.67 MB / 1.183 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002639/0.5652, allocations: 244.5 kB / 1.183 GB, free: 6.676 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.5653, allocations: 69.69 kB / 1.183 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5654, allocations: 341.9 kB / 1.184 GB, free: 6.262 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.5671, allocations: 0.5563 MB / 1.184 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001797/0.5689, allocations: 0.7951 MB / 1.185 GB, free: 4.828 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/0.572, allocations: 1.226 MB / 1.186 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.572, allocations: 4 kB / 1.186 GB, free: 3.551 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004084/0.5761, allocations: 1.493 MB / 1.188 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.5763, allocations: 220.3 kB / 1.188 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.5763, allocations: 4 kB / 1.188 GB, free: 1.773 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.5763, allocations: 8 kB / 1.188 GB, free: 1.766 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.5776, allocations: 275.7 kB / 1.188 GB, free: 1.496 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.5776, allocations: 7.938 kB / 1.188 GB, free: 1.488 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.5795, allocations: 243 kB / 1.188 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.16e-05/0.5796, allocations: 43.97 kB / 1.188 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.5796, allocations: 4 kB / 1.188 GB, free: 1.203 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003534/0.5831, allocations: 1.325 MB / 1.19 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.5831, allocations: 4 kB / 1.19 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.5832, allocations: 12.31 kB / 1.19 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.5844, allocations: 263.7 kB / 1.19 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.5844, allocations: 15.88 kB / 1.19 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002017/0.5864, allocations: 239.2 kB / 1.19 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.619e-05/0.5865, allocations: 31.98 kB / 1.19 GB, free: 15.32 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.001011/0.5876, allocations: 416.9 kB / 1.191 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.5879, allocations: 150.1 kB / 1.191 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.5919, allocations: 1.548 MB / 1.192 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.5919, allocations: 19.86 kB / 1.192 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.5919, allocations: 4 kB / 1.192 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003402/0.5953, allocations: 1.312 MB / 1.193 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007382/0.6027, allocations: 3.301 MB / 1.197 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.6028, allocations: 4 kB / 1.197 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.6039, allocations: 244.2 kB / 1.197 GB, free: 8.113 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.6039, allocations: 4 kB / 1.197 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.604, allocations: 27.92 kB / 1.197 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.332e-05/0.604, allocations: 11.94 kB / 1.197 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.604, allocations: 8 kB / 1.197 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005665/0.6097, allocations: 2.345 MB / 1.199 GB, free: 5.637 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008329/0.6106, allocations: 378.8 kB / 1.2 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.6108, allocations: 19.94 kB / 1.2 GB, free: 5.227 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/0.6122, allocations: 183.7 kB / 1.2 GB, free: 5.047 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.6124, allocations: 76.34 kB / 1.2 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.613e-05/0.6125, allocations: 39.97 kB / 1.2 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001359/0.6139, allocations: 0.9493 MB / 1.201 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6139, allocations: 0 / 1.201 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002129/0.616, allocations: 0.7993 MB / 1.202 GB, free: 3.188 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.001088/0.6171, allocations: 0.5211 MB / 1.202 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00554/0.6227, allocations: 2.121 MB / 1.204 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.6227, allocations: 0 / 1.204 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001936/0.6246, allocations: 0.7225 MB / 1.205 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004891/0.6295, allocations: 0.7659 MB / 1.206 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006829/0.6364, allocations: 3.532 MB / 1.209 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000958/0.6373, allocations: 1.254 MB / 1.21 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001816/0.6392, allocations: 375.5 kB / 1.211 GB, free: 9.777 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004051/0.6396, allocations: 127.4 kB / 1.211 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of SimCode: time 8.82e-07/0.6396, allocations: 3.938 kB / 1.211 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of Templates: time 0.05524/0.6948, allocations: 31.13 MB / 1.241 GB, free: 10.88 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)