Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001477, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00178/0.00178, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.436/1.436, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 472.6 MB / 0.7447 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 61.75 kB / 0.9114 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3858, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06333/0.4492, allocations: 60.22 MB / 1.126 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02507/0.4743, allocations: 13.27 MB / 1.139 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004766/0.4792, allocations: 67.56 kB / 1.139 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.004319/0.4835, allocations: 0.8121 MB / 1.14 GB, free: 292 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01271/0.4963, allocations: 2.146 MB / 1.142 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.007983/0.5044, allocations: 1.428 MB / 1.144 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01132/0.5157, allocations: 5.558 MB / 1.149 GB, free: 7.145 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003357/0.5191, allocations: 1.138 MB / 1.15 GB, free: 5.977 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005587/0.5247, allocations: 1.357 MB / 1.152 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004252/0.529, allocations: 1.205 MB / 1.153 GB, free: 3.402 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0007427/0.5298, allocations: 76 kB / 1.153 GB, free: 3.328 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007813/0.5376, allocations: 1.38 MB / 1.154 GB, free: 1.945 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.5388, allocations: 362.4 kB / 1.154 GB, free: 1.59 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.003057/0.5419, allocations: 0.8392 MB / 1.155 GB, free: 0.7461 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.006565/0.5485, allocations: 2.715 MB / 1.158 GB, free: 14.02 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.5486, allocations: 0 / 1.158 GB, free: 14.02 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.72e-07/0.5486, allocations: 0 / 1.158 GB, free: 14.02 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.179e-05/0.5487, allocations: 0 / 1.158 GB, free: 14.02 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.006115/0.5548, allocations: 2.185 MB / 1.16 GB, free: 11.77 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.5549, allocations: 8.031 kB / 1.16 GB, free: 11.76 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004253/0.5591, allocations: 0.5604 MB / 1.161 GB, free: 11.2 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003661/0.5628, allocations: 1.398 MB / 1.162 GB, free: 9.75 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.5631, allocations: 141.4 kB / 1.162 GB, free: 9.598 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004157/0.5635, allocations: 104 kB / 1.162 GB, free: 9.496 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003804/0.5673, allocations: 1.326 MB / 1.164 GB, free: 8.137 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.893e-05/0.5674, allocations: 4 kB / 1.164 GB, free: 8.133 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002115/0.5676, allocations: 36 kB / 1.164 GB, free: 8.098 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-05/0.5677, allocations: 35.98 kB / 1.164 GB, free: 8.062 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004038/0.5718, allocations: 1.327 MB / 1.165 GB, free: 6.73 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.009555/0.5813, allocations: 5.446 MB / 1.17 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005685/0.5871, allocations: 1.351 MB / 1.172 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/0.589, allocations: 0.6041 MB / 1.172 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001097/0.5901, allocations: 1.236 MB / 1.173 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00197/0.5921, allocations: 0.6588 MB / 1.174 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 3.407e-06/0.5921, allocations: 7.938 kB / 1.174 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005359/0.5975, allocations: 1.684 MB / 1.176 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.5975, allocations: 63.91 kB / 1.176 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/0.5998, allocations: 1.275 MB / 1.177 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.00015/0.6, allocations: 45.7 kB / 1.177 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006881/0.6007, allocations: 0.658 MB / 1.178 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.000309/0.601, allocations: 240.6 kB / 1.178 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003759/0.6014, allocations: 178.4 kB / 1.178 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.6015, allocations: 337.9 kB / 1.178 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.6031, allocations: 0.5239 MB / 1.179 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.6049, allocations: 0.7599 MB / 1.18 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003112/0.6081, allocations: 1.14 MB / 1.181 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.6081, allocations: 4 kB / 1.181 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004184/0.6123, allocations: 1.403 MB / 1.182 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.482e-05/0.6124, allocations: 33.7 kB / 1.182 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.6124, allocations: 4 kB / 1.182 GB, free: 4.207 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.82e-05/0.6124, allocations: 7.938 kB / 1.182 GB, free: 4.199 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.6137, allocations: 263.9 kB / 1.182 GB, free: 3.941 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.737e-05/0.6137, allocations: 8 kB / 1.182 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002046/0.6158, allocations: 223 kB / 1.183 GB, free: 3.715 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.6159, allocations: 39.98 kB / 1.183 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00233/0.6183, allocations: 0.7829 MB / 1.183 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001822/0.6201, allocations: 0.7517 MB / 1.184 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003094/0.6232, allocations: 1.128 MB / 1.185 GB, free: 0.8789 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.51e-06/0.6233, allocations: 0 / 1.185 GB, free: 0.8789 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004212/0.6275, allocations: 1.399 MB / 1.187 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.472e-05/0.6275, allocations: 29.7 kB / 1.187 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.6276, allocations: 12.3 kB / 1.187 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.6276, allocations: 8 kB / 1.187 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.6289, allocations: 255.6 kB / 1.187 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.6289, allocations: 7.938 kB / 1.187 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.6309, allocations: 219.2 kB / 1.187 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.631, allocations: 35.97 kB / 1.187 GB, free: 14.9 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 (chi.tru.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 (97): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004844/0.6315, allocations: 236 kB / 1.187 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007274/0.6322, allocations: 150.2 kB / 1.188 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004343/0.6366, allocations: 1.458 MB / 1.189 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.6366, allocations: 15.88 kB / 1.189 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.6366, allocations: 4 kB / 1.189 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003146/0.6398, allocations: 1.226 MB / 1.19 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007589/0.6474, allocations: 3.19 MB / 1.193 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.6475, allocations: 4 kB / 1.193 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.6487, allocations: 220.2 kB / 1.193 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.99e-05/0.6487, allocations: 8 kB / 1.193 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.894e-05/0.6488, allocations: 35.91 kB / 1.194 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.6488, allocations: 8 kB / 1.194 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.6488, allocations: 7.938 kB / 1.194 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006072/0.6549, allocations: 2.216 MB / 1.196 GB, free: 5.848 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009346/0.6559, allocations: 350.8 kB / 1.196 GB, free: 5.484 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004489/0.6563, allocations: 19.94 kB / 1.196 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001885/0.6582, allocations: 163.8 kB / 1.196 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.6584, allocations: 68.36 kB / 1.196 GB, free: 5.238 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.6586, allocations: 43.97 kB / 1.196 GB, free: 5.195 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001839/0.6604, allocations: 0.909 MB / 1.197 GB, free: 4.289 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.41e-07/0.6604, allocations: 0 / 1.197 GB, free: 4.289 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003664/0.6641, allocations: 0.7915 MB / 1.198 GB, free: 3.496 MB / 0.9512 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001656/0.6658, allocations: 0.5213 MB / 1.198 GB, free: 2.98 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005916/0.6717, allocations: 1.999 MB / 1.2 GB, free: 0.957 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.6718, allocations: 0 / 1.2 GB, free: 0.957 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.6738, allocations: 0.6796 MB / 1.201 GB, free: 284 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004742/0.6785, allocations: 0.7373 MB / 1.202 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007618/0.6862, allocations: 3.393 MB / 1.205 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.6872, allocations: 1.234 MB / 1.206 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.00219/0.6894, allocations: 367.5 kB / 1.207 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005105/0.6899, allocations: 127.4 kB / 1.207 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of SimCode: time 1.463e-06/0.69, allocations: 0 / 1.207 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of Templates: time 0.06177/0.7517, allocations: 30.11 MB / 1.236 GB, free: 12.55 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches