Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR",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.001275/0.001274, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001446/0.001446, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.221/1.221, 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 9.1.3-maint.9.1.x/package.mo): time 2.142/2.142, allocations: 390.2 MB / 0.6644 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 63.91 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4732/0.4744, allocations: 140.4 MB / 0.9492 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.0485/0.5229, allocations: 59.97 MB / 1.008 GB, free: 5.879 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01488/0.5378, allocations: 13.07 MB / 1.021 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001774/0.5396, allocations: 59.62 kB / 1.021 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002061/0.5417, allocations: 0.8454 MB / 1.021 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004666/0.5464, allocations: 2.153 MB / 1.024 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002984/0.5494, allocations: 1.413 MB / 1.025 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004265/0.5537, allocations: 4.305 MB / 1.029 GB, free: 15.99 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.5552, allocations: 1.31 MB / 1.03 GB, free: 14.65 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002998/0.5582, allocations: 1.599 MB / 1.032 GB, free: 13.05 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00149/0.5597, allocations: 1.225 MB / 1.033 GB, free: 11.82 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002564/0.56, allocations: 140 kB / 1.033 GB, free: 11.69 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002307/0.5623, allocations: 1.466 MB / 1.035 GB, free: 10.22 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003821/0.5627, allocations: 422.4 kB / 1.035 GB, free: 9.805 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0009316/0.5636, allocations: 0.9018 MB / 1.036 GB, free: 8.898 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002841/0.5665, allocations: 2.73 MB / 1.039 GB, free: 6.16 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.5665, allocations: 0 / 1.039 GB, free: 6.16 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.104e-06/0.5665, allocations: 3.938 kB / 1.039 GB, free: 6.156 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.91e-05/0.5666, allocations: 3.938 kB / 1.039 GB, free: 6.152 MB / 0.795 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.003377/0.5699, allocations: 2.17 MB / 1.041 GB, free: 3.914 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.57, allocations: 12.03 kB / 1.041 GB, free: 3.902 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.5701, allocations: 143.9 kB / 1.041 GB, free: 3.754 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00334/0.5735, allocations: 0.6032 MB / 1.042 GB, free: 3.148 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.5754, allocations: 1.396 MB / 1.043 GB, free: 1.699 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.5756, allocations: 141.4 kB / 1.043 GB, free: 1.551 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.5757, allocations: 100 kB / 1.043 GB, free: 1.453 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002602/0.5783, allocations: 1.307 MB / 1.044 GB, free: 112 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.5784, allocations: 0 / 1.044 GB, free: 112 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.451e-05/0.5785, allocations: 40 kB / 1.044 GB, free: 72 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/0.5785, allocations: 27.94 kB / 1.044 GB, free: 44 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003214/0.5817, allocations: 1.308 MB / 1.046 GB, free: 14.73 MB / 0.8106 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.005813/0.5875, allocations: 5.346 MB / 1.051 GB, free: 9.031 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004969/0.5925, allocations: 1.41 MB / 1.052 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.5939, allocations: 0.5963 MB / 1.053 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007241/0.5947, allocations: 1.236 MB / 1.054 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001586/0.5963, allocations: 0.6471 MB / 1.055 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.054e-06/0.5963, allocations: 4 kB / 1.055 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.004408/0.6007, allocations: 1.68 MB / 1.056 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.6007, allocations: 59.97 kB / 1.056 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.6021, allocations: 1.267 MB / 1.058 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.776e-05/0.6021, allocations: 41.7 kB / 1.058 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004332/0.6026, allocations: 0.6502 MB / 1.058 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.6028, allocations: 240.6 kB / 1.059 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002665/0.603, allocations: 174.5 kB / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.358e-05/0.6031, allocations: 337.9 kB / 1.059 GB, free: 320 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.6046, allocations: 0.52 MB / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.6061, allocations: 0.7469 MB / 1.06 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.6088, allocations: 1.128 MB / 1.061 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.6089, allocations: 4 kB / 1.061 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003283/0.6121, allocations: 1.388 MB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.6122, allocations: 33.7 kB / 1.063 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.6122, allocations: 11.88 kB / 1.063 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.6122, allocations: 7.984 kB / 1.063 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.6134, allocations: 259.6 kB / 1.063 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.6134, allocations: 4 kB / 1.063 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.6148, allocations: 226.9 kB / 1.063 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-05/0.6148, allocations: 39.97 kB / 1.063 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001688/0.6165, allocations: 0.7829 MB / 1.064 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001533/0.6181, allocations: 0.7352 MB / 1.065 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002698/0.6208, allocations: 1.116 MB / 1.066 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.697e-06/0.6208, allocations: 0 / 1.066 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003291/0.6241, allocations: 1.391 MB / 1.067 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.6241, allocations: 33.7 kB / 1.067 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.6241, allocations: 0 / 1.067 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.6242, allocations: 11.94 kB / 1.067 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.6253, allocations: 259.9 kB / 1.068 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.6253, allocations: 8 kB / 1.068 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.6266, allocations: 207.2 kB / 1.068 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.868e-05/0.6267, allocations: 39.98 kB / 1.068 GB, free: 7.082 MB / 0.8262 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.0002146/0.627, allocations: 228.1 kB / 1.068 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/0.6272, allocations: 142.2 kB / 1.068 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003584/0.6308, allocations: 1.462 MB / 1.07 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.6308, allocations: 7.984 kB / 1.07 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.6308, allocations: 7.938 kB / 1.07 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002979/0.6338, allocations: 1.214 MB / 1.071 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005547/0.6393, allocations: 3.171 MB / 1.074 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.6394, allocations: 8.031 kB / 1.074 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.6404, allocations: 219.7 kB / 1.074 GB, free: 424 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.178e-06/0.6405, allocations: 11.94 kB / 1.074 GB, free: 412 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.676e-05/0.6405, allocations: 23.98 kB / 1.074 GB, free: 388 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/0.6405, allocations: 12 kB / 1.074 GB, free: 376 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.6405, allocations: 7.938 kB / 1.074 GB, free: 368 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004786/0.6453, allocations: 2.212 MB / 1.076 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004638/0.6458, allocations: 346.8 kB / 1.077 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.646, allocations: 23.98 kB / 1.077 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.6473, allocations: 155.8 kB / 1.077 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.6474, allocations: 72.36 kB / 1.077 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-05/0.6475, allocations: 43.97 kB / 1.077 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001033/0.6486, allocations: 0.9048 MB / 1.078 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.583e-06/0.6486, allocations: 0 / 1.078 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001614/0.6502, allocations: 0.7836 MB / 1.079 GB, free: 11.73 MB / 0.8419 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.005889/0.6561, allocations: 3.146 MB / 1.082 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004962/0.6611, allocations: 2.046 MB / 1.084 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.6611, allocations: 0 / 1.084 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.6628, allocations: 0.6795 MB / 1.084 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/0.6658, allocations: 0.7589 MB / 1.085 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/0.6875, allocations: 13.19 MB / 1.098 GB, free: 7.293 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007062/0.6882, allocations: 1.23 MB / 1.099 GB, free: 6.035 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001443/0.6897, allocations: 359.4 kB / 1.099 GB, free: 5.68 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007583/0.6904, allocations: 0.5891 MB / 1.1 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of SimCode: time 2.81e-07/0.6905, allocations: 0 / 1.1 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8848/1.575, allocations: 42.79 MB / 1.142 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/1.575, allocations: 234.5 kB / 1.142 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.095/4.671, allocations: 8 kB / 1.142 GB, free: 10.58 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)