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.001064/0.001064, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 195.2 kB / 16.54 MB, free: 6.672 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.55/2.55, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 71.88 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5517/0.5529, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.05212/0.605, allocations: 60.47 MB / 1.009 GB, free: 5.18 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01582/0.6209, allocations: 13.17 MB / 1.022 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001649/0.6226, allocations: 71.56 kB / 1.022 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.6245, allocations: 0.957 MB / 1.023 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004298/0.6288, allocations: 2.308 MB / 1.025 GB, free: 4.633 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002922/0.6317, allocations: 1.528 MB / 1.026 GB, free: 3.117 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0038/0.6355, allocations: 4.283 MB / 1.031 GB, free: 14.82 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.6371, allocations: 1.318 MB / 1.032 GB, free: 13.47 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.6399, allocations: 1.575 MB / 1.033 GB, free: 11.9 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001623/0.6415, allocations: 1.198 MB / 1.035 GB, free: 10.7 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003434/0.6419, allocations: 140 kB / 1.035 GB, free: 10.56 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002653/0.6445, allocations: 1.439 MB / 1.036 GB, free: 9.117 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003646/0.6449, allocations: 414.5 kB / 1.036 GB, free: 8.711 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0008208/0.6457, allocations: 0.9017 MB / 1.037 GB, free: 7.805 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002718/0.6484, allocations: 2.719 MB / 1.04 GB, free: 5.078 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.6485, allocations: 0 / 1.04 GB, free: 5.078 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.242e-06/0.6485, allocations: 3.938 kB / 1.04 GB, free: 5.074 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.6485, allocations: 0 / 1.04 GB, free: 5.074 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.002976/0.6515, allocations: 2.174 MB / 1.042 GB, free: 2.832 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.6515, allocations: 8.031 kB / 1.042 GB, free: 2.824 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001534/0.6517, allocations: 147.9 kB / 1.042 GB, free: 2.672 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003189/0.6549, allocations: 0.6032 MB / 1.043 GB, free: 2.066 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.6566, allocations: 1.349 MB / 1.044 GB, free: 0.6641 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.6568, allocations: 145.4 kB / 1.044 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.6569, allocations: 103.9 kB / 1.044 GB, free: 420 kB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/0.6594, allocations: 1.311 MB / 1.046 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.6595, allocations: 7.906 kB / 1.046 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.774e-05/0.6596, allocations: 36 kB / 1.046 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.924e-05/0.6596, allocations: 27.94 kB / 1.046 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003286/0.6629, allocations: 1.308 MB / 1.047 GB, free: 13.68 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.005766/0.6687, allocations: 5.378 MB / 1.052 GB, free: 7.949 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005111/0.6738, allocations: 1.409 MB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001456/0.6753, allocations: 0.5936 MB / 1.054 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007917/0.6761, allocations: 1.24 MB / 1.055 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001641/0.6777, allocations: 0.6588 MB / 1.056 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.594e-06/0.6777, allocations: 3.938 kB / 1.056 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.004575/0.6823, allocations: 1.676 MB / 1.058 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.6824, allocations: 59.97 kB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.6837, allocations: 1.283 MB / 1.059 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.208e-05/0.6838, allocations: 49.69 kB / 1.059 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004799/0.6843, allocations: 0.6465 MB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.6845, allocations: 240.6 kB / 1.06 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.6847, allocations: 170.4 kB / 1.06 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.6848, allocations: 334 kB / 1.06 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/0.6863, allocations: 0.5317 MB / 1.061 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/0.6879, allocations: 0.7391 MB / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002889/0.6908, allocations: 1.128 MB / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6908, allocations: 0 / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003411/0.6943, allocations: 1.399 MB / 1.064 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.6943, allocations: 29.7 kB / 1.064 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.6943, allocations: 7.938 kB / 1.064 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.6943, allocations: 8 kB / 1.064 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.6955, allocations: 251.7 kB / 1.064 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.6955, allocations: 11.98 kB / 1.064 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.6968, allocations: 183.1 kB / 1.065 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-05/0.6968, allocations: 39.97 kB / 1.065 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001755/0.6986, allocations: 0.779 MB / 1.065 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001616/0.7002, allocations: 0.7391 MB / 1.066 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002853/0.7031, allocations: 1.12 MB / 1.067 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.144e-06/0.7031, allocations: 0 / 1.067 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003399/0.7065, allocations: 1.384 MB / 1.069 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.7065, allocations: 37.64 kB / 1.069 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.7065, allocations: 4 kB / 1.069 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.797e-06/0.7066, allocations: 11.94 kB / 1.069 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.7077, allocations: 255.9 kB / 1.069 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.7077, allocations: 11.98 kB / 1.069 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.709, allocations: 171.4 kB / 1.069 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.947e-05/0.709, allocations: 31.98 kB / 1.069 GB, free: 6.055 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.0002382/0.7093, allocations: 232.1 kB / 1.069 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.7095, allocations: 142.2 kB / 1.069 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.7131, allocations: 1.461 MB / 1.071 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.7131, allocations: 12 kB / 1.071 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.7132, allocations: 0 / 1.071 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003016/0.7162, allocations: 1.218 MB / 1.072 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005652/0.7218, allocations: 3.174 MB / 1.075 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.7219, allocations: 11.98 kB / 1.075 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.7229, allocations: 216.2 kB / 1.075 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.7229, allocations: 11.94 kB / 1.075 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.753e-05/0.723, allocations: 23.98 kB / 1.075 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.723, allocations: 11.98 kB / 1.075 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.723, allocations: 7.938 kB / 1.075 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004953/0.728, allocations: 2.2 MB / 1.078 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.7285, allocations: 347 kB / 1.078 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/0.7287, allocations: 24 kB / 1.078 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.7299, allocations: 131.8 kB / 1.078 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.73, allocations: 72.36 kB / 1.078 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.018e-05/0.7301, allocations: 39.97 kB / 1.078 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001051/0.7311, allocations: 0.9165 MB / 1.079 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7311, allocations: 0 / 1.079 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001696/0.7328, allocations: 0.7875 MB / 1.08 GB, free: 10.72 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.00611/0.739, allocations: 3.176 MB / 1.083 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.005194/0.7442, allocations: 2.046 MB / 1.085 GB, free: 5.41 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.7442, allocations: 0 / 1.085 GB, free: 5.41 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001724/0.7459, allocations: 0.6756 MB / 1.086 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003499/0.7494, allocations: 0.7645 MB / 1.086 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02089/0.7703, allocations: 12.76 MB / 1.099 GB, free: 6.68 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008339/0.7712, allocations: 1.23 MB / 1.1 GB, free: 5.422 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001621/0.7728, allocations: 371.3 kB / 1.1 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008018/0.7736, allocations: 0.589 MB / 1.101 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of SimCode: time 7.21e-07/0.7736, allocations: 0 / 1.101 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7013/1.475, allocations: 43.53 MB / 1.143 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/15.98, allocations: 14.38 kB / 1.143 GB, free: 9.418 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)