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.001294/0.001294, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 199.2 kB / 16.54 MB, free: 6.672 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.411/2.411, allocations: 461.9 MB / 0.7346 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001169, allocations: 62.86 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2249, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.05084/0.2758, allocations: 60.62 MB / 1.112 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01594/0.2917, allocations: 13.2 MB / 1.125 GB, free: 14.22 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001677/0.2934, allocations: 71.56 kB / 1.125 GB, free: 14.15 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002137/0.2956, allocations: 0.9628 MB / 1.126 GB, free: 13.18 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00481/0.3004, allocations: 2.316 MB / 1.128 GB, free: 10.86 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003205/0.3037, allocations: 1.565 MB / 1.13 GB, free: 9.301 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004456/0.3081, allocations: 4.325 MB / 1.134 GB, free: 4.965 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001852/0.31, allocations: 1.346 MB / 1.135 GB, free: 3.59 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002928/0.3129, allocations: 1.56 MB / 1.137 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001672/0.3146, allocations: 1.206 MB / 1.138 GB, free: 0.8203 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002977/0.3149, allocations: 144 kB / 1.138 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002701/0.3176, allocations: 1.474 MB / 1.14 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004235/0.3181, allocations: 414.4 kB / 1.14 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.3191, allocations: 0.9173 MB / 1.141 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003059/0.3221, allocations: 2.757 MB / 1.144 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3222, allocations: 0 / 1.144 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3222, allocations: 0 / 1.144 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.809e-05/0.3222, allocations: 0 / 1.144 GB, free: 11.11 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.002982/0.3252, allocations: 2.185 MB / 1.146 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.3252, allocations: 8.625 kB / 1.146 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.3254, allocations: 151.9 kB / 1.146 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003292/0.3287, allocations: 0.5525 MB / 1.146 GB, free: 8.141 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/0.3304, allocations: 1.363 MB / 1.148 GB, free: 6.723 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.3305, allocations: 149.4 kB / 1.148 GB, free: 6.566 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.3307, allocations: 107.8 kB / 1.148 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.3333, allocations: 1.323 MB / 1.149 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.3333, allocations: 3.938 kB / 1.149 GB, free: 5.098 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.3334, allocations: 47.98 kB / 1.149 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.814e-05/0.3335, allocations: 27.94 kB / 1.149 GB, free: 5.023 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003438/0.3369, allocations: 1.327 MB / 1.151 GB, free: 3.699 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.006045/0.343, allocations: 5.496 MB / 1.156 GB, free: 13.84 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005202/0.3482, allocations: 1.328 MB / 1.157 GB, free: 12.49 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.3498, allocations: 0.6003 MB / 1.158 GB, free: 11.89 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007742/0.3505, allocations: 1.244 MB / 1.159 GB, free: 10.37 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001653/0.3522, allocations: 0.6549 MB / 1.16 GB, free: 9.703 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 2.073e-06/0.3522, allocations: 4 kB / 1.16 GB, free: 9.699 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.004643/0.3569, allocations: 1.684 MB / 1.161 GB, free: 8.008 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.3569, allocations: 67.95 kB / 1.161 GB, free: 7.93 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.3582, allocations: 1.299 MB / 1.163 GB, free: 6.621 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.39e-05/0.3583, allocations: 41.7 kB / 1.163 GB, free: 6.574 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004511/0.3588, allocations: 0.6541 MB / 1.163 GB, free: 5.91 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.359, allocations: 236.6 kB / 1.164 GB, free: 5.676 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/0.3592, allocations: 178.4 kB / 1.164 GB, free: 5.496 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3594, allocations: 337.9 kB / 1.164 GB, free: 5.16 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/0.3608, allocations: 0.5239 MB / 1.165 GB, free: 4.633 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.3625, allocations: 0.756 MB / 1.165 GB, free: 3.797 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.3654, allocations: 1.144 MB / 1.166 GB, free: 2.605 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3654, allocations: 0 / 1.166 GB, free: 2.605 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003423/0.3688, allocations: 1.415 MB / 1.168 GB, free: 1.176 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.3689, allocations: 33.64 kB / 1.168 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3689, allocations: 4 kB / 1.168 GB, free: 1.133 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.76e-05/0.3689, allocations: 11.94 kB / 1.168 GB, free: 1.121 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.3701, allocations: 263.9 kB / 1.168 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.3701, allocations: 8 kB / 1.168 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.3714, allocations: 179.1 kB / 1.168 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.204e-05/0.3714, allocations: 39.98 kB / 1.168 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001766/0.3732, allocations: 0.783 MB / 1.169 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001609/0.3748, allocations: 0.7484 MB / 1.17 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002864/0.3777, allocations: 1.132 MB / 1.171 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.344e-06/0.3777, allocations: 0 / 1.171 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003394/0.3811, allocations: 1.399 MB / 1.172 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.3812, allocations: 38 kB / 1.172 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3812, allocations: 8 kB / 1.172 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.173e-06/0.3812, allocations: 8 kB / 1.172 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.3823, allocations: 251.6 kB / 1.173 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.3823, allocations: 11.94 kB / 1.173 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.3836, allocations: 175.3 kB / 1.173 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.697e-05/0.3837, allocations: 39.98 kB / 1.173 GB, free: 11.89 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.0002064/0.3839, allocations: 228.1 kB / 1.173 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.3841, allocations: 142.2 kB / 1.173 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003564/0.3877, allocations: 1.465 MB / 1.175 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.3877, allocations: 8 kB / 1.175 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.3877, allocations: 7.938 kB / 1.175 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00303/0.3908, allocations: 1.226 MB / 1.176 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005534/0.3963, allocations: 3.198 MB / 1.179 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.3963, allocations: 4 kB / 1.179 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.3974, allocations: 224.2 kB / 1.179 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/0.3974, allocations: 15.94 kB / 1.179 GB, free: 5.176 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.3975, allocations: 23.98 kB / 1.179 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.959e-06/0.3975, allocations: 19.91 kB / 1.179 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3975, allocations: 4 kB / 1.179 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004871/0.4024, allocations: 2.208 MB / 1.181 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.4028, allocations: 350.8 kB / 1.182 GB, free: 2.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.403, allocations: 31.86 kB / 1.182 GB, free: 2.449 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001204/0.4042, allocations: 123.9 kB / 1.182 GB, free: 2.328 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.4044, allocations: 64.42 kB / 1.182 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-05/0.4045, allocations: 51.95 kB / 1.182 GB, free: 2.215 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001024/0.4055, allocations: 0.9246 MB / 1.183 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4055, allocations: 0 / 1.183 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001563/0.4071, allocations: 0.7953 MB / 1.184 GB, free: 0.4961 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.005966/0.413, allocations: 3.177 MB / 1.187 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005126/0.4182, allocations: 2.058 MB / 1.189 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4182, allocations: 0 / 1.189 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.4199, allocations: 0.6796 MB / 1.189 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003019/0.423, allocations: 0.7615 MB / 1.19 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0202/0.4432, allocations: 13.04 MB / 1.203 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007187/0.4439, allocations: 1.234 MB / 1.204 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001408/0.4453, allocations: 367.6 kB / 1.204 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007431/0.4461, allocations: 0.5968 MB / 1.205 GB, free: 9.918 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.4461, allocations: 0 / 1.205 GB, free: 9.918 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.105/4.551, allocations: 43.76 MB / 1.248 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/15.23, allocations: 5.703 kB / 1.248 GB, free: 182.6 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)