Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.ElectricReformulatedEIR,fileNamePrefix="Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_10_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.006401/0.006401, allocations: 98.14 kB / 15.73 MB, free: 6.062 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.001796/0.001796, allocations: 194.7 kB / 16.68 MB, free: 5.969 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.233/1.233, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.209/2.209, allocations: 437.1 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00321/0.003211, allocations: 67.89 kB / 1.018 GB, free: 9.855 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5986/0.6018, allocations: 151.6 MB / 1.166 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05942/0.6612, allocations: 60.63 MB / 1.225 GB, free: 6.895 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01734/0.6786, allocations: 13.23 MB / 1.238 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.6799, allocations: 71.56 kB / 1.238 GB, free: 9.555 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002061/0.682, allocations: 0.9665 MB / 1.239 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004407/0.6864, allocations: 2.32 MB / 1.242 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003244/0.6897, allocations: 1.593 MB / 1.243 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.004455/0.6941, allocations: 4.318 MB / 1.247 GB, free: 348 kB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001603/0.6957, allocations: 1.35 MB / 1.249 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.6983, allocations: 1.583 MB / 1.25 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.6997, allocations: 1.202 MB / 1.251 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002156/0.6999, allocations: 140 kB / 1.252 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.7025, allocations: 1.509 MB / 1.253 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003932/0.7029, allocations: 430.5 kB / 1.253 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0008559/0.7037, allocations: 0.9212 MB / 1.254 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003314/0.707, allocations: 2.84 MB / 1.257 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.7071, allocations: 0 / 1.257 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7071, allocations: 0 / 1.257 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.378e-05/0.7071, allocations: 0 / 1.257 GB, free: 6.328 MB / 0.9825 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.003442/0.7105, allocations: 2.285 MB / 1.259 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.7106, allocations: 16.86 kB / 1.259 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.7107, allocations: 144 kB / 1.259 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003958/0.7147, allocations: 0.6276 MB / 1.26 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002161/0.7169, allocations: 1.478 MB / 1.262 GB, free: 1.652 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/0.7171, allocations: 153.3 kB / 1.262 GB, free: 1.488 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.7172, allocations: 107.9 kB / 1.262 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003091/0.7203, allocations: 1.385 MB / 1.263 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/0.7204, allocations: 3.938 kB / 1.263 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.7205, allocations: 43.98 kB / 1.263 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/0.7205, allocations: 27.94 kB / 1.263 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00404/0.7246, allocations: 1.429 MB / 1.265 GB, free: 14.46 MB / 0.9981 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.007165/0.7317, allocations: 5.612 MB / 1.27 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002729/0.7345, allocations: 1.11 MB / 1.271 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001686/0.7362, allocations: 0.6232 MB / 1.272 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001022/0.7372, allocations: 1.232 MB / 1.273 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001886/0.7391, allocations: 0.6978 MB / 1.274 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=70): time 4.098e-06/0.7391, allocations: 0 / 1.274 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of matching and sorting (n=70): time 0.00525/0.7444, allocations: 1.782 MB / 1.275 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.7444, allocations: 63.97 kB / 1.275 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.7461, allocations: 1.348 MB / 1.277 GB, free: 1.285 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.771e-05/0.7461, allocations: 41.7 kB / 1.277 GB, free: 1.238 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006223/0.7468, allocations: 0.6827 MB / 1.278 GB, free: 0.5469 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.747, allocations: 249.8 kB / 1.278 GB, free: 308 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.7473, allocations: 182.5 kB / 1.278 GB, free: 116 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.7475, allocations: 334 kB / 1.278 GB, free: 15.78 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/0.7492, allocations: 0.559 MB / 1.279 GB, free: 15.22 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/0.7512, allocations: 0.7932 MB / 1.28 GB, free: 14.35 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003337/0.7545, allocations: 1.199 MB / 1.281 GB, free: 13.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.7545, allocations: 0 / 1.281 GB, free: 13.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00391/0.7584, allocations: 1.478 MB / 1.282 GB, free: 11.61 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.7585, allocations: 37.64 kB / 1.282 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.7585, allocations: 4 kB / 1.282 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.7585, allocations: 8 kB / 1.282 GB, free: 11.55 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.7598, allocations: 275.8 kB / 1.282 GB, free: 11.28 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.7598, allocations: 8 kB / 1.282 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.7611, allocations: 191.3 kB / 1.283 GB, free: 11.09 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.721e-05/0.7612, allocations: 39.97 kB / 1.283 GB, free: 11.05 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002025/0.7632, allocations: 0.8259 MB / 1.284 GB, free: 10.22 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001825/0.7651, allocations: 0.7751 MB / 1.284 GB, free: 9.359 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003288/0.7684, allocations: 1.195 MB / 1.285 GB, free: 8.121 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.214e-06/0.7684, allocations: 0 / 1.285 GB, free: 8.121 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003867/0.7723, allocations: 1.466 MB / 1.287 GB, free: 6.637 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.7723, allocations: 36.2 kB / 1.287 GB, free: 6.598 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.7723, allocations: 11.88 kB / 1.287 GB, free: 6.586 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.7723, allocations: 8 kB / 1.287 GB, free: 6.578 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.7736, allocations: 264 kB / 1.287 GB, free: 6.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.242e-05/0.7737, allocations: 7.938 kB / 1.287 GB, free: 6.312 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.775, allocations: 187.5 kB / 1.287 GB, free: 6.129 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.629e-05/0.7751, allocations: 39.97 kB / 1.287 GB, free: 6.09 MB / 1.014 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.0002213/0.7753, allocations: 228.9 kB / 1.288 GB, free: 5.859 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/0.7755, allocations: 163 kB / 1.288 GB, free: 5.699 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004088/0.7796, allocations: 1.521 MB / 1.289 GB, free: 4.16 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/0.7797, allocations: 11.98 kB / 1.289 GB, free: 4.148 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.7797, allocations: 3.938 kB / 1.289 GB, free: 4.145 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003481/0.7832, allocations: 1.281 MB / 1.291 GB, free: 2.836 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006301/0.7895, allocations: 3.305 MB / 1.294 GB, free: 15.37 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.7895, allocations: 7.938 kB / 1.294 GB, free: 15.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.7907, allocations: 235.7 kB / 1.294 GB, free: 15.13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.7907, allocations: 4 kB / 1.294 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.319e-05/0.7908, allocations: 23.98 kB / 1.294 GB, free: 15.1 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.477e-06/0.7908, allocations: 15.94 kB / 1.294 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.896e-06/0.7908, allocations: 15.98 kB / 1.294 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005654/0.7965, allocations: 2.322 MB / 1.296 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004847/0.797, allocations: 371.6 kB / 1.297 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.7972, allocations: 16 kB / 1.297 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.7985, allocations: 143.8 kB / 1.297 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.7986, allocations: 72.36 kB / 1.297 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.601e-05/0.7987, allocations: 39.97 kB / 1.297 GB, free: 12.03 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001221/0.8, allocations: 0.9611 MB / 1.298 GB, free: 11.07 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.274e-06/0.8, allocations: 0 / 1.298 GB, free: 11.07 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001692/0.8017, allocations: 0.8226 MB / 1.299 GB, free: 10.25 MB / 1.029 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.006932/0.8086, allocations: 3.298 MB / 1.302 GB, free: 6.875 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005611/0.8142, allocations: 2.101 MB / 1.304 GB, free: 4.754 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8142, allocations: 0 / 1.304 GB, free: 4.754 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.8162, allocations: 0.7186 MB / 1.305 GB, free: 4.035 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003072/0.8193, allocations: 0.7458 MB / 1.305 GB, free: 3.297 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02264/0.842, allocations: 12.63 MB / 1.318 GB, free: 6.344 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009282/0.8429, allocations: 1.241 MB / 1.319 GB, free: 5.074 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001351/0.8443, allocations: 383.5 kB / 1.319 GB, free: 4.695 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008934/0.8452, allocations: 0.6046 MB / 1.32 GB, free: 4.09 MB / 1.045 GB Notification: Performance of SimCode: time 4.71e-07/0.8452, allocations: 4 kB / 1.32 GB, free: 4.086 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.274/2.119, allocations: 44.97 MB / 1.364 GB, free: 7.566 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/13.99, allocations: 18.83 kB / 1.364 GB, free: 7.551 MB / 1.092 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)