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: translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_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.0009632/0.0009675, allocations: 92.7 kB / 16.02 MB, free: 80 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.001195/0.001195, allocations: 179.1 kB / 16.92 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.411/1.411, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.756/2.756, allocations: 462.7 MB / 0.7371 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004051, allocations: 8.656 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.3836, allocations: 159.6 MB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.06573/0.4494, allocations: 59.14 MB / 1.117 GB, free: 9.605 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01984/0.4693, allocations: 13.12 MB / 1.13 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003347/0.4727, allocations: 55.62 kB / 1.13 GB, free: 12.4 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002866/0.4756, allocations: 0.8199 MB / 1.131 GB, free: 11.58 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007046/0.4826, allocations: 2.154 MB / 1.133 GB, free: 9.418 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004381/0.487, allocations: 1.426 MB / 1.134 GB, free: 8.004 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007293/0.4943, allocations: 5.562 MB / 1.14 GB, free: 2.426 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002309/0.4967, allocations: 1.115 MB / 1.141 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003233/0.4999, allocations: 1.322 MB / 1.142 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002307/0.5023, allocations: 1.174 MB / 1.143 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004308/0.5027, allocations: 60 kB / 1.143 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003677/0.5064, allocations: 1.372 MB / 1.145 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006628/0.5071, allocations: 334.4 kB / 1.145 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.5089, allocations: 0.8409 MB / 1.146 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003402/0.5123, allocations: 2.05 MB / 1.148 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.5123, allocations: 0 / 1.148 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5123, allocations: 0 / 1.148 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.95e-05/0.5124, allocations: 0 / 1.148 GB, free: 10.11 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.004363/0.5168, allocations: 1.89 MB / 1.15 GB, free: 8.152 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.5169, allocations: 15.97 kB / 1.15 GB, free: 8.137 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004037/0.5209, allocations: 0.58 MB / 1.15 GB, free: 7.555 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002995/0.5239, allocations: 1.406 MB / 1.152 GB, free: 6.094 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.5241, allocations: 153.4 kB / 1.152 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002742/0.5244, allocations: 100 kB / 1.152 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0036/0.528, allocations: 1.366 MB / 1.153 GB, free: 4.434 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.152e-05/0.5281, allocations: 3.938 kB / 1.153 GB, free: 4.43 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.5282, allocations: 44 kB / 1.153 GB, free: 4.387 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-05/0.5283, allocations: 24 kB / 1.153 GB, free: 4.363 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004194/0.5325, allocations: 1.405 MB / 1.155 GB, free: 2.957 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.008824/0.5413, allocations: 5.488 MB / 1.16 GB, free: 13.11 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005984/0.5473, allocations: 1.487 MB / 1.161 GB, free: 11.58 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001821/0.5492, allocations: 0.6276 MB / 1.162 GB, free: 10.95 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00103/0.5502, allocations: 1.228 MB / 1.163 GB, free: 9.445 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001976/0.5522, allocations: 0.6874 MB / 1.164 GB, free: 8.746 MB / 0.92 GB Notification: Performance of pre-optimization done (n=71): time 3.927e-06/0.5523, allocations: 3.938 kB / 1.164 GB, free: 8.742 MB / 0.92 GB Notification: Performance of matching and sorting (n=71): time 0.02272/0.575, allocations: 3.792 MB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.5751, allocations: 64 kB / 1.168 GB, free: 4.844 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002349/0.5775, allocations: 1.275 MB / 1.169 GB, free: 3.559 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001828/0.5777, allocations: 45.69 kB / 1.169 GB, free: 3.508 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006679/0.5783, allocations: 0.6619 MB / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003462/0.5787, allocations: 244.5 kB / 1.17 GB, free: 2.594 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.5789, allocations: 73.67 kB / 1.17 GB, free: 2.516 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.579, allocations: 341.9 kB / 1.17 GB, free: 2.176 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001795/0.5808, allocations: 0.5407 MB / 1.171 GB, free: 1.637 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001969/0.5828, allocations: 0.7838 MB / 1.171 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/0.5863, allocations: 1.203 MB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.5863, allocations: 0 / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.01053/0.5969, allocations: 2.177 MB / 1.175 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001671/0.5971, allocations: 211.9 kB / 1.175 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5971, allocations: 4 kB / 1.175 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001842/0.5989, allocations: 0.4887 MB / 1.175 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.6, allocations: 203.7 kB / 1.176 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01723/0.6172, allocations: 3.795 MB / 1.179 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002077/0.6194, allocations: 239.1 kB / 1.18 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/0.6196, allocations: 40.16 kB / 1.18 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.6196, allocations: 5.562 kB / 1.18 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01035/0.6299, allocations: 2.024 MB / 1.182 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.63, allocations: 4 kB / 1.182 GB, free: 6.117 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.6317, allocations: 496.7 kB / 1.182 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.6327, allocations: 203.7 kB / 1.182 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01713/0.6499, allocations: 3.808 MB / 1.186 GB, free: 1.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.6519, allocations: 235.1 kB / 1.186 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.6521, allocations: 39.98 kB / 1.186 GB, free: 1.215 MB / 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.0009046/0.653, allocations: 424.7 kB / 1.187 GB, free: 0.7891 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004136/0.6535, allocations: 142.2 kB / 1.187 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/0.6642, allocations: 2.243 MB / 1.189 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.333e-05/0.6643, allocations: 11.94 kB / 1.189 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.6643, allocations: 0 / 1.189 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01005/0.6744, allocations: 1.992 MB / 1.191 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/0.6884, allocations: 3.98 MB / 1.195 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/0.6884, allocations: 8 kB / 1.195 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008428/0.6893, allocations: 167.9 kB / 1.195 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001746/0.691, allocations: 0.4887 MB / 1.195 GB, free: 7.547 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.6912, allocations: 23.98 kB / 1.195 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01702/0.7082, allocations: 3.799 MB / 1.199 GB, free: 3.586 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.7082, allocations: 4 kB / 1.199 GB, free: 3.582 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/0.7211, allocations: 3.014 MB / 1.202 GB, free: 500 kB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.7222, allocations: 378.8 kB / 1.202 GB, free: 100 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003973/0.7226, allocations: 16 kB / 1.203 GB, free: 84 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001848/0.7245, allocations: 183.3 kB / 1.203 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.7247, allocations: 80.34 kB / 1.203 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/0.7249, allocations: 35.97 kB / 1.203 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001668/0.7266, allocations: 0.909 MB / 1.204 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7266, allocations: 0 / 1.204 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002889/0.7295, allocations: 0.8539 MB / 1.205 GB, free: 14.03 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.001408/0.7309, allocations: 0.5143 MB / 1.205 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.008597/0.7395, allocations: 2.606 MB / 1.208 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/0.7396, allocations: 0 / 1.208 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.003383/0.7429, allocations: 0.9555 MB / 1.208 GB, free: 9.898 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005521/0.7485, allocations: 0.77 MB / 1.209 GB, free: 9.141 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00761/0.7561, allocations: 3.515 MB / 1.213 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009855/0.7571, allocations: 1.238 MB / 1.214 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005205/0.7577, allocations: 135.4 kB / 1.214 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of SimCode: time 1.423e-06/0.7577, allocations: 0 / 1.214 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of Templates: time 0.05138/0.8091, allocations: 34.11 MB / 1.247 GB, free: 2.211 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (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 & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches