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.001363/0.001363, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001659/0.00166, allocations: 192 kB / 16.25 MB, free: 6.617 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.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.822/2.822, allocations: 472.6 MB / 0.7448 GB, free: 4.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 58.81 kB / 0.9115 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3666, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06124/0.4279, allocations: 60.1 MB / 1.126 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02115/0.4491, allocations: 13.16 MB / 1.139 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003648/0.4528, allocations: 63.56 kB / 1.139 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003257/0.4561, allocations: 0.8434 MB / 1.14 GB, free: 412 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007684/0.4638, allocations: 2.165 MB / 1.142 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005447/0.4693, allocations: 1.458 MB / 1.144 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007084/0.4764, allocations: 4.353 MB / 1.148 GB, free: 8.422 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002744/0.4791, allocations: 1.322 MB / 1.149 GB, free: 7.07 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004263/0.4834, allocations: 1.587 MB / 1.151 GB, free: 5.48 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002183/0.4856, allocations: 1.244 MB / 1.152 GB, free: 4.23 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000708/0.4863, allocations: 144 kB / 1.152 GB, free: 4.09 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003747/0.4901, allocations: 1.52 MB / 1.154 GB, free: 2.566 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006799/0.4908, allocations: 434.5 kB / 1.154 GB, free: 2.141 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001795/0.4926, allocations: 0.9211 MB / 1.155 GB, free: 1.215 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.005041/0.4977, allocations: 2.808 MB / 1.158 GB, free: 14.4 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4977, allocations: 0 / 1.158 GB, free: 14.4 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4977, allocations: 3.938 kB / 1.158 GB, free: 14.39 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.098e-05/0.4977, allocations: 4 kB / 1.158 GB, free: 14.39 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.004075/0.5018, allocations: 2.217 MB / 1.16 GB, free: 12.11 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.5019, allocations: 8.031 kB / 1.16 GB, free: 12.1 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003851/0.5057, allocations: 0.5566 MB / 1.16 GB, free: 11.54 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.5083, allocations: 1.43 MB / 1.162 GB, free: 10.06 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001748/0.5085, allocations: 145.4 kB / 1.162 GB, free: 9.906 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.5086, allocations: 96 kB / 1.162 GB, free: 9.812 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003177/0.5118, allocations: 1.33 MB / 1.163 GB, free: 8.445 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.5119, allocations: 7.938 kB / 1.163 GB, free: 8.438 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.512, allocations: 39.98 kB / 1.163 GB, free: 8.398 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.61e-05/0.512, allocations: 27.98 kB / 1.163 GB, free: 8.371 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003929/0.516, allocations: 1.343 MB / 1.165 GB, free: 7.031 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.008606/0.5246, allocations: 5.486 MB / 1.17 GB, free: 1.188 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/0.5272, allocations: 1.057 MB / 1.171 GB, free: 84 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001677/0.5289, allocations: 0.6089 MB / 1.172 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001167/0.5301, allocations: 1.235 MB / 1.173 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002035/0.5322, allocations: 0.6628 MB / 1.174 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 3.727e-06/0.5322, allocations: 4 kB / 1.174 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005679/0.5379, allocations: 1.711 MB / 1.175 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.538, allocations: 59.97 kB / 1.175 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002618/0.5406, allocations: 1.333 MB / 1.177 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001546/0.5408, allocations: 41.69 kB / 1.177 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007296/0.5415, allocations: 0.674 MB / 1.177 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002968/0.5418, allocations: 244.4 kB / 1.177 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003684/0.5422, allocations: 178.5 kB / 1.178 GB, free: 9 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.5423, allocations: 334 kB / 1.178 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.544, allocations: 0.5356 MB / 1.178 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/0.5457, allocations: 0.7716 MB / 1.179 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003075/0.5488, allocations: 1.152 MB / 1.18 GB, free: 6.078 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.5488, allocations: 0 / 1.18 GB, free: 6.078 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003966/0.5528, allocations: 1.43 MB / 1.182 GB, free: 4.633 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/0.5529, allocations: 33.64 kB / 1.182 GB, free: 4.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.5529, allocations: 4 kB / 1.182 GB, free: 4.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.027e-05/0.5529, allocations: 8 kB / 1.182 GB, free: 4.582 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.5542, allocations: 251.8 kB / 1.182 GB, free: 4.336 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.728e-05/0.5542, allocations: 15.92 kB / 1.182 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.556, allocations: 222.9 kB / 1.182 GB, free: 4.102 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.5561, allocations: 39.97 kB / 1.182 GB, free: 4.062 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001972/0.5581, allocations: 0.8024 MB / 1.183 GB, free: 3.258 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001781/0.5599, allocations: 0.7613 MB / 1.184 GB, free: 2.414 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00302/0.5629, allocations: 1.144 MB / 1.185 GB, free: 1.219 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.868e-06/0.563, allocations: 0 / 1.185 GB, free: 1.219 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003824/0.5668, allocations: 1.415 MB / 1.186 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.5668, allocations: 31.27 kB / 1.186 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.5669, allocations: 4 kB / 1.186 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.5669, allocations: 11.94 kB / 1.186 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.5681, allocations: 255.9 kB / 1.187 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/0.5681, allocations: 8 kB / 1.187 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.5698, allocations: 215.2 kB / 1.187 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.306e-05/0.5699, allocations: 43.97 kB / 1.187 GB, free: 15.23 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.0002876/0.5702, allocations: 228.7 kB / 1.187 GB, free: 15 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003502/0.5705, allocations: 150.2 kB / 1.187 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003791/0.5743, allocations: 1.478 MB / 1.189 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.736e-05/0.5743, allocations: 11.98 kB / 1.189 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.5744, allocations: 0 / 1.189 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00315/0.5775, allocations: 1.246 MB / 1.19 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006862/0.5844, allocations: 3.226 MB / 1.193 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/0.5844, allocations: 8 kB / 1.193 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.5856, allocations: 224 kB / 1.193 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.261e-05/0.5856, allocations: 8 kB / 1.193 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.542e-05/0.5857, allocations: 31.97 kB / 1.193 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.899e-06/0.5857, allocations: 8 kB / 1.193 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.5857, allocations: 7.938 kB / 1.193 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005334/0.591, allocations: 2.24 MB / 1.196 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006773/0.5917, allocations: 358.8 kB / 1.196 GB, free: 5.711 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003103/0.592, allocations: 20 kB / 1.196 GB, free: 5.691 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.5937, allocations: 155.9 kB / 1.196 GB, free: 5.539 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.5939, allocations: 76.3 kB / 1.196 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.594, allocations: 39.97 kB / 1.196 GB, free: 5.426 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001487/0.5955, allocations: 0.9493 MB / 1.197 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.9e-07/0.5955, allocations: 4 kB / 1.197 GB, free: 4.477 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002343/0.5978, allocations: 0.7993 MB / 1.198 GB, free: 3.676 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.001291/0.5991, allocations: 0.523 MB / 1.198 GB, free: 3.16 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005812/0.605, allocations: 2.078 MB / 1.2 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.605, allocations: 4 kB / 1.2 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.6069, allocations: 0.6834 MB / 1.201 GB, free: 380 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/0.6106, allocations: 0.7458 MB / 1.202 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/0.6174, allocations: 3.474 MB / 1.205 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009448/0.6184, allocations: 1.257 MB / 1.206 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001765/0.6202, allocations: 367.2 kB / 1.207 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004405/0.6206, allocations: 123.4 kB / 1.207 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of SimCode: time 5.41e-07/0.6206, allocations: 0 / 1.207 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of Templates: time 0.05077/0.6714, allocations: 31.34 MB / 1.237 GB, free: 11.36 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)