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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001289/0.001289, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001228/0.001228, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.269/1.269, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.458/2.458, allocations: 461.9 MB / 0.7342 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 65.86 kB / 0.8985 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2392, allocations: 157.4 MB / 1.052 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.0513/0.2905, allocations: 60.22 MB / 1.111 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01553/0.3061, allocations: 13.32 MB / 1.124 GB, free: 14.39 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.3072, allocations: 67.56 kB / 1.124 GB, free: 14.33 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001758/0.309, allocations: 0.8082 MB / 1.125 GB, free: 13.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003688/0.3127, allocations: 2.146 MB / 1.127 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002736/0.3155, allocations: 1.443 MB / 1.128 GB, free: 9.93 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004452/0.3199, allocations: 5.562 MB / 1.134 GB, free: 4.352 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.3211, allocations: 1.134 MB / 1.135 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001719/0.3229, allocations: 1.345 MB / 1.136 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.324, allocations: 1.213 MB / 1.137 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.3242, allocations: 76 kB / 1.137 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.3265, allocations: 1.411 MB / 1.139 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003174/0.3268, allocations: 374.5 kB / 1.139 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007489/0.3276, allocations: 0.8508 MB / 1.14 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002545/0.3301, allocations: 2.757 MB / 1.143 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3301, allocations: 0 / 1.143 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of FrontEnd: time 6.61e-07/0.3301, allocations: 0 / 1.143 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.241e-05/0.3302, allocations: 0 / 1.143 GB, free: 11.14 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.003406/0.3336, allocations: 2.217 MB / 1.145 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3336, allocations: 15.97 kB / 1.145 GB, free: 8.844 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001576/0.3338, allocations: 147.9 kB / 1.145 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003888/0.3377, allocations: 0.5602 MB / 1.146 GB, free: 8.129 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002102/0.3398, allocations: 1.43 MB / 1.147 GB, free: 6.648 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.3399, allocations: 141.4 kB / 1.147 GB, free: 6.496 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.3401, allocations: 104 kB / 1.147 GB, free: 6.395 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/0.3428, allocations: 1.33 MB / 1.149 GB, free: 5.031 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.3428, allocations: 7.938 kB / 1.149 GB, free: 5.023 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-05/0.3429, allocations: 36 kB / 1.149 GB, free: 4.988 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.121e-05/0.343, allocations: 35.92 kB / 1.149 GB, free: 4.953 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003421/0.3464, allocations: 1.339 MB / 1.15 GB, free: 3.609 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.006193/0.3526, allocations: 5.482 MB / 1.155 GB, free: 13.77 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00242/0.355, allocations: 1.061 MB / 1.156 GB, free: 12.67 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.3566, allocations: 0.6003 MB / 1.157 GB, free: 12.06 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008019/0.3574, allocations: 1.232 MB / 1.158 GB, free: 10.55 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001695/0.3591, allocations: 0.6705 MB / 1.159 GB, free: 9.875 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 3.497e-06/0.3592, allocations: 3.984 kB / 1.159 GB, free: 9.871 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.004623/0.3638, allocations: 1.707 MB / 1.16 GB, free: 8.156 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3638, allocations: 59.97 kB / 1.16 GB, free: 8.086 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.3653, allocations: 1.336 MB / 1.162 GB, free: 6.742 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.187e-05/0.3654, allocations: 41.7 kB / 1.162 GB, free: 6.695 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004928/0.3659, allocations: 0.674 MB / 1.162 GB, free: 6.012 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.3661, allocations: 240.5 kB / 1.163 GB, free: 5.773 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002862/0.3664, allocations: 182.4 kB / 1.163 GB, free: 5.59 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3665, allocations: 330 kB / 1.163 GB, free: 5.262 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.3679, allocations: 0.5356 MB / 1.164 GB, free: 4.723 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.3695, allocations: 0.7638 MB / 1.164 GB, free: 3.875 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/0.3724, allocations: 1.16 MB / 1.166 GB, free: 2.668 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3725, allocations: 0 / 1.166 GB, free: 2.668 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003483/0.3759, allocations: 1.43 MB / 1.167 GB, free: 1.227 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.376, allocations: 37.64 kB / 1.167 GB, free: 1.184 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.376, allocations: 0 / 1.167 GB, free: 1.184 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.376, allocations: 8 kB / 1.167 GB, free: 1.176 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3772, allocations: 260 kB / 1.167 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.3772, allocations: 11.94 kB / 1.167 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.3786, allocations: 222.9 kB / 1.168 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-05/0.3787, allocations: 39.97 kB / 1.168 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001764/0.3805, allocations: 0.7947 MB / 1.168 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001585/0.3821, allocations: 0.7556 MB / 1.169 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002805/0.3849, allocations: 1.148 MB / 1.17 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.424e-06/0.3849, allocations: 0 / 1.17 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003317/0.3883, allocations: 1.419 MB / 1.172 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.3883, allocations: 37.7 kB / 1.172 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3883, allocations: 3.938 kB / 1.172 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.156e-06/0.3883, allocations: 8 kB / 1.172 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.3895, allocations: 259.5 kB / 1.172 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3895, allocations: 4 kB / 1.172 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.3909, allocations: 211.3 kB / 1.172 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.033e-05/0.3909, allocations: 39.97 kB / 1.172 GB, free: 11.82 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.000226/0.3912, allocations: 239.1 kB / 1.172 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.3914, allocations: 154.1 kB / 1.172 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/0.3949, allocations: 1.474 MB / 1.174 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.3949, allocations: 12 kB / 1.174 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.3949, allocations: 0 / 1.174 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002977/0.3979, allocations: 1.234 MB / 1.175 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005784/0.4037, allocations: 3.238 MB / 1.178 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/0.4038, allocations: 15.94 kB / 1.178 GB, free: 5.25 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4048, allocations: 216.2 kB / 1.179 GB, free: 5.039 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.137e-05/0.4049, allocations: 8 kB / 1.179 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-05/0.4049, allocations: 31.97 kB / 1.179 GB, free: 5 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.914e-06/0.405, allocations: 8 kB / 1.179 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.405, allocations: 7.938 kB / 1.179 GB, free: 4.984 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00503/0.41, allocations: 2.24 MB / 1.181 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004551/0.4105, allocations: 354.8 kB / 1.181 GB, free: 2.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.4107, allocations: 20.06 kB / 1.181 GB, free: 2.281 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.412, allocations: 159.7 kB / 1.181 GB, free: 2.125 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.4122, allocations: 76.36 kB / 1.181 GB, free: 2.051 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.021e-05/0.4122, allocations: 35.97 kB / 1.181 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001127/0.4134, allocations: 0.9493 MB / 1.182 GB, free: 1.07 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4134, allocations: 0 / 1.182 GB, free: 1.07 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001708/0.4151, allocations: 0.8032 MB / 1.183 GB, free: 272 kB / 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.006156/0.4213, allocations: 3.204 MB / 1.186 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004909/0.4262, allocations: 2.019 MB / 1.188 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4262, allocations: 0 / 1.188 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.428, allocations: 0.6874 MB / 1.189 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003145/0.4311, allocations: 0.7508 MB / 1.19 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02466/0.4558, allocations: 13.92 MB / 1.203 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007289/0.4565, allocations: 1.25 MB / 1.204 GB, free: 9.754 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.00147/0.458, allocations: 371.5 kB / 1.205 GB, free: 9.387 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007875/0.4588, allocations: 0.6086 MB / 1.205 GB, free: 8.777 MB / 0.9669 GB Notification: Performance of SimCode: time 9.11e-07/0.4588, allocations: 0 / 1.205 GB, free: 8.777 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8341/1.293, allocations: 42.82 MB / 1.247 GB, free: 180.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/1.293, allocations: 261.4 kB / 1.247 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.678/3.971, allocations: 0 / 1.247 GB, free: 180.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)