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 2.727/2.727, allocations: 287.5 MB / 302.4 MB, free: 8.227 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.002042/0.002042, allocations: 178.3 kB / 371 MB, free: 10.87 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.193/2.193, allocations: 205.4 MB / 0.6297 GB, free: 10.64 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.0009306/0.0009305, allocations: 88.23 kB / 0.743 GB, free: 6.645 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004826/0.0004828, allocations: 11.73 kB / 0.8659 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.217, allocations: 115.3 MB / 0.9784 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.07835/0.2954, allocations: 55.77 MB / 1.033 GB, free: 4.371 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02615/0.3216, allocations: 12.26 MB / 1.045 GB, free: 8.086 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002789/0.3245, allocations: 63.5 kB / 1.045 GB, free: 8.023 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.00365/0.3282, allocations: 0.7143 MB / 1.046 GB, free: 7.305 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.008278/0.3365, allocations: 1.824 MB / 1.047 GB, free: 5.473 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.005659/0.3422, allocations: 1.174 MB / 1.049 GB, free: 4.312 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.0094/0.3516, allocations: 4.727 MB / 1.053 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002773/0.3544, allocations: 0.9928 MB / 1.054 GB, free: 14.55 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004262/0.3587, allocations: 1.295 MB / 1.055 GB, free: 13.25 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002969/0.3617, allocations: 1.081 MB / 1.056 GB, free: 12.17 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0005422/0.3623, allocations: 64 kB / 1.057 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004812/0.3672, allocations: 1.021 MB / 1.058 GB, free: 11.08 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.000859/0.3681, allocations: 330.6 kB / 1.058 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0009518/0.369, allocations: 356.8 kB / 1.058 GB, free: 10.4 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.0047/0.3738, allocations: 1.968 MB / 1.06 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.3738, allocations: 3.984 kB / 1.06 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.956e-06/0.3738, allocations: 0 / 1.06 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.894e-05/0.3739, allocations: 0 / 1.06 GB, free: 8.43 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.005572/0.3795, allocations: 1.913 MB / 1.062 GB, free: 6.449 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.3795, allocations: 8.031 kB / 1.062 GB, free: 6.441 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003912/0.3799, allocations: 147.7 kB / 1.062 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006171/0.3861, allocations: 0.634 MB / 1.063 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004001/0.3902, allocations: 1.339 MB / 1.064 GB, free: 4.262 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002356/0.3905, allocations: 141.4 kB / 1.064 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002776/0.3908, allocations: 100 kB / 1.064 GB, free: 4.016 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005265/0.396, allocations: 1.338 MB / 1.066 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.48e-05/0.3961, allocations: 4 kB / 1.066 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.3963, allocations: 43.88 kB / 1.066 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-05/0.3964, allocations: 24 kB / 1.066 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006609/0.403, allocations: 1.386 MB / 1.067 GB, free: 1.188 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.6898/1.093, allocations: 5.378 MB / 1.072 GB, free: 87.48 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006755/1.1, allocations: 1.085 MB / 1.073 GB, free: 87.02 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004874/1.105, allocations: 0.6319 MB / 1.074 GB, free: 86.85 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00142/1.106, allocations: 1.238 MB / 1.075 GB, free: 85.43 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005125/1.111, allocations: 0.6908 MB / 1.076 GB, free: 85.23 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 5.661e-06/1.111, allocations: 0.7188 kB / 1.076 GB, free: 85.23 MB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.01384/1.125, allocations: 1.79 MB / 1.078 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/1.125, allocations: 62.72 kB / 1.078 GB, free: 84.7 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004985/1.13, allocations: 1.303 MB / 1.079 GB, free: 84.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003781/1.131, allocations: 44.27 kB / 1.079 GB, free: 84.16 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001357/1.132, allocations: 0.6692 MB / 1.08 GB, free: 83.67 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006581/1.133, allocations: 238.6 kB / 1.08 GB, free: 83.5 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/1.133, allocations: 15.66 kB / 1.08 GB, free: 83.49 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001404/1.133, allocations: 334.3 kB / 1.08 GB, free: 83.17 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004713/1.138, allocations: 0.5543 MB / 1.081 GB, free: 83.05 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004824/1.143, allocations: 0.7807 MB / 1.081 GB, free: 82.68 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004445/1.147, allocations: 0.5985 MB / 1.082 GB, free: 82.48 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.54e-05/1.147, allocations: 1.562 kB / 1.082 GB, free: 82.48 MB / 0.6823 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.009406/1.157, allocations: 1.466 MB / 1.083 GB, free: 81.99 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/1.157, allocations: 208 kB / 1.084 GB, free: 81.75 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/1.157, allocations: 2.5 kB / 1.084 GB, free: 81.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/1.157, allocations: 6.625 kB / 1.084 GB, free: 81.75 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002532/1.16, allocations: 272.2 kB / 1.084 GB, free: 81.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.622e-05/1.16, allocations: 6.312 kB / 1.084 GB, free: 81.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/1.163, allocations: 250.3 kB / 1.084 GB, free: 81.66 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002248/1.163, allocations: 40.66 kB / 1.084 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/1.163, allocations: 8.234 kB / 1.084 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007267/1.17, allocations: 1.313 MB / 1.086 GB, free: 81.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/1.17, allocations: 3.406 kB / 1.086 GB, free: 81.25 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/1.17, allocations: 9.172 kB / 1.086 GB, free: 81.25 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/1.173, allocations: 273.1 kB / 1.086 GB, free: 81.22 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.238e-05/1.173, allocations: 7.484 kB / 1.086 GB, free: 81.22 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002973/1.176, allocations: 231.5 kB / 1.086 GB, free: 81.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/1.176, allocations: 39.34 kB / 1.086 GB, free: 81.15 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.001114/1.177, allocations: 415.3 kB / 1.086 GB, free: 80.84 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004611/1.178, allocations: 154.3 kB / 1.087 GB, free: 80.76 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007128/1.185, allocations: 1.523 MB / 1.088 GB, free: 80.27 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.264e-05/1.185, allocations: 13.78 kB / 1.088 GB, free: 80.27 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/1.185, allocations: 0 / 1.088 GB, free: 80.27 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006056/1.191, allocations: 1.297 MB / 1.089 GB, free: 79.8 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/1.203, allocations: 3.278 MB / 1.093 GB, free: 78.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/1.203, allocations: 5.281 kB / 1.093 GB, free: 78.26 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002291/1.205, allocations: 240.5 kB / 1.093 GB, free: 78.24 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.86e-05/1.205, allocations: 11.41 kB / 1.093 GB, free: 78.24 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/1.206, allocations: 25.67 kB / 1.093 GB, free: 78.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.746e-05/1.206, allocations: 12.56 kB / 1.093 GB, free: 78.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.597e-06/1.206, allocations: 6.484 kB / 1.093 GB, free: 78.23 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009948/1.216, allocations: 2.331 MB / 1.095 GB, free: 77.27 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001341/1.217, allocations: 376.3 kB / 1.095 GB, free: 77.01 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004477/1.217, allocations: 18.81 kB / 1.096 GB, free: 77 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002922/1.22, allocations: 177.3 kB / 1.096 GB, free: 76.98 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003306/1.221, allocations: 75 kB / 1.096 GB, free: 76.96 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001855/1.221, allocations: 38.44 kB / 1.096 GB, free: 76.95 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002178/1.223, allocations: 0.9263 MB / 1.097 GB, free: 76.59 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.51e-07/1.223, allocations: 0 / 1.097 GB, free: 76.59 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00349/1.227, allocations: 0.7846 MB / 1.097 GB, free: 76.46 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.01184/1.239, allocations: 3.257 MB / 1.101 GB, free: 74.91 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.01025/1.249, allocations: 2.096 MB / 1.103 GB, free: 74.27 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/1.249, allocations: 1.094 kB / 1.103 GB, free: 74.27 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.003646/1.253, allocations: 0.7185 MB / 1.103 GB, free: 74.06 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007084/1.26, allocations: 0.7525 MB / 1.104 GB, free: 73.88 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03326/1.293, allocations: 9.89 MB / 1.114 GB, free: 68.24 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/1.294, allocations: 1.253 MB / 1.115 GB, free: 67.29 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002983/1.297, allocations: 369.1 kB / 1.115 GB, free: 67.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/1.299, allocations: 0.5838 MB / 1.116 GB, free: 66.61 MB / 0.6823 GB Notification: Performance of SimCode: time 1.052e-06/1.299, allocations: 0 / 1.116 GB, free: 66.61 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/1.403, allocations: 42.94 MB / 1.158 GB, free: 26.54 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002651/1.404, allocations: 227.1 kB / 1.158 GB, free: 26.31 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.484/5.888, allocations: 0 / 1.158 GB, free: 26.31 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)