Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_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.001491/0.00149, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001673/0.001673, allocations: 194.9 kB / 16.26 MB, free: 6.625 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.303/1.303, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.967/2.967, allocations: 461.9 MB / 0.7343 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 64.06 kB / 0.8987 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2475, allocations: 157.4 MB / 1.052 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05766/0.3052, allocations: 60.1 MB / 1.111 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01782/0.3231, allocations: 13.15 MB / 1.124 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.3253, allocations: 67.56 kB / 1.124 GB, free: 15.05 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.3279, allocations: 0.8473 MB / 1.125 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005824/0.3338, allocations: 2.154 MB / 1.127 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003784/0.3375, allocations: 1.46 MB / 1.128 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005619/0.3432, allocations: 4.344 MB / 1.133 GB, free: 6.234 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002204/0.3454, allocations: 1.33 MB / 1.134 GB, free: 4.875 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003536/0.3489, allocations: 1.595 MB / 1.135 GB, free: 3.281 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.3509, allocations: 1.244 MB / 1.137 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004028/0.3513, allocations: 140 kB / 1.137 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/0.3544, allocations: 1.524 MB / 1.138 GB, free: 376 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0006017/0.3551, allocations: 434.5 kB / 1.139 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001451/0.3565, allocations: 0.925 MB / 1.14 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004234/0.3608, allocations: 2.812 MB / 1.142 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3608, allocations: 0 / 1.142 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3608, allocations: 4 kB / 1.142 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.455e-05/0.3609, allocations: 0 / 1.142 GB, free: 12.19 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.003741/0.3646, allocations: 2.221 MB / 1.145 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3647, allocations: 8.625 kB / 1.145 GB, free: 9.895 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001569/0.3648, allocations: 144 kB / 1.145 GB, free: 9.746 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003451/0.3683, allocations: 0.5602 MB / 1.145 GB, free: 9.184 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002089/0.3704, allocations: 1.426 MB / 1.147 GB, free: 7.703 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.3705, allocations: 153.4 kB / 1.147 GB, free: 7.543 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.3707, allocations: 100 kB / 1.147 GB, free: 7.445 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002848/0.3736, allocations: 1.326 MB / 1.148 GB, free: 6.082 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.3736, allocations: 0 / 1.148 GB, free: 6.082 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.3737, allocations: 40 kB / 1.148 GB, free: 6.043 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.375e-05/0.3738, allocations: 31.94 kB / 1.148 GB, free: 6.012 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003599/0.3774, allocations: 1.347 MB / 1.15 GB, free: 4.668 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.007325/0.3847, allocations: 5.497 MB / 1.155 GB, free: 14.81 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/0.3872, allocations: 1.051 MB / 1.156 GB, free: 13.72 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001566/0.3888, allocations: 0.6037 MB / 1.157 GB, free: 13.11 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001209/0.39, allocations: 1.24 MB / 1.158 GB, free: 11.59 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00189/0.3919, allocations: 0.6666 MB / 1.158 GB, free: 10.92 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 4.738e-06/0.3919, allocations: 0 / 1.158 GB, free: 10.92 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.005465/0.3974, allocations: 1.703 MB / 1.16 GB, free: 9.207 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.3975, allocations: 63.97 kB / 1.16 GB, free: 9.133 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.3997, allocations: 1.329 MB / 1.161 GB, free: 7.797 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.3998, allocations: 45.7 kB / 1.161 GB, free: 7.746 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006398/0.4004, allocations: 0.6701 MB / 1.162 GB, free: 7.066 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002704/0.4007, allocations: 244.5 kB / 1.162 GB, free: 6.824 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003393/0.4011, allocations: 178.4 kB / 1.163 GB, free: 6.645 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.4012, allocations: 337.9 kB / 1.163 GB, free: 6.309 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.4028, allocations: 0.5317 MB / 1.163 GB, free: 5.773 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/0.4046, allocations: 0.7638 MB / 1.164 GB, free: 4.93 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/0.4077, allocations: 1.16 MB / 1.165 GB, free: 3.723 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.4077, allocations: 0 / 1.165 GB, free: 3.723 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004027/0.4117, allocations: 1.415 MB / 1.167 GB, free: 2.297 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.461e-05/0.4118, allocations: 45.62 kB / 1.167 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.4118, allocations: 4 kB / 1.167 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.392e-05/0.4119, allocations: 8 kB / 1.167 GB, free: 2.234 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.4131, allocations: 255.9 kB / 1.167 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.4132, allocations: 4 kB / 1.167 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001773/0.415, allocations: 226.9 kB / 1.167 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.4151, allocations: 43.98 kB / 1.167 GB, free: 1.715 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002023/0.4171, allocations: 0.7946 MB / 1.168 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001783/0.4189, allocations: 0.7594 MB / 1.169 GB, free: 72 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003066/0.422, allocations: 1.152 MB / 1.17 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.507e-06/0.422, allocations: 3.938 kB / 1.17 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003865/0.4259, allocations: 1.415 MB / 1.171 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.4259, allocations: 37.69 kB / 1.171 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.4259, allocations: 8.25 kB / 1.171 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.426, allocations: 12 kB / 1.171 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.4272, allocations: 251.6 kB / 1.171 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/0.4272, allocations: 8 kB / 1.171 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.4289, allocations: 207.3 kB / 1.172 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-05/0.429, allocations: 39.98 kB / 1.172 GB, free: 12.88 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.0003196/0.4294, allocations: 228.1 kB / 1.172 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003989/0.4298, allocations: 158.1 kB / 1.172 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003914/0.4337, allocations: 1.474 MB / 1.174 GB, free: 11 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.4337, allocations: 12 kB / 1.174 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4337, allocations: 0 / 1.174 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003165/0.4369, allocations: 1.242 MB / 1.175 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007043/0.444, allocations: 3.226 MB / 1.178 GB, free: 6.328 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.444, allocations: 11.92 kB / 1.178 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.4452, allocations: 224.2 kB / 1.178 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.942e-05/0.4452, allocations: 8 kB / 1.178 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.651e-05/0.4453, allocations: 27.98 kB / 1.178 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.5e-05/0.4453, allocations: 11.98 kB / 1.178 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.4454, allocations: 7.938 kB / 1.178 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006288/0.4516, allocations: 2.236 MB / 1.18 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000848/0.4525, allocations: 354.8 kB / 1.181 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003865/0.4529, allocations: 16 kB / 1.181 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/0.4547, allocations: 171.8 kB / 1.181 GB, free: 3.18 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.4549, allocations: 68.36 kB / 1.181 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.455, allocations: 43.97 kB / 1.181 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001719/0.4567, allocations: 0.9454 MB / 1.182 GB, free: 2.129 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4568, allocations: 3.938 kB / 1.182 GB, free: 2.125 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002763/0.4595, allocations: 0.811 MB / 1.183 GB, free: 1.312 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.007571/0.4671, allocations: 3.197 MB / 1.186 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006147/0.4733, allocations: 2.081 MB / 1.188 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.4733, allocations: 0 / 1.188 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.4754, allocations: 0.6835 MB / 1.189 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004677/0.4801, allocations: 0.7561 MB / 1.189 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05497/0.5351, allocations: 13.93 MB / 1.203 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003016/0.5382, allocations: 1.253 MB / 1.204 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.006526/0.5448, allocations: 373 kB / 1.204 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002675/0.5476, allocations: 0.6008 MB / 1.205 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of SimCode: time 3.256e-06/0.5476, allocations: 0 / 1.205 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.378/3.926, allocations: 43.73 MB / 1.248 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004644/3.927, allocations: 252.1 kB / 1.248 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.263/9.19, allocations: 4.531 kB / 1.248 GB, free: 182.5 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)