Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_10_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.004667/0.004667, allocations: 102 kB / 15.73 MB, free: 6.062 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.001386/0.001386, allocations: 192 kB / 16.67 MB, free: 5.973 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.282/1.282, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.245/2.245, allocations: 437.1 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 63.89 kB / 1.018 GB, free: 9.832 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5872/0.5888, allocations: 151.6 MB / 1.166 GB, free: 3.723 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.05697/0.6458, allocations: 60.63 MB / 1.225 GB, free: 6.875 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01678/0.6626, allocations: 13.19 MB / 1.238 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009721/0.6636, allocations: 71.56 kB / 1.238 GB, free: 9.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.6655, allocations: 0.9626 MB / 1.239 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004029/0.6695, allocations: 2.314 MB / 1.242 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002993/0.6726, allocations: 1.585 MB / 1.243 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00426/0.6768, allocations: 4.329 MB / 1.247 GB, free: 384 kB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.6783, allocations: 1.347 MB / 1.249 GB, free: 15 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002411/0.6808, allocations: 1.576 MB / 1.25 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.6821, allocations: 1.202 MB / 1.251 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001993/0.6823, allocations: 144 kB / 1.252 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00242/0.6847, allocations: 1.474 MB / 1.253 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003882/0.6851, allocations: 430.4 kB / 1.253 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0008338/0.686, allocations: 0.9095 MB / 1.254 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003171/0.6891, allocations: 2.809 MB / 1.257 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.6892, allocations: 0 / 1.257 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6892, allocations: 0 / 1.257 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.718e-05/0.6892, allocations: 0 / 1.257 GB, free: 6.449 MB / 0.9825 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.00335/0.6925, allocations: 2.238 MB / 1.259 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.6926, allocations: 12.62 kB / 1.259 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001915/0.6928, allocations: 147.9 kB / 1.259 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00388/0.6967, allocations: 0.6199 MB / 1.26 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.6988, allocations: 1.47 MB / 1.261 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.699, allocations: 149.3 kB / 1.262 GB, free: 1.676 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.6991, allocations: 100 kB / 1.262 GB, free: 1.578 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002954/0.7021, allocations: 1.377 MB / 1.263 GB, free: 172 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.7021, allocations: 11.89 kB / 1.263 GB, free: 160 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.7022, allocations: 36 kB / 1.263 GB, free: 124 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/0.7023, allocations: 27.94 kB / 1.263 GB, free: 96 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003941/0.7062, allocations: 1.425 MB / 1.264 GB, free: 14.67 MB / 0.9981 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.006884/0.7131, allocations: 5.569 MB / 1.27 GB, free: 8.75 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005364/0.7185, allocations: 1.398 MB / 1.271 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/0.7202, allocations: 0.6309 MB / 1.272 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009399/0.7211, allocations: 1.239 MB / 1.273 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001819/0.723, allocations: 0.6823 MB / 1.274 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=70): time 1.844e-06/0.723, allocations: 0 / 1.274 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of matching and sorting (n=70): time 0.005109/0.7281, allocations: 1.766 MB / 1.275 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.7281, allocations: 59.97 kB / 1.275 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/0.7296, allocations: 1.291 MB / 1.277 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.357e-05/0.7297, allocations: 45.7 kB / 1.277 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005517/0.7303, allocations: 0.6589 MB / 1.277 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000218/0.7305, allocations: 257.8 kB / 1.278 GB, free: 380 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.7308, allocations: 174.6 kB / 1.278 GB, free: 196 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.731, allocations: 334 kB / 1.278 GB, free: 15.86 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/0.7326, allocations: 0.5473 MB / 1.279 GB, free: 15.31 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.7344, allocations: 0.7867 MB / 1.279 GB, free: 14.44 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003211/0.7377, allocations: 1.179 MB / 1.281 GB, free: 13.21 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.7377, allocations: 4 kB / 1.281 GB, free: 13.21 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003782/0.7415, allocations: 1.462 MB / 1.282 GB, free: 11.73 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.7415, allocations: 33.95 kB / 1.282 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.7415, allocations: 15.94 kB / 1.282 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.7416, allocations: 11.94 kB / 1.282 GB, free: 11.66 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.7428, allocations: 263.6 kB / 1.282 GB, free: 11.41 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.7428, allocations: 15.92 kB / 1.282 GB, free: 11.39 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.7441, allocations: 195.3 kB / 1.283 GB, free: 11.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.64e-05/0.7442, allocations: 39.97 kB / 1.283 GB, free: 11.16 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001931/0.7461, allocations: 0.8163 MB / 1.283 GB, free: 10.34 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001796/0.7479, allocations: 0.7673 MB / 1.284 GB, free: 9.492 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003168/0.7511, allocations: 1.179 MB / 1.285 GB, free: 8.27 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.074e-06/0.7511, allocations: 0 / 1.285 GB, free: 8.27 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003746/0.7549, allocations: 1.451 MB / 1.287 GB, free: 6.801 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.7549, allocations: 37.7 kB / 1.287 GB, free: 6.758 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.7549, allocations: 7.984 kB / 1.287 GB, free: 6.75 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.641e-06/0.755, allocations: 4 kB / 1.287 GB, free: 6.746 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.7562, allocations: 271.8 kB / 1.287 GB, free: 6.48 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.7562, allocations: 4 kB / 1.287 GB, free: 6.477 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/0.7575, allocations: 183.5 kB / 1.287 GB, free: 6.297 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.448e-05/0.7576, allocations: 39.98 kB / 1.287 GB, free: 6.258 MB / 1.014 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.0002173/0.7578, allocations: 236.8 kB / 1.287 GB, free: 6.02 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/0.758, allocations: 147.1 kB / 1.288 GB, free: 5.875 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003946/0.762, allocations: 1.516 MB / 1.289 GB, free: 4.34 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.762, allocations: 8 kB / 1.289 GB, free: 4.332 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.762, allocations: 0 / 1.289 GB, free: 4.332 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003338/0.7653, allocations: 1.269 MB / 1.29 GB, free: 3.035 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006057/0.7714, allocations: 3.261 MB / 1.294 GB, free: 15.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.7714, allocations: 4 kB / 1.294 GB, free: 15.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.7726, allocations: 236.2 kB / 1.294 GB, free: 15.38 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/0.7726, allocations: 11.94 kB / 1.294 GB, free: 15.36 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.37e-05/0.7727, allocations: 31.91 kB / 1.294 GB, free: 15.33 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/0.7727, allocations: 8 kB / 1.294 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.7727, allocations: 7.938 kB / 1.294 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005527/0.7782, allocations: 2.299 MB / 1.296 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004649/0.7787, allocations: 359.7 kB / 1.296 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.7789, allocations: 19.94 kB / 1.296 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.7801, allocations: 135.9 kB / 1.297 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.7803, allocations: 76.34 kB / 1.297 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.7804, allocations: 43.97 kB / 1.297 GB, free: 12.3 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001347/0.7818, allocations: 0.9168 MB / 1.298 GB, free: 11.39 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7818, allocations: 0 / 1.298 GB, free: 11.39 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001597/0.7834, allocations: 0.8148 MB / 1.298 GB, free: 10.57 MB / 1.029 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.006711/0.7901, allocations: 3.271 MB / 1.302 GB, free: 7.227 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005361/0.7955, allocations: 2.085 MB / 1.304 GB, free: 5.121 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7955, allocations: 0 / 1.304 GB, free: 5.121 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001906/0.7974, allocations: 0.7031 MB / 1.304 GB, free: 4.418 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/0.8004, allocations: 0.7534 MB / 1.305 GB, free: 3.676 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/0.8221, allocations: 12.25 MB / 1.317 GB, free: 7.105 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008397/0.8229, allocations: 1.23 MB / 1.318 GB, free: 5.848 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001239/0.8242, allocations: 371.5 kB / 1.319 GB, free: 5.48 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008309/0.825, allocations: 0.593 MB / 1.319 GB, free: 4.887 MB / 1.045 GB Notification: Performance of SimCode: time 4.2e-07/0.825, allocations: 4 kB / 1.319 GB, free: 4.883 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9656/1.791, allocations: 44.27 MB / 1.362 GB, free: 9.051 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.02/18.81, allocations: 4.062 kB / 1.362 GB, free: 9.047 MB / 1.092 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)