Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.847/2.847, allocations: 287.5 MB / 302.4 MB, free: 8.363 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.002047/0.002047, allocations: 174 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.203/2.203, allocations: 205.4 MB / 0.6297 GB, free: 10.58 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.0008937/0.0008937, allocations: 93.27 kB / 0.743 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005032/0.0005035, allocations: 15.28 kB / 0.8658 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2244, allocations: 115.3 MB / 0.9783 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.08219/0.3067, allocations: 55.76 MB / 1.033 GB, free: 4.453 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02764/0.3344, allocations: 12.26 MB / 1.045 GB, free: 8.168 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003073/0.3375, allocations: 67.5 kB / 1.045 GB, free: 8.102 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003976/0.3416, allocations: 0.6987 MB / 1.046 GB, free: 7.398 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.008728/0.3503, allocations: 1.833 MB / 1.047 GB, free: 5.559 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.005868/0.3562, allocations: 1.173 MB / 1.048 GB, free: 4.398 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.00948/0.3657, allocations: 4.736 MB / 1.053 GB, free: 15.65 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002748/0.3685, allocations: 0.9776 MB / 1.054 GB, free: 14.65 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004634/0.3732, allocations: 1.303 MB / 1.055 GB, free: 13.34 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003218/0.3765, allocations: 1.089 MB / 1.056 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0007227/0.3773, allocations: 60 kB / 1.056 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005093/0.3824, allocations: 1.014 MB / 1.057 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0009591/0.3834, allocations: 322.5 kB / 1.058 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.000996/0.3845, allocations: 360.8 kB / 1.058 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.005392/0.3899, allocations: 1.979 MB / 1.06 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.39, allocations: 0 / 1.06 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.517e-06/0.39, allocations: 0 / 1.06 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.348e-05/0.3901, allocations: 8 kB / 1.06 GB, free: 8.508 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.009872/0.4, allocations: 1.905 MB / 1.062 GB, free: 6.535 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/0.4001, allocations: 12.03 kB / 1.062 GB, free: 6.523 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01023/0.4103, allocations: 0.6379 MB / 1.063 GB, free: 5.883 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006322/0.4167, allocations: 1.339 MB / 1.064 GB, free: 4.492 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000376/0.4172, allocations: 137.4 kB / 1.064 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005331/0.4177, allocations: 100 kB / 1.064 GB, free: 4.25 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00832/0.4261, allocations: 1.342 MB / 1.065 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.043e-05/0.4262, allocations: 0 / 1.065 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002669/0.4265, allocations: 40 kB / 1.065 GB, free: 2.832 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-05/0.4266, allocations: 20 kB / 1.065 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.4377, allocations: 1.39 MB / 1.067 GB, free: 1.426 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.7076/1.145, allocations: 5.394 MB / 1.072 GB, free: 87.51 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006821/1.152, allocations: 1.088 MB / 1.073 GB, free: 87.05 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004675/1.157, allocations: 0.628 MB / 1.074 GB, free: 86.89 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001587/1.159, allocations: 1.238 MB / 1.075 GB, free: 85.47 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00428/1.163, allocations: 0.6876 MB / 1.076 GB, free: 85.28 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 7.394e-06/1.163, allocations: 2.156 kB / 1.076 GB, free: 85.28 MB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.01311/1.176, allocations: 1.796 MB / 1.077 GB, free: 84.83 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.16e-05/1.176, allocations: 64 kB / 1.077 GB, free: 84.76 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004868/1.181, allocations: 1.297 MB / 1.079 GB, free: 84.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003462/1.182, allocations: 44.8 kB / 1.079 GB, free: 84.22 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009179/1.183, allocations: 0.6693 MB / 1.079 GB, free: 83.74 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004375/1.183, allocations: 240.2 kB / 1.08 GB, free: 83.56 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/1.183, allocations: 15.91 kB / 1.08 GB, free: 83.55 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001116/1.183, allocations: 340.4 kB / 1.08 GB, free: 83.23 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/1.186, allocations: 0.5485 MB / 1.08 GB, free: 83.11 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003581/1.19, allocations: 0.7791 MB / 1.081 GB, free: 82.73 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0033/1.193, allocations: 0.5958 MB / 1.082 GB, free: 82.55 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/1.193, allocations: 0.7188 kB / 1.082 GB, free: 82.55 MB / 0.6823 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.007489/1.201, allocations: 1.465 MB / 1.083 GB, free: 82.07 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/1.201, allocations: 207.8 kB / 1.083 GB, free: 81.83 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/1.201, allocations: 2.875 kB / 1.083 GB, free: 81.83 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.478e-05/1.201, allocations: 11.05 kB / 1.083 GB, free: 81.82 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/1.204, allocations: 271.9 kB / 1.084 GB, free: 81.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.591e-05/1.204, allocations: 6.984 kB / 1.084 GB, free: 81.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/1.207, allocations: 238.5 kB / 1.084 GB, free: 81.74 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002382/1.207, allocations: 44.2 kB / 1.084 GB, free: 81.73 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/1.207, allocations: 7.562 kB / 1.084 GB, free: 81.73 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006603/1.214, allocations: 1.306 MB / 1.085 GB, free: 81.33 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/1.214, allocations: 9 kB / 1.085 GB, free: 81.33 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/1.214, allocations: 5.906 kB / 1.085 GB, free: 81.33 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/1.216, allocations: 268.6 kB / 1.086 GB, free: 81.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/1.216, allocations: 10.45 kB / 1.086 GB, free: 81.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00306/1.22, allocations: 235.1 kB / 1.086 GB, free: 81.24 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002161/1.22, allocations: 38.61 kB / 1.086 GB, free: 81.23 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.001118/1.221, allocations: 424.5 kB / 1.086 GB, free: 80.92 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005185/1.221, allocations: 145.9 kB / 1.086 GB, free: 80.84 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007158/1.229, allocations: 1.531 MB / 1.088 GB, free: 80.34 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.933e-05/1.229, allocations: 8.906 kB / 1.088 GB, free: 80.34 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/1.229, allocations: 0 / 1.088 GB, free: 80.34 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006222/1.235, allocations: 1.297 MB / 1.089 GB, free: 79.88 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/1.247, allocations: 3.275 MB / 1.092 GB, free: 78.34 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.751e-05/1.248, allocations: 5.984 kB / 1.092 GB, free: 78.34 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/1.25, allocations: 236.2 kB / 1.093 GB, free: 78.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3e-05/1.25, allocations: 8.625 kB / 1.093 GB, free: 78.32 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/1.25, allocations: 33.02 kB / 1.093 GB, free: 78.31 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.859e-05/1.25, allocations: 15.41 kB / 1.093 GB, free: 78.31 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/1.25, allocations: 9.5 kB / 1.093 GB, free: 78.3 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/1.261, allocations: 2.332 MB / 1.095 GB, free: 77.35 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/1.262, allocations: 366.1 kB / 1.095 GB, free: 77.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004261/1.263, allocations: 23.8 kB / 1.095 GB, free: 77.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002916/1.265, allocations: 182 kB / 1.095 GB, free: 77.05 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/1.266, allocations: 73.91 kB / 1.096 GB, free: 77.04 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.266, allocations: 42.98 kB / 1.096 GB, free: 77.03 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002193/1.268, allocations: 0.9229 MB / 1.096 GB, free: 76.67 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.72e-07/1.268, allocations: 0 / 1.096 GB, free: 76.67 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003514/1.272, allocations: 0.784 MB / 1.097 GB, free: 76.54 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.00155/1.273, allocations: 500 kB / 1.098 GB, free: 76.37 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.01022/1.284, allocations: 2.088 MB / 1.1 GB, free: 75.73 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/1.284, allocations: 2.469 kB / 1.1 GB, free: 75.73 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.00369/1.287, allocations: 0.7158 MB / 1.1 GB, free: 75.54 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007339/1.295, allocations: 0.769 MB / 1.101 GB, free: 75.34 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008606/1.303, allocations: 3.231 MB / 1.104 GB, free: 73.46 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/1.305, allocations: 1.243 MB / 1.106 GB, free: 72.7 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003217/1.308, allocations: 364.4 kB / 1.106 GB, free: 72.59 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008005/1.309, allocations: 133.3 kB / 1.106 GB, free: 72.57 MB / 0.6823 GB Notification: Performance of SimCode: time 1.383e-06/1.309, allocations: 0 / 1.106 GB, free: 72.57 MB / 0.6823 GB Notification: Performance of Templates: time 0.07561/1.384, allocations: 29.33 MB / 1.135 GB, free: 50.47 MB / 0.6823 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)