Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.768/1.768, allocations: 292.3 MB / 308.1 MB, free: 4.254 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.00159/0.00159, allocations: 186.4 kB / 376.9 MB, free: 1.816 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.717/1.717, allocations: 205.1 MB / 0.6354 GB, free: 9.773 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 97.19 kB / 0.748 GB, free: 61.38 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 51.91 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2981, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.571/0.8691, allocations: 60.07 MB / 1.041 GB, free: 63.05 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.01921/0.8884, allocations: 13.19 MB / 1.054 GB, free: 62.14 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003815/0.8923, allocations: 66.66 kB / 1.054 GB, free: 62.14 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.003307/0.8956, allocations: 0.8114 MB / 1.055 GB, free: 62.03 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.009461/0.9051, allocations: 2.139 MB / 1.057 GB, free: 61.17 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.005622/0.9108, allocations: 1.403 MB / 1.058 GB, free: 60.91 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.01027/0.921, allocations: 5.532 MB / 1.063 GB, free: 60 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002801/0.9239, allocations: 1.119 MB / 1.065 GB, free: 59.59 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004666/0.9286, allocations: 1.386 MB / 1.066 GB, free: 59 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003003/0.9317, allocations: 1.204 MB / 1.067 GB, free: 58.47 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0007637/0.9324, allocations: 72.34 kB / 1.067 GB, free: 58.47 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005913/0.9384, allocations: 1.38 MB / 1.069 GB, free: 57.98 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.001429/0.9399, allocations: 362 kB / 1.069 GB, free: 57.8 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.00325/0.9432, allocations: 0.8512 MB / 1.07 GB, free: 57.3 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.007144/0.9503, allocations: 2.711 MB / 1.072 GB, free: 56.29 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.9504, allocations: 0 / 1.072 GB, free: 56.29 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9504, allocations: 0 / 1.072 GB, free: 56.29 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.878e-05/0.9505, allocations: 0 / 1.072 GB, free: 56.29 MB / 0.7448 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.005875/0.9564, allocations: 2.195 MB / 1.074 GB, free: 54.86 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.9564, allocations: 9.844 kB / 1.074 GB, free: 54.86 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004021/0.9605, allocations: 0.6013 MB / 1.075 GB, free: 54.74 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003551/0.9641, allocations: 1.39 MB / 1.076 GB, free: 53.91 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.9643, allocations: 145.9 kB / 1.077 GB, free: 53.81 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000383/0.9647, allocations: 107.2 kB / 1.077 GB, free: 53.77 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00334/0.9681, allocations: 1.307 MB / 1.078 GB, free: 53.27 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.031e-05/0.9682, allocations: 7.062 kB / 1.078 GB, free: 53.27 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.9683, allocations: 34.94 kB / 1.078 GB, free: 53.24 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.909e-05/0.9683, allocations: 29.84 kB / 1.078 GB, free: 53.24 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003602/0.9719, allocations: 1.327 MB / 1.079 GB, free: 52.86 MB / 0.7448 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.008603/0.9806, allocations: 5.376 MB / 1.085 GB, free: 49.18 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/0.9832, allocations: 1.054 MB / 1.086 GB, free: 48.7 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.9848, allocations: 0.5932 MB / 1.086 GB, free: 48.53 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007447/0.9856, allocations: 1.237 MB / 1.087 GB, free: 47.1 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001858/0.9875, allocations: 0.6611 MB / 1.088 GB, free: 46.89 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=69): time 4.198e-06/0.9875, allocations: 0 / 1.088 GB, free: 46.89 MB / 0.7448 GB Notification: Performance of matching and sorting (n=69): time 0.005124/0.9926, allocations: 1.704 MB / 1.09 GB, free: 46.39 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.9927, allocations: 63.16 kB / 1.09 GB, free: 46.32 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.9949, allocations: 1.305 MB / 1.091 GB, free: 45.83 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.9951, allocations: 43.89 kB / 1.091 GB, free: 45.79 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/0.9956, allocations: 0.6741 MB / 1.092 GB, free: 45.25 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.9959, allocations: 235 kB / 1.092 GB, free: 45.07 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003114/0.9962, allocations: 176.8 kB / 1.092 GB, free: 44.98 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.251e-05/0.9963, allocations: 334.9 kB / 1.092 GB, free: 44.67 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.9977, allocations: 0.5333 MB / 1.093 GB, free: 44.52 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.9994, allocations: 0.7489 MB / 1.094 GB, free: 44.14 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00293/1.002, allocations: 1.139 MB / 1.095 GB, free: 43.69 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/1.002, allocations: 4 kB / 1.095 GB, free: 43.69 MB / 0.7448 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003852/1.006, allocations: 1.408 MB / 1.096 GB, free: 43.2 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/1.006, allocations: 31.95 kB / 1.096 GB, free: 43.17 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/1.006, allocations: 7.125 kB / 1.096 GB, free: 43.17 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/1.006, allocations: 10.28 kB / 1.096 GB, free: 43.16 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/1.008, allocations: 256.5 kB / 1.096 GB, free: 43.14 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.419e-05/1.008, allocations: 6.406 kB / 1.096 GB, free: 43.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/1.009, allocations: 223.3 kB / 1.097 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/1.01, allocations: 36.8 kB / 1.097 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001939/1.012, allocations: 0.8015 MB / 1.098 GB, free: 42.75 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001573/1.013, allocations: 0.7422 MB / 1.098 GB, free: 42.37 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00296/1.016, allocations: 1.135 MB / 1.099 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.16e-06/1.016, allocations: 3.469 kB / 1.099 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003848/1.02, allocations: 1.4 MB / 1.101 GB, free: 41.42 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.766e-05/1.02, allocations: 35.31 kB / 1.101 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.02, allocations: 2.969 kB / 1.101 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/1.02, allocations: 6.156 kB / 1.101 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/1.021, allocations: 252.8 kB / 1.101 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/1.021, allocations: 10.75 kB / 1.101 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001827/1.023, allocations: 207 kB / 1.101 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/1.023, allocations: 42.83 kB / 1.101 GB, free: 41.3 MB / 0.7448 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 (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 (95): * Single equations (assignments): 94 * 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.000302/1.024, allocations: 232.5 kB / 1.101 GB, free: 41.08 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/1.024, allocations: 149.8 kB / 1.102 GB, free: 41 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004041/1.028, allocations: 1.47 MB / 1.103 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/1.028, allocations: 13.19 kB / 1.103 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/1.028, allocations: 0 / 1.103 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003025/1.031, allocations: 1.232 MB / 1.104 GB, free: 40.06 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007522/1.039, allocations: 3.213 MB / 1.107 GB, free: 38.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/1.039, allocations: 7.203 kB / 1.107 GB, free: 38.5 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/1.04, allocations: 220.5 kB / 1.108 GB, free: 38.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.148e-05/1.04, allocations: 14.66 kB / 1.108 GB, free: 38.47 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.605e-05/1.04, allocations: 28.23 kB / 1.108 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.691e-05/1.04, allocations: 10.73 kB / 1.108 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.04, allocations: 3.406 kB / 1.108 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03572/1.076, allocations: 11.59 MB / 1.119 GB, free: 33.52 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007641/1.077, allocations: 351.1 kB / 1.119 GB, free: 33.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003057/1.077, allocations: 17.62 kB / 1.119 GB, free: 33.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/1.078, allocations: 162.6 kB / 1.119 GB, free: 33.24 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/1.079, allocations: 69.88 kB / 1.12 GB, free: 33.22 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/1.079, allocations: 42.81 kB / 1.12 GB, free: 33.21 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.001398/1.08, allocations: 0.9372 MB / 1.121 GB, free: 32.85 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.6e-07/1.08, allocations: 0 / 1.121 GB, free: 32.85 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.003497/1.084, allocations: 1.231 MB / 1.122 GB, free: 32.65 MB / 0.7448 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 (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.001041/1.085, allocations: 0.5072 MB / 1.122 GB, free: 32.41 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.00505/1.09, allocations: 1.999 MB / 1.124 GB, free: 31.77 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.09, allocations: 8.062 kB / 1.124 GB, free: 31.77 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.001777/1.092, allocations: 0.6858 MB / 1.125 GB, free: 31.57 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00382/1.095, allocations: 0.7424 MB / 1.126 GB, free: 31.38 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005057/1.101, allocations: 3.695 MB / 1.129 GB, free: 29.08 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005947/1.101, allocations: 1.269 MB / 1.13 GB, free: 28.31 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.002261/1.103, allocations: 397.7 kB / 1.131 GB, free: 28.2 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005854/1.104, allocations: 134.8 kB / 1.131 GB, free: 28.19 MB / 0.7448 GB Notification: Performance of SimCode: time 1.653e-06/1.104, allocations: 0 / 1.131 GB, free: 28.19 MB / 0.7448 GB Notification: Performance of Templates: time 0.07051/1.175, allocations: 36.29 MB / 1.166 GB, free: 20.41 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)