Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 193.7 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 239.9 MB, free: 4.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.68/2.68, allocations: 461.9 MB / 0.7344 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 61.69 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3758, allocations: 157.4 MB / 1.052 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06998/0.4458, allocations: 60.12 MB / 1.111 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02224/0.4681, allocations: 13.11 MB / 1.124 GB, free: 15.23 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00348/0.4717, allocations: 67.56 kB / 1.124 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003507/0.4753, allocations: 0.8434 MB / 1.125 GB, free: 14.31 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.008273/0.4836, allocations: 2.149 MB / 1.127 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004815/0.4884, allocations: 1.449 MB / 1.128 GB, free: 10.72 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007114/0.4955, allocations: 4.36 MB / 1.133 GB, free: 6.348 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002475/0.498, allocations: 1.322 MB / 1.134 GB, free: 4.996 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004113/0.5021, allocations: 1.587 MB / 1.135 GB, free: 3.406 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002143/0.5043, allocations: 1.237 MB / 1.137 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.000458/0.5048, allocations: 144 kB / 1.137 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003352/0.5081, allocations: 1.497 MB / 1.138 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0006253/0.5088, allocations: 414.5 kB / 1.139 GB, free: 120 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001595/0.5104, allocations: 0.9251 MB / 1.14 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004561/0.5149, allocations: 2.765 MB / 1.142 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.515, allocations: 3.938 kB / 1.142 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.443e-06/0.515, allocations: 0 / 1.142 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.238e-05/0.515, allocations: 0 / 1.142 GB, free: 12.41 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.005085/0.5201, allocations: 2.185 MB / 1.144 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.5202, allocations: 12.62 kB / 1.144 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002893/0.5205, allocations: 144 kB / 1.144 GB, free: 10 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003847/0.5243, allocations: 0.5564 MB / 1.145 GB, free: 9.441 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003091/0.5274, allocations: 1.402 MB / 1.146 GB, free: 7.984 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.5277, allocations: 149.3 kB / 1.147 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.5279, allocations: 104 kB / 1.147 GB, free: 7.727 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003381/0.5313, allocations: 1.33 MB / 1.148 GB, free: 6.359 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.5314, allocations: 0 / 1.148 GB, free: 6.359 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.5315, allocations: 36 kB / 1.148 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.5315, allocations: 35.92 kB / 1.148 GB, free: 6.289 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003743/0.5353, allocations: 1.327 MB / 1.149 GB, free: 4.965 MB / 0.9044 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.008954/0.5442, allocations: 5.453 MB / 1.155 GB, free: 15.15 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00564/0.5499, allocations: 1.34 MB / 1.156 GB, free: 13.79 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.5516, allocations: 0.5997 MB / 1.157 GB, free: 13.18 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001084/0.5527, allocations: 1.232 MB / 1.158 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001854/0.5546, allocations: 0.6588 MB / 1.158 GB, free: 11.01 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 3.125e-06/0.5546, allocations: 3.938 kB / 1.158 GB, free: 11 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.00524/0.5598, allocations: 1.691 MB / 1.16 GB, free: 9.305 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.5599, allocations: 59.97 kB / 1.16 GB, free: 9.234 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002098/0.562, allocations: 1.279 MB / 1.161 GB, free: 7.945 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.5621, allocations: 41.7 kB / 1.161 GB, free: 7.898 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006297/0.5628, allocations: 0.658 MB / 1.162 GB, free: 7.23 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003025/0.5631, allocations: 240.6 kB / 1.162 GB, free: 6.992 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003321/0.5634, allocations: 178.4 kB / 1.162 GB, free: 6.812 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5636, allocations: 337.9 kB / 1.163 GB, free: 6.477 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.5651, allocations: 0.52 MB / 1.163 GB, free: 5.953 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/0.5669, allocations: 0.7599 MB / 1.164 GB, free: 5.113 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003041/0.5699, allocations: 1.144 MB / 1.165 GB, free: 3.922 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.57, allocations: 0 / 1.165 GB, free: 3.922 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003901/0.5739, allocations: 1.407 MB / 1.166 GB, free: 2.504 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.5739, allocations: 33.64 kB / 1.167 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.5739, allocations: 4 kB / 1.167 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.574, allocations: 11.94 kB / 1.167 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.5753, allocations: 260 kB / 1.167 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.237e-05/0.5753, allocations: 11.94 kB / 1.167 GB, free: 2.184 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.5772, allocations: 230.9 kB / 1.167 GB, free: 1.957 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.5773, allocations: 31.98 kB / 1.167 GB, free: 1.926 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002097/0.5794, allocations: 0.7829 MB / 1.168 GB, free: 1.137 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001757/0.5812, allocations: 0.7477 MB / 1.169 GB, free: 312 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003071/0.5843, allocations: 1.136 MB / 1.17 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.793e-06/0.5843, allocations: 3.984 kB / 1.17 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.00402/0.5883, allocations: 1.391 MB / 1.171 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.878e-05/0.5884, allocations: 34.02 kB / 1.171 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.5884, allocations: 8 kB / 1.171 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.5884, allocations: 4 kB / 1.171 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.5897, allocations: 263.5 kB / 1.171 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-05/0.5897, allocations: 8 kB / 1.171 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.5916, allocations: 215.2 kB / 1.172 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.5917, allocations: 39.92 kB / 1.172 GB, free: 13.14 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (chi.tru.y,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 (97): * Single equations (assignments): 96 * 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.0003965/0.5921, allocations: 236.1 kB / 1.172 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005056/0.5926, allocations: 150.2 kB / 1.172 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00421/0.5968, allocations: 1.462 MB / 1.173 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-05/0.5969, allocations: 11.98 kB / 1.173 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.5969, allocations: 4 kB / 1.173 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003185/0.6001, allocations: 1.222 MB / 1.175 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/0.6076, allocations: 3.198 MB / 1.178 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.6076, allocations: 4 kB / 1.178 GB, free: 6.645 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.6088, allocations: 220.2 kB / 1.178 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.193e-05/0.6088, allocations: 11.94 kB / 1.178 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.555e-05/0.6089, allocations: 31.97 kB / 1.178 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.6089, allocations: 7.938 kB / 1.178 GB, free: 6.379 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.6089, allocations: 8 kB / 1.178 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005514/0.6145, allocations: 2.216 MB / 1.18 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008471/0.6153, allocations: 335 kB / 1.18 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003629/0.6157, allocations: 31.92 kB / 1.18 GB, free: 3.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/0.6175, allocations: 163.7 kB / 1.181 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.6177, allocations: 76.34 kB / 1.181 GB, free: 3.465 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.6178, allocations: 39.97 kB / 1.181 GB, free: 3.426 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001744/0.6195, allocations: 0.9129 MB / 1.182 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6196, allocations: 0 / 1.182 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002836/0.6224, allocations: 0.7876 MB / 1.182 GB, free: 1.727 MB / 0.9356 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 (74): * Single equations (assignments): 66 * 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.007522/0.6299, allocations: 3.169 MB / 1.185 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005784/0.6357, allocations: 2.05 MB / 1.187 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/0.6358, allocations: 8.188 kB / 1.188 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.6376, allocations: 0.6794 MB / 1.188 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003638/0.6413, allocations: 0.7601 MB / 1.189 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02927/0.6706, allocations: 13.48 MB / 1.202 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.6719, allocations: 1.234 MB / 1.203 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002213/0.6741, allocations: 363.6 kB / 1.204 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/0.6752, allocations: 0.593 MB / 1.204 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of SimCode: time 8.32e-07/0.6752, allocations: 0 / 1.204 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.557/2.232, allocations: 43.02 MB / 1.246 GB, free: 244 kB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.5013/2.734, allocations: 242 kB / 1.246 GB, free: 199.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.649/7.383, allocations: 0 / 1.246 GB, free: 199.1 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)