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.0009078/0.0009081, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.007111/0.007111, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.501/1.501, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.87/2.87, allocations: 473.4 MB / 0.7469 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003703, allocations: 12.62 kB / 0.9158 GB, free: 33.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4403/0.4407, allocations: 162.2 MB / 1.074 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.068/0.5087, allocations: 59.14 MB / 1.132 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0219/0.5307, allocations: 13.13 MB / 1.145 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00394/0.5347, allocations: 67.56 kB / 1.145 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003074/0.5378, allocations: 0.8082 MB / 1.146 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.009481/0.5473, allocations: 2.146 MB / 1.148 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005407/0.5527, allocations: 1.415 MB / 1.149 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0106/0.5633, allocations: 5.574 MB / 1.154 GB, free: 5.031 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002828/0.5662, allocations: 1.111 MB / 1.156 GB, free: 3.887 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003904/0.5701, allocations: 1.322 MB / 1.157 GB, free: 2.559 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002551/0.5727, allocations: 1.178 MB / 1.158 GB, free: 1.375 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002013/0.5729, allocations: 63.98 kB / 1.158 GB, free: 1.312 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003983/0.5769, allocations: 1.364 MB / 1.159 GB, free: 15.95 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0006206/0.5776, allocations: 330.4 kB / 1.16 GB, free: 15.62 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001426/0.579, allocations: 0.8487 MB / 1.161 GB, free: 14.76 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004676/0.5837, allocations: 2.663 MB / 1.163 GB, free: 12.09 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5837, allocations: 0 / 1.163 GB, free: 12.09 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.284e-06/0.5837, allocations: 0 / 1.163 GB, free: 12.09 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.662e-05/0.5838, allocations: 0 / 1.163 GB, free: 12.09 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.003734/0.5875, allocations: 1.894 MB / 1.165 GB, free: 10.13 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.5875, allocations: 8.031 kB / 1.165 GB, free: 10.12 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003706/0.5913, allocations: 0.5839 MB / 1.166 GB, free: 9.539 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002498/0.5938, allocations: 1.41 MB / 1.167 GB, free: 8.074 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.594, allocations: 149.4 kB / 1.167 GB, free: 7.918 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000183/0.5942, allocations: 107.9 kB / 1.167 GB, free: 7.812 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003041/0.5972, allocations: 1.358 MB / 1.169 GB, free: 6.418 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.5973, allocations: 4 kB / 1.169 GB, free: 6.414 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.5974, allocations: 43.94 kB / 1.169 GB, free: 6.371 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-05/0.5974, allocations: 24 kB / 1.169 GB, free: 6.348 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003875/0.6013, allocations: 1.405 MB / 1.17 GB, free: 4.945 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.007607/0.6089, allocations: 5.481 MB / 1.175 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005904/0.6148, allocations: 1.494 MB / 1.177 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.6166, allocations: 0.6237 MB / 1.177 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/0.6178, allocations: 1.232 MB / 1.179 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001903/0.6197, allocations: 0.6873 MB / 1.179 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=71): time 3.446e-06/0.6197, allocations: 0 / 1.179 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71): time 0.02213/0.6419, allocations: 3.799 MB / 1.183 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.923e-05/0.642, allocations: 56.06 kB / 1.183 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.6442, allocations: 1.279 MB / 1.184 GB, free: 5.555 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002157/0.6445, allocations: 41.7 kB / 1.184 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006643/0.6451, allocations: 0.6581 MB / 1.185 GB, free: 4.84 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003236/0.6455, allocations: 260.4 kB / 1.185 GB, free: 4.582 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.6456, allocations: 65.69 kB / 1.185 GB, free: 4.512 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001957/0.6458, allocations: 345.9 kB / 1.186 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.6476, allocations: 0.5485 MB / 1.186 GB, free: 3.617 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001856/0.6494, allocations: 0.7753 MB / 1.187 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003254/0.6527, allocations: 1.203 MB / 1.188 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.6527, allocations: 0 / 1.188 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.01038/0.6631, allocations: 2.177 MB / 1.19 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001732/0.6633, allocations: 215.9 kB / 1.19 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.6633, allocations: 7.984 kB / 1.19 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.6651, allocations: 492.5 kB / 1.191 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008901/0.666, allocations: 203.7 kB / 1.191 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/0.6828, allocations: 3.814 MB / 1.195 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002184/0.685, allocations: 243.1 kB / 1.195 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002121/0.6853, allocations: 35.98 kB / 1.195 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.6853, allocations: 4 kB / 1.195 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01025/0.6956, allocations: 2.02 MB / 1.197 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.6956, allocations: 4 kB / 1.197 GB, free: 8.098 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/0.6973, allocations: 0.4928 MB / 1.198 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000971/0.6983, allocations: 195.8 kB / 1.198 GB, free: 7.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01678/0.7151, allocations: 3.813 MB / 1.201 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/0.718, allocations: 227.2 kB / 1.202 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003651/0.7184, allocations: 39.98 kB / 1.202 GB, free: 3.203 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.001577/0.72, allocations: 420.8 kB / 1.202 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007339/0.7208, allocations: 150.2 kB / 1.202 GB, free: 2.633 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/0.7316, allocations: 2.223 MB / 1.204 GB, free: 392 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-05/0.7317, allocations: 15.94 kB / 1.204 GB, free: 376 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.7317, allocations: 0 / 1.204 GB, free: 376 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009688/0.7414, allocations: 1.988 MB / 1.206 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/0.7555, allocations: 3.987 MB / 1.21 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-05/0.7556, allocations: 7.984 kB / 1.21 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008173/0.7564, allocations: 176 kB / 1.21 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/0.758, allocations: 488.5 kB / 1.211 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.7582, allocations: 27.98 kB / 1.211 GB, free: 9.504 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0168/0.775, allocations: 3.791 MB / 1.215 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.338e-06/0.775, allocations: 7.984 kB / 1.215 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/0.7878, allocations: 3.01 MB / 1.218 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.7891, allocations: 378.7 kB / 1.218 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004693/0.7896, allocations: 19.98 kB / 1.218 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/0.7916, allocations: 175.5 kB / 1.218 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.7918, allocations: 80.34 kB / 1.218 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.792, allocations: 39.97 kB / 1.218 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00196/0.7939, allocations: 0.9129 MB / 1.219 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7939, allocations: 0 / 1.219 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.00346/0.7974, allocations: 0.8539 MB / 1.22 GB, free: 20 kB / 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.00146/0.7989, allocations: 0.5114 MB / 1.22 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008615/0.8075, allocations: 2.602 MB / 1.223 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/0.8076, allocations: 0 / 1.223 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.003396/0.811, allocations: 0.9673 MB / 1.224 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005988/0.817, allocations: 0.781 MB / 1.225 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008568/0.8256, allocations: 3.463 MB / 1.228 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.8269, allocations: 1.242 MB / 1.229 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001906/0.8288, allocations: 351.4 kB / 1.23 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.8292, allocations: 123.4 kB / 1.23 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of SimCode: time 1.362e-06/0.8292, allocations: 0 / 1.23 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of Templates: time 0.7185/1.548, allocations: 40.67 MB / 1.269 GB, free: 169.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)