Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_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.0008011/0.0008011, allocations: 90.67 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.004763/0.004763, allocations: 171.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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.63/2.63, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.000301, allocations: 12.44 kB / 0.9029 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2481, allocations: 159.6 MB / 1.059 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.05394/0.3021, allocations: 59.13 MB / 1.117 GB, free: 9.523 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01642/0.3186, allocations: 13.11 MB / 1.129 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.3205, allocations: 59.62 kB / 1.129 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002185/0.3227, allocations: 0.8121 MB / 1.13 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00509/0.3278, allocations: 2.149 MB / 1.132 GB, free: 9.348 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.00325/0.331, allocations: 1.42 MB / 1.134 GB, free: 7.938 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005661/0.3367, allocations: 5.573 MB / 1.139 GB, free: 2.352 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001695/0.3384, allocations: 1.115 MB / 1.14 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002464/0.3409, allocations: 1.318 MB / 1.141 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.3424, allocations: 1.182 MB / 1.143 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.3426, allocations: 60 kB / 1.143 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002506/0.3451, allocations: 1.364 MB / 1.144 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000309/0.3454, allocations: 342.4 kB / 1.144 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007549/0.3462, allocations: 0.8448 MB / 1.145 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002588/0.3488, allocations: 2.663 MB / 1.148 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3488, allocations: 0 / 1.148 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3488, allocations: 0 / 1.148 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.339e-05/0.3488, allocations: 0 / 1.148 GB, free: 9.406 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: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.002978/0.3518, allocations: 1.894 MB / 1.15 GB, free: 7.449 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3519, allocations: 11.97 kB / 1.15 GB, free: 7.438 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/0.352, allocations: 148 kB / 1.15 GB, free: 7.285 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003596/0.3556, allocations: 0.5838 MB / 1.15 GB, free: 6.699 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/0.3575, allocations: 1.406 MB / 1.152 GB, free: 5.238 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.3577, allocations: 149.4 kB / 1.152 GB, free: 5.082 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.3578, allocations: 100 kB / 1.152 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/0.3606, allocations: 1.366 MB / 1.153 GB, free: 3.582 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.3607, allocations: 0 / 1.153 GB, free: 3.582 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.3608, allocations: 39.94 kB / 1.153 GB, free: 3.543 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.317e-05/0.3608, allocations: 31.88 kB / 1.153 GB, free: 3.512 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003615/0.3644, allocations: 1.409 MB / 1.155 GB, free: 2.102 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.00626/0.3707, allocations: 5.481 MB / 1.16 GB, free: 12.27 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005377/0.3761, allocations: 1.492 MB / 1.162 GB, free: 10.73 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001556/0.3777, allocations: 0.6198 MB / 1.162 GB, free: 10.11 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000788/0.3785, allocations: 1.236 MB / 1.163 GB, free: 8.594 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001721/0.3802, allocations: 0.6835 MB / 1.164 GB, free: 7.898 MB / 0.92 GB Notification: Performance of pre-optimization done (n=71): time 2.344e-06/0.3802, allocations: 0 / 1.164 GB, free: 7.898 MB / 0.92 GB Notification: Performance of matching and sorting (n=71): time 0.02052/0.4007, allocations: 3.796 MB / 1.168 GB, free: 4.07 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.4008, allocations: 60.06 kB / 1.168 GB, free: 4 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/0.4022, allocations: 1.283 MB / 1.169 GB, free: 2.707 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.12e-05/0.4023, allocations: 45.7 kB / 1.169 GB, free: 2.656 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005054/0.4028, allocations: 0.6542 MB / 1.17 GB, free: 1.992 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.403, allocations: 248.4 kB / 1.17 GB, free: 1.746 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.4032, allocations: 81.67 kB / 1.17 GB, free: 1.66 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.4033, allocations: 341.9 kB / 1.17 GB, free: 1.32 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.4048, allocations: 0.5368 MB / 1.171 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.4065, allocations: 0.7832 MB / 1.172 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.4095, allocations: 1.199 MB / 1.173 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4096, allocations: 0 / 1.173 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.009429/0.419, allocations: 2.176 MB / 1.175 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.4191, allocations: 212.2 kB / 1.175 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4191, allocations: 3.984 kB / 1.175 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/0.4207, allocations: 0.4926 MB / 1.176 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007826/0.4215, allocations: 203.7 kB / 1.176 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04532/0.4669, allocations: 3.806 MB / 1.18 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.4688, allocations: 235.1 kB / 1.18 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.498e-05/0.4689, allocations: 39.98 kB / 1.18 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.469, allocations: 5.406 kB / 1.18 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009283/0.4782, allocations: 2.016 MB / 1.182 GB, free: 5.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.4783, allocations: 7.938 kB / 1.182 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.4798, allocations: 0.489 MB / 1.182 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007798/0.4806, allocations: 207.7 kB / 1.182 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01536/0.496, allocations: 3.803 MB / 1.186 GB, free: 0.6289 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.4977, allocations: 235.2 kB / 1.186 GB, free: 408 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.893e-05/0.4978, allocations: 35.98 kB / 1.186 GB, free: 372 kB / 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 (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.0006486/0.4985, allocations: 416.9 kB / 1.187 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.4986, allocations: 146.2 kB / 1.187 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009474/0.5081, allocations: 2.239 MB / 1.189 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.5082, allocations: 8 kB / 1.189 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.5082, allocations: 0 / 1.189 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00874/0.5169, allocations: 1.995 MB / 1.191 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/0.5286, allocations: 3.984 MB / 1.195 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.5286, allocations: 4 kB / 1.195 GB, free: 7.359 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000691/0.5293, allocations: 172 kB / 1.195 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.5309, allocations: 0.4887 MB / 1.196 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.023e-05/0.5309, allocations: 23.98 kB / 1.196 GB, free: 6.676 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0151/0.546, allocations: 3.791 MB / 1.199 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.5461, allocations: 7.938 kB / 1.199 GB, free: 2.738 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/0.5572, allocations: 3.014 MB / 1.202 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006914/0.5579, allocations: 370.8 kB / 1.203 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002433/0.5581, allocations: 20 kB / 1.203 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.5596, allocations: 179.8 kB / 1.203 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.5598, allocations: 76.34 kB / 1.203 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.643e-05/0.5599, allocations: 43.97 kB / 1.203 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00124/0.5611, allocations: 0.9051 MB / 1.204 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5611, allocations: 0 / 1.204 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002159/0.5633, allocations: 0.8578 MB / 1.205 GB, free: 13.19 MB / 0.9669 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.01247/0.5758, allocations: 3.967 MB / 1.209 GB, free: 9.141 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.008044/0.5838, allocations: 2.61 MB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5839, allocations: 4 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.002978/0.5868, allocations: 0.9711 MB / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004744/0.5916, allocations: 0.781 MB / 1.213 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03766/0.6293, allocations: 15.1 MB / 1.228 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008116/0.6301, allocations: 1.246 MB / 1.229 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001409/0.6315, allocations: 351.5 kB / 1.229 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007976/0.6324, allocations: 0.5852 MB / 1.23 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of SimCode: time 6.21e-07/0.6324, allocations: 0 / 1.23 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.35/1.982, allocations: 53.08 MB / 1.282 GB, free: 172 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002497/1.982, allocations: 286.4 kB / 1.282 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.12/5.102, allocations: 1.531 kB / 1.282 GB, free: 171.6 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1)