Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, 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.001933/0.001933, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.447/1.447, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.89/2.89, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 70.5 kB / 0.912 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4009, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.06345/0.4644, allocations: 60.62 MB / 1.127 GB, free: 13.58 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02358/0.488, allocations: 13.21 MB / 1.14 GB, free: 344 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003458/0.4915, allocations: 75.56 kB / 1.14 GB, free: 268 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003703/0.4953, allocations: 0.959 MB / 1.141 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008341/0.5037, allocations: 2.331 MB / 1.144 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005343/0.509, allocations: 1.559 MB / 1.145 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.008003/0.5171, allocations: 4.322 MB / 1.149 GB, free: 7.078 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003177/0.5203, allocations: 1.358 MB / 1.151 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005016/0.5253, allocations: 1.562 MB / 1.152 GB, free: 4.129 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002942/0.5283, allocations: 1.206 MB / 1.153 GB, free: 2.918 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0008102/0.5291, allocations: 144 kB / 1.153 GB, free: 2.777 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004707/0.5338, allocations: 1.474 MB / 1.155 GB, free: 1.301 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0009167/0.5348, allocations: 422.5 kB / 1.155 GB, free: 0.8867 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002386/0.5372, allocations: 0.9174 MB / 1.156 GB, free: 15.96 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.007996/0.5452, allocations: 2.754 MB / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.5452, allocations: 0 / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.567e-06/0.5453, allocations: 0 / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001484/0.5454, allocations: 0 / 1.159 GB, free: 13.2 MB / 0.92 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.006687/0.5521, allocations: 2.197 MB / 1.161 GB, free: 10.94 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.776e-05/0.5522, allocations: 8.031 kB / 1.161 GB, free: 10.93 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00423/0.5564, allocations: 0.5566 MB / 1.162 GB, free: 10.38 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003536/0.56, allocations: 1.371 MB / 1.163 GB, free: 8.949 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003052/0.5603, allocations: 149.4 kB / 1.163 GB, free: 8.793 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002416/0.5606, allocations: 100 kB / 1.163 GB, free: 8.695 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003215/0.5638, allocations: 1.334 MB / 1.164 GB, free: 7.324 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/0.5638, allocations: 7.984 kB / 1.164 GB, free: 7.316 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.564, allocations: 36 kB / 1.165 GB, free: 7.281 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.72e-05/0.564, allocations: 28 kB / 1.165 GB, free: 7.254 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003843/0.5679, allocations: 1.343 MB / 1.166 GB, free: 5.914 MB / 0.92 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.008514/0.5764, allocations: 5.508 MB / 1.171 GB, free: 48 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005604/0.582, allocations: 1.42 MB / 1.173 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001671/0.5837, allocations: 0.5958 MB / 1.173 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001002/0.5847, allocations: 1.24 MB / 1.174 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001781/0.5865, allocations: 0.66 MB / 1.175 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=71): time 3.266e-06/0.5866, allocations: 0 / 1.175 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71): time 0.02118/0.6077, allocations: 3.706 MB / 1.179 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/0.6078, allocations: 68.06 kB / 1.179 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/0.6103, allocations: 1.287 MB / 1.18 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001884/0.6105, allocations: 45.7 kB / 1.18 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007082/0.6112, allocations: 0.658 MB / 1.181 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.6116, allocations: 248.5 kB / 1.181 GB, free: 5.719 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003671/0.612, allocations: 178.4 kB / 1.181 GB, free: 5.539 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.6121, allocations: 341.8 kB / 1.181 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.6137, allocations: 0.5278 MB / 1.182 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.6156, allocations: 0.7561 MB / 1.183 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0032/0.6188, allocations: 1.14 MB / 1.184 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.6189, allocations: 0 / 1.184 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.009814/0.6287, allocations: 2.141 MB / 1.186 GB, free: 492 kB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/0.6288, allocations: 35.42 kB / 1.186 GB, free: 452 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.6288, allocations: 8 kB / 1.186 GB, free: 444 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001846/0.6307, allocations: 492.5 kB / 1.186 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.6317, allocations: 187.7 kB / 1.187 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01766/0.6494, allocations: 4.134 MB / 1.191 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.6513, allocations: 179.2 kB / 1.191 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/0.6516, allocations: 43.98 kB / 1.191 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002422/0.654, allocations: 0.7796 MB / 1.192 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002051/0.6561, allocations: 0.7527 MB / 1.192 GB, free: 9.652 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003618/0.6597, allocations: 1.136 MB / 1.193 GB, free: 8.473 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.329e-06/0.6597, allocations: 0 / 1.193 GB, free: 8.473 MB / 0.9512 GB Notification: Performance of matching and sorting (n=99) (initialization_lambda0): time 0.01039/0.6701, allocations: 2.118 MB / 1.195 GB, free: 6.332 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.6702, allocations: 38 kB / 1.196 GB, free: 6.289 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.6703, allocations: 4 kB / 1.196 GB, free: 6.285 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001661/0.6719, allocations: 492.5 kB / 1.196 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.673, allocations: 195.6 kB / 1.196 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01694/0.6899, allocations: 4.128 MB / 1.2 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.6918, allocations: 175.3 kB / 1.2 GB, free: 1.172 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001872/0.692, allocations: 39.98 kB / 1.2 GB, free: 1.133 MB / 0.9512 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.0004068/0.6924, allocations: 228.1 kB / 1.201 GB, free: 0.9023 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004799/0.6929, allocations: 150.2 kB / 1.201 GB, free: 0.7539 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009975/0.7029, allocations: 2.18 MB / 1.203 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-05/0.7029, allocations: 11.98 kB / 1.203 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.7029, allocations: 0 / 1.203 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009279/0.7122, allocations: 1.941 MB / 1.205 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/0.7255, allocations: 3.925 MB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.7256, allocations: 8 kB / 1.209 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007293/0.7263, allocations: 151.8 kB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001634/0.728, allocations: 0.4929 MB / 1.209 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.461e-05/0.7281, allocations: 23.98 kB / 1.209 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01647/0.7446, allocations: 4.127 MB / 1.213 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.7446, allocations: 4 kB / 1.213 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01175/0.7563, allocations: 2.94 MB / 1.216 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007364/0.7571, allocations: 346.8 kB / 1.217 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.7574, allocations: 23.94 kB / 1.217 GB, free: 128 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.7589, allocations: 127.9 kB / 1.217 GB, free: 0 / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.7591, allocations: 72.36 kB / 1.217 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.7592, allocations: 43.97 kB / 1.217 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001546/0.7608, allocations: 0.9207 MB / 1.218 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7608, allocations: 4 kB / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002489/0.7633, allocations: 0.8617 MB / 1.219 GB, free: 14.1 MB / 0.9825 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.001172/0.7645, allocations: 0.5163 MB / 1.219 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008157/0.7726, allocations: 2.579 MB / 1.222 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.7727, allocations: 0 / 1.222 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.00318/0.7759, allocations: 0.9554 MB / 1.222 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004194/0.7801, allocations: 0.7688 MB / 1.223 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006714/0.7868, allocations: 2.903 MB / 1.226 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009814/0.7878, allocations: 1.238 MB / 1.227 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001489/0.7893, allocations: 339.5 kB / 1.228 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003314/0.7897, allocations: 119.4 kB / 1.228 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of SimCode: time 1.904e-06/0.7897, allocations: 3.938 kB / 1.228 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of Templates: time 0.6318/1.421, allocations: 42.11 MB / 1.269 GB, free: 171.4 MB / 0.9981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1)