Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001826/0.001826, allocations: 199.2 kB / 16.14 MB, free: 6.688 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.482/1.482, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.852/2.852, allocations: 472.6 MB / 0.7447 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 69.75 kB / 0.9113 GB, free: 33.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3492, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.05991/0.4092, allocations: 60.23 MB / 1.126 GB, free: 14.49 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02209/0.4313, allocations: 13.27 MB / 1.139 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002931/0.4343, allocations: 67.56 kB / 1.139 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.4376, allocations: 0.8121 MB / 1.14 GB, free: 312 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007604/0.4452, allocations: 2.15 MB / 1.142 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005009/0.4503, allocations: 1.421 MB / 1.144 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00767/0.4579, allocations: 5.561 MB / 1.149 GB, free: 7.164 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002747/0.4607, allocations: 1.134 MB / 1.15 GB, free: 6 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003552/0.4643, allocations: 1.357 MB / 1.151 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00265/0.4669, allocations: 1.209 MB / 1.153 GB, free: 3.422 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005941/0.4676, allocations: 80 kB / 1.153 GB, free: 3.344 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004245/0.4718, allocations: 1.376 MB / 1.154 GB, free: 1.965 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0007942/0.4726, allocations: 358.4 kB / 1.154 GB, free: 1.613 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002029/0.4747, allocations: 0.847 MB / 1.155 GB, free: 0.7617 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.006135/0.4808, allocations: 2.703 MB / 1.158 GB, free: 14.05 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.954e-06/0.4809, allocations: 3.984 kB / 1.158 GB, free: 14.05 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4809, allocations: 0 / 1.158 GB, free: 14.05 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001164/0.481, allocations: 0 / 1.158 GB, free: 14.05 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.006596/0.4876, allocations: 2.193 MB / 1.16 GB, free: 11.79 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.4877, allocations: 15.97 kB / 1.16 GB, free: 11.77 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004133/0.4918, allocations: 0.5526 MB / 1.161 GB, free: 11.21 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/0.4953, allocations: 1.398 MB / 1.162 GB, free: 9.766 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/0.4956, allocations: 145.4 kB / 1.162 GB, free: 9.609 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003871/0.496, allocations: 112 kB / 1.162 GB, free: 9.5 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003903/0.4999, allocations: 1.319 MB / 1.163 GB, free: 8.148 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/0.5, allocations: 0 / 1.163 GB, free: 8.148 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001661/0.5002, allocations: 36 kB / 1.164 GB, free: 8.113 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.872e-05/0.5002, allocations: 27.98 kB / 1.164 GB, free: 8.086 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004095/0.5043, allocations: 1.335 MB / 1.165 GB, free: 6.75 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.009809/0.5142, allocations: 5.45 MB / 1.17 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005734/0.5199, allocations: 1.334 MB / 1.171 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.5218, allocations: 0.6158 MB / 1.172 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001446/0.5233, allocations: 1.232 MB / 1.173 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00206/0.5254, allocations: 0.6588 MB / 1.174 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 4.458e-06/0.5254, allocations: 0 / 1.174 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.00576/0.5312, allocations: 1.688 MB / 1.176 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.5312, allocations: 67.91 kB / 1.176 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002596/0.5338, allocations: 1.275 MB / 1.177 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001575/0.534, allocations: 45.7 kB / 1.177 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007612/0.5348, allocations: 0.6541 MB / 1.178 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.5351, allocations: 236.5 kB / 1.178 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004082/0.5355, allocations: 182.4 kB / 1.178 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.5357, allocations: 333.9 kB / 1.178 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.5373, allocations: 0.5278 MB / 1.179 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.5393, allocations: 0.7599 MB / 1.18 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003269/0.5425, allocations: 1.148 MB / 1.181 GB, free: 5.695 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.5426, allocations: 0 / 1.181 GB, free: 5.695 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004292/0.5469, allocations: 1.403 MB / 1.182 GB, free: 4.277 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.977e-05/0.5469, allocations: 33.7 kB / 1.182 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.547, allocations: 4 kB / 1.182 GB, free: 4.234 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.525e-05/0.547, allocations: 12.25 kB / 1.182 GB, free: 4.223 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.5483, allocations: 263.6 kB / 1.182 GB, free: 3.965 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.283e-05/0.5484, allocations: 4 kB / 1.182 GB, free: 3.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.5503, allocations: 227 kB / 1.183 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.5505, allocations: 39.98 kB / 1.183 GB, free: 3.699 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002165/0.5526, allocations: 0.7868 MB / 1.183 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001764/0.5544, allocations: 0.7494 MB / 1.184 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003013/0.5574, allocations: 1.128 MB / 1.185 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.999e-06/0.5575, allocations: 4 kB / 1.185 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004113/0.5616, allocations: 1.395 MB / 1.187 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.5616, allocations: 33.7 kB / 1.187 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5617, allocations: 7.984 kB / 1.187 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.5617, allocations: 4 kB / 1.187 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.5629, allocations: 259.9 kB / 1.187 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.449e-05/0.563, allocations: 15.94 kB / 1.187 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/0.5648, allocations: 207.2 kB / 1.187 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.565, allocations: 39.98 kB / 1.187 GB, free: 14.92 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.0003766/0.5654, allocations: 236 kB / 1.187 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005205/0.5659, allocations: 146.2 kB / 1.187 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004164/0.5701, allocations: 1.458 MB / 1.189 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.5701, allocations: 15.92 kB / 1.189 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.5701, allocations: 0 / 1.189 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003239/0.5734, allocations: 1.226 MB / 1.19 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007687/0.5811, allocations: 3.191 MB / 1.193 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.5811, allocations: 12.03 kB / 1.193 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.5823, allocations: 219.7 kB / 1.193 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.758e-05/0.5823, allocations: 4 kB / 1.193 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.5824, allocations: 31.91 kB / 1.193 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.859e-06/0.5824, allocations: 8 kB / 1.193 GB, free: 8.176 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.5825, allocations: 11.94 kB / 1.194 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00572/0.5882, allocations: 2.216 MB / 1.196 GB, free: 5.871 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009484/0.5891, allocations: 346.9 kB / 1.196 GB, free: 5.512 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004331/0.5896, allocations: 27.92 kB / 1.196 GB, free: 5.484 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001856/0.5915, allocations: 155.8 kB / 1.196 GB, free: 5.332 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.5917, allocations: 76.34 kB / 1.196 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.5918, allocations: 39.97 kB / 1.196 GB, free: 5.219 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001914/0.5937, allocations: 0.909 MB / 1.197 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5937, allocations: 0 / 1.197 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003668/0.5974, allocations: 0.7915 MB / 1.198 GB, free: 3.52 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.001751/0.5992, allocations: 0.5094 MB / 1.198 GB, free: 3.012 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006111/0.6053, allocations: 1.996 MB / 1.2 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.6053, allocations: 7.938 kB / 1.2 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.6073, allocations: 0.6758 MB / 1.201 GB, free: 316 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004919/0.6123, allocations: 0.7482 MB / 1.202 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008036/0.6203, allocations: 3.389 MB / 1.205 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/0.6217, allocations: 1.23 MB / 1.206 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002435/0.6242, allocations: 383.4 kB / 1.207 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005572/0.6247, allocations: 123.4 kB / 1.207 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of SimCode: time 1.463e-06/0.6247, allocations: 4 kB / 1.207 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of Templates: time 0.05841/0.6831, allocations: 30.1 MB / 1.236 GB, free: 12.59 MB / 0.9981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)