Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.914/1.914, allocations: 288.4 MB / 303.7 MB, free: 7.996 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 181.6 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 0.631 GB, free: 9.91 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008302/0.0008301, allocations: 86.38 kB / 0.7444 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004056/0.0004058, allocations: 12.16 kB / 0.8675 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2234, allocations: 115.3 MB / 0.9801 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.04647/0.2699, allocations: 55.77 MB / 1.035 GB, free: 3.422 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02018/0.2902, allocations: 12.27 MB / 1.047 GB, free: 7.125 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.2931, allocations: 55.62 kB / 1.047 GB, free: 7.07 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.002952/0.2961, allocations: 0.7104 MB / 1.047 GB, free: 6.355 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.007181/0.3033, allocations: 1.949 MB / 1.049 GB, free: 4.398 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Fluid/Chillers/BaseClasses/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function ‘Buildings.Fluid.Chillers.BaseClasses.warnIfPerformanceOutOfBounds‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.004244/0.3076, allocations: 1.184 MB / 1.05 GB, free: 3.227 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.006756/0.3143, allocations: 4.785 MB / 1.055 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002818/0.3172, allocations: 1.088 MB / 1.056 GB, free: 13.31 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003928/0.3211, allocations: 1.33 MB / 1.057 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.3239, allocations: 1.089 MB / 1.058 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0005826/0.3245, allocations: 56 kB / 1.059 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004281/0.3288, allocations: 1.298 MB / 1.06 GB, free: 9.523 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0008666/0.3297, allocations: 326.6 kB / 1.06 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.002165/0.3318, allocations: 0.8024 MB / 1.061 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.003936/0.3358, allocations: 2.042 MB / 1.063 GB, free: 6.344 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3358, allocations: 4 kB / 1.063 GB, free: 6.34 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.765e-06/0.3358, allocations: 4 kB / 1.063 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001183/0.336, allocations: 0 / 1.063 GB, free: 6.336 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00521/0.3412, allocations: 1.894 MB / 1.065 GB, free: 4.379 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.3412, allocations: 8.031 kB / 1.065 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003661/0.3449, allocations: 0.6386 MB / 1.065 GB, free: 3.73 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00288/0.3478, allocations: 1.396 MB / 1.067 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.348, allocations: 145.4 kB / 1.067 GB, free: 2.125 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002221/0.3482, allocations: 96 kB / 1.067 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.3513, allocations: 1.346 MB / 1.068 GB, free: 0.6523 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.3513, allocations: 7.969 kB / 1.068 GB, free: 0.6445 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.875e-05/0.3514, allocations: 40 kB / 1.068 GB, free: 0.6055 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.438e-05/0.3515, allocations: 28 kB / 1.068 GB, free: 0.5781 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4707/0.8221, allocations: 1.377 MB / 1.07 GB, free: 90.23 MB / 0.6823 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.009252/0.8315, allocations: 5.382 MB / 1.075 GB, free: 87 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002716/0.8342, allocations: 1.087 MB / 1.076 GB, free: 86.54 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001821/0.836, allocations: 0.6285 MB / 1.077 GB, free: 86.38 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007671/0.8368, allocations: 1.238 MB / 1.078 GB, free: 84.96 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001989/0.8388, allocations: 0.6853 MB / 1.079 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 3.436e-06/0.8388, allocations: 0 / 1.079 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.005954/0.8448, allocations: 1.807 MB / 1.08 GB, free: 84.3 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.8449, allocations: 59.83 kB / 1.08 GB, free: 84.24 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00267/0.8475, allocations: 1.297 MB / 1.082 GB, free: 83.75 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002002/0.8478, allocations: 47.44 kB / 1.082 GB, free: 83.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007917/0.8486, allocations: 0.6641 MB / 1.082 GB, free: 83.2 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003175/0.8489, allocations: 237.2 kB / 1.083 GB, free: 83.02 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.849, allocations: 15.75 kB / 1.083 GB, free: 83 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.8491, allocations: 338.7 kB / 1.083 GB, free: 82.68 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/0.8512, allocations: 0.5529 MB / 1.083 GB, free: 82.56 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002299/0.8535, allocations: 0.7802 MB / 1.084 GB, free: 82.19 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003701/0.8573, allocations: 1.197 MB / 1.085 GB, free: 81.73 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.8573, allocations: 5.156 kB / 1.085 GB, free: 81.73 MB / 0.6823 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004285/0.8616, allocations: 1.462 MB / 1.087 GB, free: 81.24 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.8617, allocations: 216.9 kB / 1.087 GB, free: 80.99 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.8617, allocations: 3 kB / 1.087 GB, free: 80.99 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/0.8618, allocations: 6.781 kB / 1.087 GB, free: 80.99 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.8631, allocations: 273.8 kB / 1.087 GB, free: 80.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.8631, allocations: 8.062 kB / 1.087 GB, free: 80.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.8651, allocations: 240.9 kB / 1.087 GB, free: 80.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.8652, allocations: 40.28 kB / 1.088 GB, free: 80.89 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.8652, allocations: 4.438 kB / 1.088 GB, free: 80.89 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003743/0.8689, allocations: 1.31 MB / 1.089 GB, free: 80.49 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.869, allocations: 2.594 kB / 1.089 GB, free: 80.49 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.869, allocations: 10.72 kB / 1.089 GB, free: 80.49 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.8703, allocations: 272.8 kB / 1.089 GB, free: 80.46 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.8703, allocations: 11.66 kB / 1.089 GB, free: 80.46 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/0.8722, allocations: 237.7 kB / 1.089 GB, free: 80.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.426e-05/0.8723, allocations: 41.62 kB / 1.089 GB, free: 80.39 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008747/0.8732, allocations: 420 kB / 1.09 GB, free: 80.08 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.8734, allocations: 146.5 kB / 1.09 GB, free: 80.01 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004248/0.8777, allocations: 1.532 MB / 1.091 GB, free: 79.52 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.055e-05/0.8777, allocations: 12.17 kB / 1.091 GB, free: 79.51 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.8778, allocations: 5.375 kB / 1.091 GB, free: 79.51 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0034/0.8812, allocations: 1.292 MB / 1.093 GB, free: 79.05 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00731/0.8885, allocations: 3.275 MB / 1.096 GB, free: 77.51 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.8886, allocations: 7.656 kB / 1.096 GB, free: 77.51 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.8898, allocations: 240.5 kB / 1.096 GB, free: 77.49 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.596e-05/0.8899, allocations: 7.75 kB / 1.096 GB, free: 77.49 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.14e-05/0.89, allocations: 28.7 kB / 1.096 GB, free: 77.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.54e-05/0.89, allocations: 11.17 kB / 1.096 GB, free: 77.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.89, allocations: 8.25 kB / 1.096 GB, free: 77.47 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005781/0.8958, allocations: 2.327 MB / 1.098 GB, free: 76.52 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009523/0.8968, allocations: 371.3 kB / 1.099 GB, free: 76.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/0.897, allocations: 28.12 kB / 1.099 GB, free: 76.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/0.8984, allocations: 174.9 kB / 1.099 GB, free: 76.22 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.8986, allocations: 79.17 kB / 1.099 GB, free: 76.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.8987, allocations: 38.91 kB / 1.099 GB, free: 76.19 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002968/0.9017, allocations: 0.9223 MB / 1.1 GB, free: 75.83 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8.91e-07/0.9018, allocations: 0 / 1.1 GB, free: 75.83 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004295/0.9061, allocations: 0.7907 MB / 1.101 GB, free: 75.7 MB / 0.6823 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 (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001632/0.9077, allocations: 0.5072 MB / 1.101 GB, free: 75.52 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.008029/0.9158, allocations: 2.097 MB / 1.103 GB, free: 74.56 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/0.9158, allocations: 1.062 kB / 1.103 GB, free: 74.56 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002831/0.9187, allocations: 0.7137 MB / 1.104 GB, free: 74.26 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007219/0.9259, allocations: 0.7658 MB / 1.105 GB, free: 73.9 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007815/0.9338, allocations: 3.226 MB / 1.108 GB, free: 71.75 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.9351, allocations: 1.241 MB / 1.109 GB, free: 70.8 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.00335/0.9384, allocations: 380.3 kB / 1.109 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006545/0.9391, allocations: 132.8 kB / 1.11 GB, free: 70.58 MB / 0.6823 GB Notification: Performance of SimCode: time 1.413e-06/0.9391, allocations: 0 / 1.11 GB, free: 70.58 MB / 0.6823 GB Notification: Performance of Templates: time 0.07353/1.013, allocations: 30.69 MB / 1.14 GB, free: 45.76 MB / 0.6823 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)