Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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.00798/0.007981, allocations: 102.8 kB / 15.73 MB, free: 6.488 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.001459/0.001459, allocations: 199.7 kB / 16.68 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.261/2.261, allocations: 390.3 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 62.81 kB / 0.9504 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2873, allocations: 140.4 MB / 1.087 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05174/0.3391, allocations: 60.46 MB / 1.147 GB, free: 5.258 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01657/0.3557, allocations: 13.21 MB / 1.159 GB, free: 8.02 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.358, allocations: 71.56 kB / 1.159 GB, free: 7.949 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.002368/0.3604, allocations: 0.9575 MB / 1.16 GB, free: 6.988 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.005571/0.3661, allocations: 2.32 MB / 1.163 GB, free: 4.656 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003582/0.3697, allocations: 1.562 MB / 1.164 GB, free: 3.105 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.005149/0.3748, allocations: 4.29 MB / 1.168 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001741/0.3766, allocations: 1.325 MB / 1.17 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003165/0.3798, allocations: 1.581 MB / 1.171 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001605/0.3814, allocations: 1.182 MB / 1.172 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.3816, allocations: 140 kB / 1.173 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002918/0.3845, allocations: 1.482 MB / 1.174 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003993/0.3849, allocations: 422.5 kB / 1.174 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0009249/0.3859, allocations: 0.9173 MB / 1.175 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00366/0.3895, allocations: 2.786 MB / 1.178 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3895, allocations: 0 / 1.178 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.276e-06/0.3896, allocations: 4 kB / 1.178 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.36e-05/0.3896, allocations: 0 / 1.178 GB, free: 4.926 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.003487/0.3931, allocations: 2.205 MB / 1.18 GB, free: 2.652 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3931, allocations: 8.031 kB / 1.18 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.3933, allocations: 151.8 kB / 1.18 GB, free: 2.488 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00344/0.3967, allocations: 0.6149 MB / 1.181 GB, free: 1.871 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.3991, allocations: 1.432 MB / 1.182 GB, free: 396 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.3992, allocations: 149.4 kB / 1.182 GB, free: 236 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.3994, allocations: 96 kB / 1.183 GB, free: 140 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002716/0.4021, allocations: 1.307 MB / 1.184 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.4022, allocations: 7.938 kB / 1.184 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.991e-05/0.4023, allocations: 39.98 kB / 1.184 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.358e-05/0.4023, allocations: 31.94 kB / 1.184 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003396/0.4057, allocations: 1.323 MB / 1.185 GB, free: 13.39 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.006246/0.412, allocations: 5.383 MB / 1.19 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/0.4143, allocations: 1.056 MB / 1.191 GB, free: 6.555 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.4158, allocations: 0.5958 MB / 1.192 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007748/0.4166, allocations: 1.236 MB / 1.193 GB, free: 4.441 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00166/0.4183, allocations: 0.6589 MB / 1.194 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=69): time 2.715e-06/0.4183, allocations: 0 / 1.194 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of matching and sorting (n=69): time 0.004721/0.423, allocations: 1.707 MB / 1.196 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.4231, allocations: 59.97 kB / 1.196 GB, free: 1.984 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.4245, allocations: 1.336 MB / 1.197 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 8.199e-05/0.4246, allocations: 41.7 kB / 1.197 GB, free: 0.5938 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.4251, allocations: 0.6819 MB / 1.198 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.4253, allocations: 236.6 kB / 1.198 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.4256, allocations: 174.4 kB / 1.198 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.4257, allocations: 337.9 kB / 1.198 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.4272, allocations: 0.5317 MB / 1.199 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001696/0.4289, allocations: 0.7469 MB / 1.2 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002974/0.4319, allocations: 1.147 MB / 1.201 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4319, allocations: 0 / 1.201 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003753/0.4357, allocations: 1.407 MB / 1.202 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/0.4357, allocations: 33.7 kB / 1.202 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.4357, allocations: 7.938 kB / 1.202 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.4358, allocations: 11.98 kB / 1.202 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.437, allocations: 251.9 kB / 1.202 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.437, allocations: 12 kB / 1.202 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.4384, allocations: 183.1 kB / 1.203 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-05/0.4385, allocations: 31.98 kB / 1.203 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001905/0.4404, allocations: 0.7985 MB / 1.203 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00164/0.4421, allocations: 0.743 MB / 1.204 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002922/0.445, allocations: 1.135 MB / 1.205 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.076e-06/0.445, allocations: 0 / 1.205 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003718/0.4488, allocations: 1.403 MB / 1.207 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.4488, allocations: 32.36 kB / 1.207 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.4488, allocations: 4 kB / 1.207 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.4488, allocations: 15.92 kB / 1.207 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.45, allocations: 259.9 kB / 1.207 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.4501, allocations: 4 kB / 1.207 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.4515, allocations: 171.3 kB / 1.207 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.154e-05/0.4516, allocations: 35.98 kB / 1.207 GB, free: 5.91 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.0002907/0.4519, allocations: 236.1 kB / 1.207 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002318/0.4521, allocations: 150.1 kB / 1.207 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003715/0.4559, allocations: 1.462 MB / 1.209 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/0.4559, allocations: 11.98 kB / 1.209 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4559, allocations: 0 / 1.209 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003018/0.4589, allocations: 1.238 MB / 1.21 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005865/0.4648, allocations: 3.214 MB / 1.213 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.4648, allocations: 4 kB / 1.213 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4659, allocations: 220.2 kB / 1.213 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.979e-06/0.4659, allocations: 7.938 kB / 1.213 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.466, allocations: 27.98 kB / 1.213 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/0.466, allocations: 15.92 kB / 1.214 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.466, allocations: 7.938 kB / 1.214 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004925/0.4709, allocations: 2.232 MB / 1.216 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005064/0.4715, allocations: 354.8 kB / 1.216 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.4716, allocations: 19.98 kB / 1.216 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.4728, allocations: 127.9 kB / 1.216 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.473, allocations: 72.36 kB / 1.216 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-05/0.4731, allocations: 39.97 kB / 1.216 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001057/0.4741, allocations: 0.9568 MB / 1.217 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4741, allocations: 0 / 1.217 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001663/0.4758, allocations: 0.7953 MB / 1.218 GB, free: 10.43 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.006064/0.4819, allocations: 3.2 MB / 1.221 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004976/0.4869, allocations: 2.019 MB / 1.223 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4869, allocations: 0 / 1.223 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.4887, allocations: 0.6796 MB / 1.224 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/0.4917, allocations: 0.7673 MB / 1.225 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01901/0.5107, allocations: 12.15 MB / 1.236 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007253/0.5114, allocations: 1.241 MB / 1.238 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001357/0.5128, allocations: 367.5 kB / 1.238 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007484/0.5136, allocations: 0.6008 MB / 1.239 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/0.5136, allocations: 3.938 kB / 1.239 GB, free: 5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.08/4.593, allocations: 44.55 MB / 1.282 GB, free: 156.9 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/16.2, allocations: 6.734 kB / 1.282 GB, free: 156.9 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)