Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",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.001045/0.001045, 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.006758/0.006758, allocations: 169.6 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.277/1.277, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.455/2.455, allocations: 437.8 MB / 0.7121 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003196, allocations: 8 kB / 0.8729 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.538/0.5383, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.054/0.5924, allocations: 59.14 MB / 1.081 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01725/0.6097, allocations: 13.13 MB / 1.094 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002305/0.612, allocations: 59.56 kB / 1.094 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0025/0.6145, allocations: 0.8102 MB / 1.095 GB, free: 6.461 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005792/0.6203, allocations: 2.144 MB / 1.097 GB, free: 4.309 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003573/0.6239, allocations: 1.43 MB / 1.098 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005942/0.6299, allocations: 5.565 MB / 1.103 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00187/0.6318, allocations: 1.107 MB / 1.105 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002594/0.6344, allocations: 1.318 MB / 1.106 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0019/0.6363, allocations: 1.17 MB / 1.107 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003156/0.6366, allocations: 60 kB / 1.107 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002983/0.6396, allocations: 1.372 MB / 1.108 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004811/0.6401, allocations: 334.5 kB / 1.109 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.6414, allocations: 0.8448 MB / 1.11 GB, free: 7.051 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003883/0.6453, allocations: 2.671 MB / 1.112 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.6453, allocations: 8 kB / 1.112 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/0.6453, allocations: 0 / 1.112 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.373e-05/0.6454, allocations: 0 / 1.112 GB, free: 4.363 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.00364/0.649, allocations: 1.888 MB / 1.114 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.6491, allocations: 12.03 kB / 1.114 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002612/0.6493, allocations: 148 kB / 1.114 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003588/0.6529, allocations: 0.5837 MB / 1.115 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.6553, allocations: 1.402 MB / 1.116 GB, free: 212 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.6555, allocations: 141.4 kB / 1.116 GB, free: 60 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/0.6557, allocations: 104 kB / 1.116 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002825/0.6585, allocations: 1.365 MB / 1.118 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.6585, allocations: 11.92 kB / 1.118 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.6586, allocations: 40 kB / 1.118 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.6587, allocations: 31.94 kB / 1.118 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003608/0.6623, allocations: 1.401 MB / 1.119 GB, free: 13.07 MB / 0.8731 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.007027/0.6693, allocations: 5.492 MB / 1.124 GB, free: 7.227 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00547/0.6748, allocations: 1.491 MB / 1.126 GB, free: 5.691 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/0.6764, allocations: 0.6115 MB / 1.127 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008339/0.6773, allocations: 1.24 MB / 1.128 GB, free: 3.562 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001742/0.679, allocations: 0.6873 MB / 1.128 GB, free: 2.855 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=71): time 5.02e-06/0.6791, allocations: 4 kB / 1.128 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71): time 0.02161/0.7007, allocations: 3.792 MB / 1.132 GB, free: 15.03 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.7008, allocations: 64.05 kB / 1.132 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00177/0.7025, allocations: 1.275 MB / 1.133 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.7027, allocations: 41.7 kB / 1.133 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005489/0.7033, allocations: 0.6696 MB / 1.134 GB, free: 12.94 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/0.7036, allocations: 236.6 kB / 1.134 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.7037, allocations: 73.67 kB / 1.134 GB, free: 12.63 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.7038, allocations: 341.9 kB / 1.135 GB, free: 12.29 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.7054, allocations: 0.5406 MB / 1.135 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.7072, allocations: 0.7829 MB / 1.136 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003081/0.7103, allocations: 1.199 MB / 1.137 GB, free: 9.637 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.7103, allocations: 4 kB / 1.137 GB, free: 9.633 MB / 0.8887 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.009583/0.7199, allocations: 2.176 MB / 1.139 GB, free: 7.441 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.72, allocations: 216.2 kB / 1.14 GB, free: 7.176 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.72, allocations: 4 kB / 1.14 GB, free: 7.172 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001616/0.7216, allocations: 496.4 kB / 1.14 GB, free: 6.684 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008148/0.7225, allocations: 203.7 kB / 1.14 GB, free: 6.484 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01564/0.7381, allocations: 3.805 MB / 1.144 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.74, allocations: 242.9 kB / 1.144 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001576/0.7402, allocations: 43.97 kB / 1.144 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.7402, allocations: 6.188 kB / 1.144 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009411/0.7496, allocations: 2.024 MB / 1.146 GB, free: 228 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.7496, allocations: 0 / 1.146 GB, free: 228 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.7512, allocations: 492.8 kB / 1.147 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008491/0.7521, allocations: 207.7 kB / 1.147 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/0.7676, allocations: 3.8 MB / 1.151 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.7694, allocations: 239.1 kB / 1.151 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.7696, allocations: 39.98 kB / 1.151 GB, free: 11.32 MB / 0.9044 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 (fal.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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0007215/0.7703, allocations: 416.8 kB / 1.151 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.7706, allocations: 142.2 kB / 1.151 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009879/0.7805, allocations: 2.247 MB / 1.154 GB, free: 8.496 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.7805, allocations: 8 kB / 1.154 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.7806, allocations: 0 / 1.154 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009082/0.7896, allocations: 1.992 MB / 1.155 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/0.802, allocations: 3.971 MB / 1.159 GB, free: 2.328 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/0.8021, allocations: 12.5 kB / 1.159 GB, free: 2.316 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007045/0.8028, allocations: 167.8 kB / 1.16 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/0.8043, allocations: 0.4926 MB / 1.16 GB, free: 1.656 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.073e-05/0.8045, allocations: 23.98 kB / 1.16 GB, free: 1.633 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01533/0.8198, allocations: 3.795 MB / 1.164 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.8198, allocations: 4 kB / 1.164 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0114/0.8312, allocations: 3.014 MB / 1.167 GB, free: 10.61 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007578/0.832, allocations: 370.8 kB / 1.167 GB, free: 10.23 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.8323, allocations: 24 kB / 1.167 GB, free: 10.2 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.8339, allocations: 179.7 kB / 1.167 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.834, allocations: 80.34 kB / 1.167 GB, free: 9.949 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-05/0.8341, allocations: 35.97 kB / 1.167 GB, free: 9.914 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.00131/0.8355, allocations: 0.9129 MB / 1.168 GB, free: 9.004 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8355, allocations: 0 / 1.168 GB, free: 9.004 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002266/0.8377, allocations: 0.8539 MB / 1.169 GB, free: 8.148 MB / 0.92 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 (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01245/0.8502, allocations: 3.964 MB / 1.173 GB, free: 4.105 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.007805/0.858, allocations: 2.614 MB / 1.176 GB, free: 1.445 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.8581, allocations: 0 / 1.176 GB, free: 1.445 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.003045/0.8611, allocations: 0.9712 MB / 1.176 GB, free: 472 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005107/0.8662, allocations: 0.7725 MB / 1.177 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03834/0.9046, allocations: 15.11 MB / 1.192 GB, free: 24 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008532/0.9055, allocations: 1.242 MB / 1.193 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001464/0.907, allocations: 351.4 kB / 1.194 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007906/0.9078, allocations: 0.5813 MB / 1.194 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of SimCode: time 1.953e-06/0.9078, allocations: 0 / 1.194 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.469/2.377, allocations: 53.1 MB / 1.246 GB, free: 9.309 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002692/2.377, allocations: 280.3 kB / 1.246 GB, free: 8.934 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.331/5.708, allocations: 0 / 1.246 GB, free: 8.934 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1)