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: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.518/1.518, allocations: 287.4 MB / 302.6 MB, free: 8.309 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.0008911/0.0008911, allocations: 189.8 kB / 371.1 MB, free: 10.84 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.157/1.157, allocations: 205.4 MB / 0.6298 GB, free: 10.57 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.0006701/0.0006701, allocations: 102.6 kB / 0.7431 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003184, allocations: 12.14 kB / 0.8662 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1536, allocations: 115.3 MB / 0.9787 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.04006/0.1937, allocations: 55.77 MB / 1.033 GB, free: 4.188 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.0141/0.2078, allocations: 12.27 MB / 1.045 GB, free: 7.895 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.2093, allocations: 59.56 kB / 1.045 GB, free: 7.836 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.001863/0.2112, allocations: 0.7065 MB / 1.046 GB, free: 7.125 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.004783/0.216, allocations: 1.817 MB / 1.048 GB, free: 5.301 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.002743/0.2188, allocations: 1.176 MB / 1.049 GB, free: 4.137 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.00449/0.2233, allocations: 4.784 MB / 1.054 GB, free: 15.34 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.2249, allocations: 1.08 MB / 1.055 GB, free: 14.22 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.2271, allocations: 1.299 MB / 1.056 GB, free: 12.92 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/0.2288, allocations: 1.097 MB / 1.057 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002813/0.2291, allocations: 60 kB / 1.057 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002324/0.2314, allocations: 1.017 MB / 1.058 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0003017/0.2317, allocations: 326.6 kB / 1.058 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0004094/0.2321, allocations: 360.8 kB / 1.059 GB, free: 10.06 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.001793/0.2339, allocations: 1.968 MB / 1.061 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.234, allocations: 4 kB / 1.061 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.492e-06/0.234, allocations: 0 / 1.061 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.399e-05/0.234, allocations: 0 / 1.061 GB, free: 8.086 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.002637/0.2366, allocations: 1.898 MB / 1.062 GB, free: 6.125 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2367, allocations: 12.03 kB / 1.062 GB, free: 6.113 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.2368, allocations: 147.9 kB / 1.063 GB, free: 5.961 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002959/0.2398, allocations: 0.6345 MB / 1.063 GB, free: 5.324 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001818/0.2416, allocations: 1.396 MB / 1.065 GB, free: 3.875 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.2418, allocations: 141.4 kB / 1.065 GB, free: 3.723 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.2419, allocations: 100 kB / 1.065 GB, free: 3.625 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.2444, allocations: 1.338 MB / 1.066 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.2445, allocations: 4 kB / 1.066 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.459e-05/0.2446, allocations: 43.94 kB / 1.066 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.862e-05/0.2446, allocations: 27.94 kB / 1.066 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003191/0.2478, allocations: 1.386 MB / 1.067 GB, free: 0.793 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.3126/0.5604, allocations: 5.38 MB / 1.073 GB, free: 87.31 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002286/0.5628, allocations: 1.092 MB / 1.074 GB, free: 86.86 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.5643, allocations: 0.6235 MB / 1.074 GB, free: 86.69 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005456/0.5648, allocations: 1.237 MB / 1.076 GB, free: 85.27 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001676/0.5665, allocations: 0.6898 MB / 1.076 GB, free: 85.08 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 2.495e-06/0.5665, allocations: 0 / 1.076 GB, free: 85.08 MB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.004702/0.5712, allocations: 1.8 MB / 1.078 GB, free: 84.66 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.5713, allocations: 62.11 kB / 1.078 GB, free: 84.6 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.5729, allocations: 1.299 MB / 1.079 GB, free: 84.11 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.067e-05/0.5729, allocations: 43.48 kB / 1.079 GB, free: 84.06 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004246/0.5734, allocations: 0.6652 MB / 1.08 GB, free: 83.58 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.5735, allocations: 238.9 kB / 1.08 GB, free: 83.4 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.5736, allocations: 15.44 kB / 1.08 GB, free: 83.39 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.362e-05/0.5737, allocations: 335.7 kB / 1.081 GB, free: 83.07 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.5751, allocations: 0.5538 MB / 1.081 GB, free: 82.95 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.5767, allocations: 0.774 MB / 1.082 GB, free: 82.58 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003065/0.5798, allocations: 1.206 MB / 1.083 GB, free: 82.13 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5798, allocations: 0.75 kB / 1.083 GB, free: 82.13 MB / 0.6823 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003359/0.5832, allocations: 1.469 MB / 1.085 GB, free: 81.64 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.213e-05/0.5833, allocations: 210.5 kB / 1.085 GB, free: 81.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.5833, allocations: 3.062 kB / 1.085 GB, free: 81.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.5833, allocations: 6.25 kB / 1.085 GB, free: 81.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.5845, allocations: 270.7 kB / 1.085 GB, free: 81.38 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.5845, allocations: 7.484 kB / 1.085 GB, free: 81.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.5858, allocations: 245.8 kB / 1.085 GB, free: 81.31 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.12e-05/0.5859, allocations: 40.39 kB / 1.085 GB, free: 81.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.5859, allocations: 3.781 kB / 1.085 GB, free: 81.3 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003048/0.589, allocations: 1.31 MB / 1.087 GB, free: 80.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.589, allocations: 3.75 kB / 1.087 GB, free: 80.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.544e-06/0.589, allocations: 9.484 kB / 1.087 GB, free: 80.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.5901, allocations: 271.8 kB / 1.087 GB, free: 80.87 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.5902, allocations: 11.11 kB / 1.087 GB, free: 80.87 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.5914, allocations: 233.3 kB / 1.087 GB, free: 80.81 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.219e-05/0.5915, allocations: 39.52 kB / 1.087 GB, free: 80.8 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.0004754/0.592, allocations: 416.8 kB / 1.088 GB, free: 80.49 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.5921, allocations: 149.6 kB / 1.088 GB, free: 80.41 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/0.5955, allocations: 1.527 MB / 1.089 GB, free: 79.92 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.5955, allocations: 13.36 kB / 1.089 GB, free: 79.92 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5956, allocations: 0 / 1.089 GB, free: 79.92 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002852/0.5984, allocations: 1.297 MB / 1.09 GB, free: 79.46 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005889/0.6043, allocations: 3.272 MB / 1.094 GB, free: 77.92 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.6043, allocations: 4.562 kB / 1.094 GB, free: 77.92 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.6054, allocations: 237 kB / 1.094 GB, free: 77.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.6054, allocations: 9.906 kB / 1.094 GB, free: 77.9 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.055e-05/0.6055, allocations: 29.25 kB / 1.094 GB, free: 77.89 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.6055, allocations: 13 kB / 1.094 GB, free: 77.88 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.6055, allocations: 5.281 kB / 1.094 GB, free: 77.88 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004583/0.6101, allocations: 2.334 MB / 1.096 GB, free: 76.93 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004793/0.6106, allocations: 369.8 kB / 1.097 GB, free: 76.67 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001693/0.6108, allocations: 25.7 kB / 1.097 GB, free: 76.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.612, allocations: 175 kB / 1.097 GB, free: 76.63 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.6121, allocations: 81.16 kB / 1.097 GB, free: 76.61 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.912e-05/0.6122, allocations: 37.84 kB / 1.097 GB, free: 76.61 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001143/0.6134, allocations: 0.9265 MB / 1.098 GB, free: 76.24 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6134, allocations: 0 / 1.098 GB, free: 76.24 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001741/0.6151, allocations: 0.7853 MB / 1.099 GB, free: 76.11 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.005596/0.6207, allocations: 3.258 MB / 1.102 GB, free: 74.56 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004756/0.6255, allocations: 2.093 MB / 1.104 GB, free: 73.92 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.6255, allocations: 0.9688 kB / 1.104 GB, free: 73.92 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.6271, allocations: 0.7227 MB / 1.104 GB, free: 73.71 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003879/0.631, allocations: 0.7692 MB / 1.105 GB, free: 73.53 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/0.6481, allocations: 9.883 MB / 1.115 GB, free: 67.77 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005304/0.6486, allocations: 1.241 MB / 1.116 GB, free: 66.82 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001505/0.6501, allocations: 373.1 kB / 1.116 GB, free: 66.63 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.6508, allocations: 0.5878 MB / 1.117 GB, free: 66.14 MB / 0.6823 GB Notification: Performance of SimCode: time 1.153e-06/0.6508, allocations: 0 / 1.117 GB, free: 66.14 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8662/1.517, allocations: 44.33 MB / 1.16 GB, free: 24.16 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002498/1.517, allocations: 237 kB / 1.161 GB, free: 23.93 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.117/4.634, allocations: 0 / 1.161 GB, free: 23.93 MB / 0.6823 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)