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.0008885/0.0008884, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00521/0.00521, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.426/1.426, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.547/2.547, allocations: 462.7 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003085, allocations: 14.52 kB / 0.9029 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2449, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05464/0.2996, allocations: 59.13 MB / 1.117 GB, free: 9.559 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01755/0.3172, allocations: 13.16 MB / 1.129 GB, free: 12.37 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.3194, allocations: 63.56 kB / 1.129 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002424/0.3218, allocations: 0.816 MB / 1.13 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005678/0.3275, allocations: 2.141 MB / 1.132 GB, free: 9.336 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003588/0.3311, allocations: 1.434 MB / 1.134 GB, free: 7.914 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.006132/0.3373, allocations: 5.562 MB / 1.139 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001832/0.3391, allocations: 1.103 MB / 1.14 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002592/0.3417, allocations: 1.322 MB / 1.142 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001894/0.3436, allocations: 1.174 MB / 1.143 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.3439, allocations: 63.98 kB / 1.143 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003114/0.3471, allocations: 1.399 MB / 1.144 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004878/0.3476, allocations: 338.5 kB / 1.144 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.3489, allocations: 0.8564 MB / 1.145 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00401/0.3529, allocations: 2.698 MB / 1.148 GB, free: 9.316 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3529, allocations: 0 / 1.148 GB, free: 9.316 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3529, allocations: 4 kB / 1.148 GB, free: 9.312 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.54e-05/0.353, allocations: 0 / 1.148 GB, free: 9.312 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.003803/0.3568, allocations: 1.914 MB / 1.15 GB, free: 7.336 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3568, allocations: 15.97 kB / 1.15 GB, free: 7.32 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00026/0.3571, allocations: 151.9 kB / 1.15 GB, free: 7.164 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00376/0.3609, allocations: 0.5876 MB / 1.15 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002454/0.3633, allocations: 1.414 MB / 1.152 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.3635, allocations: 153.3 kB / 1.152 GB, free: 4.945 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002006/0.3637, allocations: 103.9 kB / 1.152 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.3668, allocations: 1.362 MB / 1.153 GB, free: 3.445 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.3669, allocations: 7.875 kB / 1.153 GB, free: 3.438 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.367, allocations: 44 kB / 1.153 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-05/0.367, allocations: 27.94 kB / 1.154 GB, free: 3.367 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003917/0.371, allocations: 1.401 MB / 1.155 GB, free: 1.965 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.007212/0.3782, allocations: 5.494 MB / 1.16 GB, free: 12.12 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002573/0.3808, allocations: 1.114 MB / 1.161 GB, free: 10.96 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.3824, allocations: 0.6354 MB / 1.162 GB, free: 10.32 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008852/0.3833, allocations: 1.236 MB / 1.163 GB, free: 8.809 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/0.3852, allocations: 0.6979 MB / 1.164 GB, free: 8.102 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 3.075e-06/0.3852, allocations: 0 / 1.164 GB, free: 8.102 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.005283/0.3905, allocations: 1.817 MB / 1.166 GB, free: 6.277 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.3906, allocations: 63.95 kB / 1.166 GB, free: 6.203 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/0.3923, allocations: 1.329 MB / 1.167 GB, free: 4.867 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 9.638e-05/0.3924, allocations: 45.7 kB / 1.167 GB, free: 4.816 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006267/0.393, allocations: 0.674 MB / 1.168 GB, free: 4.133 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002673/0.3933, allocations: 240.5 kB / 1.168 GB, free: 3.895 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.3934, allocations: 65.69 kB / 1.168 GB, free: 3.824 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3936, allocations: 345.9 kB / 1.168 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001674/0.3953, allocations: 0.5563 MB / 1.169 GB, free: 2.926 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001865/0.3971, allocations: 0.7951 MB / 1.17 GB, free: 2.043 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/0.4004, allocations: 1.226 MB / 1.171 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4004, allocations: 0 / 1.171 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003877/0.4043, allocations: 1.489 MB / 1.172 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.4044, allocations: 216.4 kB / 1.172 GB, free: 15 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.4044, allocations: 8 kB / 1.172 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.4045, allocations: 4 kB / 1.172 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.4057, allocations: 279.6 kB / 1.173 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.4058, allocations: 8 kB / 1.173 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.4074, allocations: 246.9 kB / 1.173 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.073e-05/0.4075, allocations: 43.97 kB / 1.173 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/0.4075, allocations: 5.562 kB / 1.173 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003461/0.411, allocations: 1.329 MB / 1.174 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.411, allocations: 3.938 kB / 1.174 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.945e-06/0.411, allocations: 8.312 kB / 1.174 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.4122, allocations: 275.5 kB / 1.175 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.4122, allocations: 11.98 kB / 1.175 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.4137, allocations: 231.2 kB / 1.175 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.743e-05/0.4138, allocations: 39.98 kB / 1.175 GB, free: 12.52 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.0005796/0.4144, allocations: 427.5 kB / 1.175 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.4146, allocations: 150.1 kB / 1.175 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003896/0.4185, allocations: 1.556 MB / 1.177 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.4186, allocations: 4 kB / 1.177 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4186, allocations: 4 kB / 1.177 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003278/0.4219, allocations: 1.3 MB / 1.178 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006178/0.428, allocations: 3.305 MB / 1.181 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.4281, allocations: 4 kB / 1.181 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.4292, allocations: 240.2 kB / 1.182 GB, free: 5.328 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-05/0.4292, allocations: 11.94 kB / 1.182 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.598e-05/0.4293, allocations: 27.98 kB / 1.182 GB, free: 5.289 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.025e-05/0.4293, allocations: 15.98 kB / 1.182 GB, free: 5.273 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.4293, allocations: 7.938 kB / 1.182 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005362/0.4347, allocations: 2.341 MB / 1.184 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005316/0.4352, allocations: 374.8 kB / 1.184 GB, free: 2.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.4354, allocations: 23.94 kB / 1.184 GB, free: 2.438 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/0.4369, allocations: 187.7 kB / 1.185 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.437, allocations: 68.36 kB / 1.185 GB, free: 2.184 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.059e-05/0.4371, allocations: 43.97 kB / 1.185 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001177/0.4383, allocations: 0.9454 MB / 1.186 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4383, allocations: 0 / 1.186 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001765/0.4401, allocations: 0.8071 MB / 1.186 GB, free: 400 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.006477/0.4466, allocations: 3.304 MB / 1.19 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005339/0.4519, allocations: 2.117 MB / 1.192 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.4519, allocations: 4 kB / 1.192 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.4538, allocations: 0.7224 MB / 1.192 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004366/0.4582, allocations: 0.7759 MB / 1.193 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02543/0.4836, allocations: 14.16 MB / 1.207 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007698/0.4844, allocations: 1.246 MB / 1.208 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001516/0.486, allocations: 379.5 kB / 1.209 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008399/0.4868, allocations: 0.6047 MB / 1.209 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of SimCode: time 5.31e-07/0.4868, allocations: 0 / 1.209 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.055/1.542, allocations: 43.8 MB / 1.252 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/1.542, allocations: 260.6 kB / 1.252 GB, free: 179.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.798/4.339, allocations: 1.969 kB / 1.252 GB, free: 179.6 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)