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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00115/0.00115, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.008647/0.008647, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.277/1.277, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.395/2.395, allocations: 437.8 MB / 0.7121 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002993, allocations: 8 kB / 0.8729 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5627/0.563, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.0512/0.6143, allocations: 59.13 MB / 1.081 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01776/0.6321, allocations: 13.12 MB / 1.094 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001907/0.634, allocations: 63.56 kB / 1.094 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.636, allocations: 0.8102 MB / 1.095 GB, free: 6.492 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005059/0.6411, allocations: 2.138 MB / 1.097 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00322/0.6443, allocations: 1.429 MB / 1.098 GB, free: 2.93 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005356/0.6497, allocations: 5.56 MB / 1.103 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.651, allocations: 1.103 MB / 1.105 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.6529, allocations: 1.322 MB / 1.106 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001183/0.6541, allocations: 1.174 MB / 1.107 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.6543, allocations: 60 kB / 1.107 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002597/0.6569, allocations: 1.364 MB / 1.108 GB, free: 8.285 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003196/0.6572, allocations: 338.4 kB / 1.109 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007455/0.6579, allocations: 0.8409 MB / 1.109 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003034/0.661, allocations: 2.671 MB / 1.112 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.661, allocations: 4 kB / 1.112 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.302e-06/0.661, allocations: 0 / 1.112 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.091e-05/0.661, allocations: 4 kB / 1.112 GB, free: 4.414 MB / 0.8575 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.003235/0.6643, allocations: 1.875 MB / 1.114 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.6643, allocations: 8.031 kB / 1.114 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001765/0.6645, allocations: 147.9 kB / 1.114 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003476/0.668, allocations: 0.5838 MB / 1.115 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.67, allocations: 1.402 MB / 1.116 GB, free: 280 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.6701, allocations: 149.4 kB / 1.116 GB, free: 120 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.6703, allocations: 100 kB / 1.116 GB, free: 20 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002917/0.6732, allocations: 1.354 MB / 1.118 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.6733, allocations: 4 kB / 1.118 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.6734, allocations: 36 kB / 1.118 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.55e-05/0.6734, allocations: 31.92 kB / 1.118 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/0.6771, allocations: 1.39 MB / 1.119 GB, free: 13.17 MB / 0.8731 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.007369/0.6844, allocations: 5.485 MB / 1.124 GB, free: 7.328 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005414/0.6899, allocations: 1.423 MB / 1.126 GB, free: 5.879 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.6915, allocations: 0.6403 MB / 1.126 GB, free: 5.238 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009197/0.6924, allocations: 1.232 MB / 1.128 GB, free: 3.727 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001779/0.6942, allocations: 0.6901 MB / 1.128 GB, free: 3.027 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 2.364e-06/0.6942, allocations: 0 / 1.128 GB, free: 3.027 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.004997/0.6992, allocations: 1.785 MB / 1.13 GB, free: 1.234 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.6993, allocations: 67.91 kB / 1.13 GB, free: 1.156 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.7008, allocations: 1.279 MB / 1.131 GB, free: 15.87 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 8.296e-05/0.7009, allocations: 41.7 kB / 1.131 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005134/0.7015, allocations: 0.6503 MB / 1.132 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/0.7017, allocations: 244.5 kB / 1.132 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.7018, allocations: 77.61 kB / 1.132 GB, free: 14.84 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.7019, allocations: 334 kB / 1.133 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001614/0.7035, allocations: 0.5524 MB / 1.133 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/0.7053, allocations: 0.7919 MB / 1.134 GB, free: 13.07 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003158/0.7084, allocations: 1.211 MB / 1.135 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.7085, allocations: 0 / 1.135 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00374/0.7122, allocations: 1.473 MB / 1.137 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.7123, allocations: 216.1 kB / 1.137 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.7124, allocations: 4 kB / 1.137 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.7124, allocations: 8 kB / 1.137 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.7136, allocations: 279.7 kB / 1.137 GB, free: 9.781 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.7137, allocations: 11.88 kB / 1.137 GB, free: 9.77 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.7152, allocations: 243 kB / 1.137 GB, free: 9.531 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.329e-05/0.7153, allocations: 39.98 kB / 1.137 GB, free: 9.492 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 7.784e-06/0.7154, allocations: 8 kB / 1.137 GB, free: 9.484 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003466/0.7188, allocations: 1.317 MB / 1.139 GB, free: 8.156 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.7188, allocations: 3.984 kB / 1.139 GB, free: 8.152 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.7189, allocations: 8 kB / 1.139 GB, free: 8.145 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.7201, allocations: 275.9 kB / 1.139 GB, free: 7.875 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.7201, allocations: 7.984 kB / 1.139 GB, free: 7.867 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.7216, allocations: 239 kB / 1.139 GB, free: 7.633 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.065e-05/0.7217, allocations: 43.97 kB / 1.139 GB, free: 7.59 MB / 0.8887 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.0006366/0.7223, allocations: 408.9 kB / 1.14 GB, free: 7.18 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.7226, allocations: 142.2 kB / 1.14 GB, free: 7.039 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003939/0.7265, allocations: 1.524 MB / 1.141 GB, free: 5.496 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.7265, allocations: 8 kB / 1.141 GB, free: 5.488 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.7265, allocations: 3.938 kB / 1.141 GB, free: 5.484 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003203/0.7297, allocations: 1.296 MB / 1.142 GB, free: 4.156 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006108/0.7359, allocations: 3.261 MB / 1.146 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.475e-06/0.7359, allocations: 4 kB / 1.146 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.737, allocations: 240.2 kB / 1.146 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.737, allocations: 8 kB / 1.146 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.831e-05/0.7371, allocations: 27.98 kB / 1.146 GB, free: 476 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.7371, allocations: 19.86 kB / 1.146 GB, free: 456 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.7371, allocations: 4 kB / 1.146 GB, free: 452 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005186/0.7423, allocations: 2.321 MB / 1.148 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/0.7429, allocations: 366.8 kB / 1.149 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.7431, allocations: 27.98 kB / 1.149 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.7445, allocations: 179.7 kB / 1.149 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.7447, allocations: 84.33 kB / 1.149 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.309e-05/0.7448, allocations: 43.91 kB / 1.149 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001177/0.746, allocations: 0.909 MB / 1.15 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.3e-07/0.746, allocations: 0 / 1.15 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001887/0.7479, allocations: 0.7877 MB / 1.151 GB, free: 11.64 MB / 0.9044 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.006505/0.7544, allocations: 3.274 MB / 1.154 GB, free: 8.297 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005208/0.7596, allocations: 2.097 MB / 1.156 GB, free: 6.172 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.7596, allocations: 0 / 1.156 GB, free: 6.172 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001826/0.7615, allocations: 0.7109 MB / 1.156 GB, free: 5.465 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004338/0.7658, allocations: 0.7746 MB / 1.157 GB, free: 4.699 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02525/0.7911, allocations: 13.71 MB / 1.171 GB, free: 6.438 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008309/0.7919, allocations: 1.238 MB / 1.172 GB, free: 5.172 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001657/0.7936, allocations: 367.6 kB / 1.172 GB, free: 4.809 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008472/0.7945, allocations: 0.5891 MB / 1.173 GB, free: 4.219 MB / 0.92 GB Notification: Performance of SimCode: time 5.31e-07/0.7945, allocations: 4 kB / 1.173 GB, free: 4.215 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06759/0.8621, allocations: 43.13 MB / 1.215 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/0.8624, allocations: 237.9 kB / 1.215 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.736/3.598, allocations: 0 / 1.215 GB, free: 9.348 MB / 0.9669 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=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)