Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_9_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.005825/0.005825, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001344/0.001344, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.229/2.229, allocations: 390.2 MB / 0.6648 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 66.72 kB / 0.9504 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3324, allocations: 140.4 MB / 1.087 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.05999/0.3924, allocations: 60.47 MB / 1.147 GB, free: 5.281 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.0214/0.4139, allocations: 13.16 MB / 1.159 GB, free: 8.09 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00275/0.4167, allocations: 71.56 kB / 1.159 GB, free: 8.02 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.002569/0.4192, allocations: 0.9693 MB / 1.16 GB, free: 7.047 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.006285/0.4256, allocations: 2.312 MB / 1.163 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004027/0.4296, allocations: 1.543 MB / 1.164 GB, free: 3.195 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.005499/0.4351, allocations: 4.283 MB / 1.168 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001688/0.4368, allocations: 1.337 MB / 1.17 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002969/0.4398, allocations: 1.577 MB / 1.171 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00139/0.4412, allocations: 1.186 MB / 1.172 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.4414, allocations: 136 kB / 1.172 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002962/0.4444, allocations: 1.462 MB / 1.174 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004022/0.4448, allocations: 406.5 kB / 1.174 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0009029/0.4457, allocations: 0.9095 MB / 1.175 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003447/0.4492, allocations: 2.739 MB / 1.178 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4492, allocations: 4 kB / 1.178 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4492, allocations: 4 kB / 1.178 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.72e-05/0.4492, allocations: 0 / 1.178 GB, free: 5.098 MB / 0.9356 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.003498/0.4527, allocations: 2.17 MB / 1.18 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4528, allocations: 8.031 kB / 1.18 GB, free: 2.852 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.4529, allocations: 147.9 kB / 1.18 GB, free: 2.699 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003407/0.4564, allocations: 0.6032 MB / 1.181 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.4586, allocations: 1.419 MB / 1.182 GB, free: 0.6211 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.4588, allocations: 145.4 kB / 1.182 GB, free: 480 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.459, allocations: 96 kB / 1.182 GB, free: 384 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002766/0.4617, allocations: 1.322 MB / 1.184 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.4618, allocations: 0 / 1.184 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.4619, allocations: 36 kB / 1.184 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.515e-05/0.4619, allocations: 27.94 kB / 1.184 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003424/0.4653, allocations: 1.311 MB / 1.185 GB, free: 13.64 MB / 0.9512 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.00599/0.4714, allocations: 5.354 MB / 1.19 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00516/0.4765, allocations: 1.406 MB / 1.192 GB, free: 6.48 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.478, allocations: 0.5919 MB / 1.192 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007787/0.4788, allocations: 1.236 MB / 1.193 GB, free: 4.371 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001644/0.4805, allocations: 0.651 MB / 1.194 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=69): time 2.314e-06/0.4805, allocations: 0 / 1.194 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of matching and sorting (n=69): time 0.004654/0.4852, allocations: 1.684 MB / 1.196 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.4852, allocations: 59.97 kB / 1.196 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.4866, allocations: 1.283 MB / 1.197 GB, free: 0.6523 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 7.607e-05/0.4866, allocations: 41.7 kB / 1.197 GB, free: 0.6055 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000463/0.4871, allocations: 0.6543 MB / 1.198 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.4873, allocations: 236.5 kB / 1.198 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002631/0.4876, allocations: 178.5 kB / 1.198 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.4877, allocations: 334 kB / 1.198 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.4891, allocations: 0.5239 MB / 1.199 GB, free: 14.67 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.4908, allocations: 0.7442 MB / 1.2 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00289/0.4937, allocations: 1.132 MB / 1.201 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4938, allocations: 0 / 1.201 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003421/0.4972, allocations: 1.391 MB / 1.202 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.4972, allocations: 40.34 kB / 1.202 GB, free: 11.22 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.4972, allocations: 11.94 kB / 1.202 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.4973, allocations: 4 kB / 1.202 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.4984, allocations: 259.9 kB / 1.202 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.4985, allocations: 8 kB / 1.202 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.4997, allocations: 179.1 kB / 1.203 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.97e-05/0.4998, allocations: 35.97 kB / 1.203 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0018/0.5016, allocations: 0.7868 MB / 1.203 GB, free: 9.938 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001609/0.5032, allocations: 0.7352 MB / 1.204 GB, free: 9.121 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002881/0.5061, allocations: 1.12 MB / 1.205 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.767e-06/0.5061, allocations: 4 kB / 1.205 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003377/0.5095, allocations: 1.384 MB / 1.206 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.5096, allocations: 33.7 kB / 1.207 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.5096, allocations: 4 kB / 1.207 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.375e-06/0.5096, allocations: 7.938 kB / 1.207 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.5108, allocations: 255.9 kB / 1.207 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.5108, allocations: 8 kB / 1.207 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.512, allocations: 179.2 kB / 1.207 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-05/0.5121, allocations: 43.98 kB / 1.207 GB, free: 6.031 MB / 0.9669 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.0002562/0.5124, allocations: 228 kB / 1.207 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.5126, allocations: 146.2 kB / 1.207 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.5163, allocations: 1.454 MB / 1.209 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/0.5163, allocations: 12 kB / 1.209 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.5163, allocations: 0 / 1.209 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00325/0.5196, allocations: 1.218 MB / 1.21 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006719/0.5263, allocations: 3.171 MB / 1.213 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.5264, allocations: 4 kB / 1.213 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.5275, allocations: 232.2 kB / 1.213 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.951e-05/0.5275, allocations: 15.94 kB / 1.213 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.511e-05/0.5276, allocations: 23.98 kB / 1.213 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-05/0.5276, allocations: 11.98 kB / 1.213 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.5276, allocations: 7.938 kB / 1.213 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005201/0.5328, allocations: 2.196 MB / 1.216 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000595/0.5334, allocations: 350.9 kB / 1.216 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/0.5336, allocations: 24 kB / 1.216 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.5348, allocations: 123.8 kB / 1.216 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.535, allocations: 80.28 kB / 1.216 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.495e-05/0.5351, allocations: 43.97 kB / 1.216 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001151/0.5362, allocations: 0.9087 MB / 1.217 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5362, allocations: 0 / 1.217 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001821/0.5381, allocations: 0.7877 MB / 1.218 GB, free: 10.7 MB / 0.9825 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.006218/0.5443, allocations: 3.164 MB / 1.221 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.005078/0.5494, allocations: 1.999 MB / 1.223 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.5494, allocations: 4 kB / 1.223 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.5512, allocations: 0.6795 MB / 1.223 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/0.5544, allocations: 0.7477 MB / 1.224 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01912/0.5736, allocations: 11.76 MB / 1.236 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007437/0.5744, allocations: 1.23 MB / 1.237 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001417/0.5758, allocations: 363.4 kB / 1.237 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007635/0.5766, allocations: 0.5891 MB / 1.238 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of SimCode: time 6.61e-07/0.5766, allocations: 3.938 kB / 1.238 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.571/4.148, allocations: 43.82 MB / 1.281 GB, free: 156.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/18.11, allocations: 11.12 kB / 1.281 GB, free: 156.3 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)