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.001428/0.001428, allocations: 108 kB / 15.61 MB, free: 152 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.00182/0.00182, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.031/3.031, allocations: 472.6 MB / 0.7451 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 66.42 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3768, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06328/0.4401, allocations: 60.61 MB / 1.127 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02163/0.4618, allocations: 13.22 MB / 1.14 GB, free: 408 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002873/0.4647, allocations: 71.56 kB / 1.14 GB, free: 336 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003205/0.4679, allocations: 0.9589 MB / 1.141 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008207/0.4762, allocations: 2.316 MB / 1.144 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005174/0.4814, allocations: 1.566 MB / 1.145 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.006963/0.4884, allocations: 4.317 MB / 1.149 GB, free: 7.156 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002737/0.4912, allocations: 1.346 MB / 1.151 GB, free: 5.781 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005351/0.4965, allocations: 1.56 MB / 1.152 GB, free: 4.223 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003/0.4995, allocations: 1.206 MB / 1.153 GB, free: 3.012 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0006397/0.5002, allocations: 147.9 kB / 1.153 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004986/0.5052, allocations: 1.478 MB / 1.155 GB, free: 1.387 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0008005/0.506, allocations: 410.5 kB / 1.155 GB, free: 0.9844 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001975/0.508, allocations: 0.9134 MB / 1.156 GB, free: 68 kB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.005483/0.5135, allocations: 2.75 MB / 1.159 GB, free: 13.31 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.5135, allocations: 4 kB / 1.159 GB, free: 13.3 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.412e-06/0.5135, allocations: 0 / 1.159 GB, free: 13.3 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.383e-05/0.5136, allocations: 0 / 1.159 GB, free: 13.3 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.005158/0.5188, allocations: 2.182 MB / 1.161 GB, free: 11.06 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.5188, allocations: 12.03 kB / 1.161 GB, free: 11.05 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003762/0.5226, allocations: 0.5604 MB / 1.162 GB, free: 10.48 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002441/0.525, allocations: 1.371 MB / 1.163 GB, free: 9.059 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.5252, allocations: 141.4 kB / 1.163 GB, free: 8.91 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.5254, allocations: 103.9 kB / 1.163 GB, free: 8.809 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002939/0.5283, allocations: 1.326 MB / 1.164 GB, free: 7.445 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.5284, allocations: 7.938 kB / 1.164 GB, free: 7.438 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.5285, allocations: 36 kB / 1.164 GB, free: 7.402 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/0.5285, allocations: 28 kB / 1.164 GB, free: 7.375 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003611/0.5321, allocations: 1.335 MB / 1.166 GB, free: 6.043 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.007492/0.5397, allocations: 5.477 MB / 1.171 GB, free: 212 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005362/0.545, allocations: 1.344 MB / 1.172 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.5466, allocations: 0.6075 MB / 1.173 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000976/0.5476, allocations: 1.232 MB / 1.174 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001775/0.5494, allocations: 0.6588 MB / 1.175 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 4.178e-06/0.5494, allocations: 0 / 1.175 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005293/0.5547, allocations: 1.691 MB / 1.177 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.5548, allocations: 59.97 kB / 1.177 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/0.5565, allocations: 1.291 MB / 1.178 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.816e-05/0.5566, allocations: 45.7 kB / 1.178 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006161/0.5572, allocations: 0.6548 MB / 1.179 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.5575, allocations: 244.6 kB / 1.179 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000318/0.5578, allocations: 178.4 kB / 1.179 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.558, allocations: 334 kB / 1.179 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001571/0.5596, allocations: 0.5356 MB / 1.18 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.5614, allocations: 0.7483 MB / 1.181 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003153/0.5645, allocations: 1.144 MB / 1.182 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.5645, allocations: 4 kB / 1.182 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003912/0.5685, allocations: 1.403 MB / 1.183 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.863e-05/0.5685, allocations: 41.69 kB / 1.183 GB, free: 3.477 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.5686, allocations: 4 kB / 1.183 GB, free: 3.473 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.324e-05/0.5686, allocations: 7.938 kB / 1.183 GB, free: 3.465 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.5699, allocations: 255.9 kB / 1.183 GB, free: 3.215 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.479e-05/0.5699, allocations: 11.98 kB / 1.183 GB, free: 3.203 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.5715, allocations: 187 kB / 1.183 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.5716, allocations: 43.97 kB / 1.184 GB, free: 2.977 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002036/0.5736, allocations: 0.7829 MB / 1.184 GB, free: 2.191 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001755/0.5754, allocations: 0.745 MB / 1.185 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003132/0.5785, allocations: 1.132 MB / 1.186 GB, free: 188 kB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.288e-06/0.5786, allocations: 0 / 1.186 GB, free: 188 kB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003968/0.5825, allocations: 1.399 MB / 1.187 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.038e-05/0.5826, allocations: 33.7 kB / 1.188 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.5826, allocations: 4 kB / 1.188 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.5826, allocations: 8 kB / 1.188 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.5838, allocations: 256 kB / 1.188 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.05e-05/0.5839, allocations: 11.88 kB / 1.188 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.5855, allocations: 179.3 kB / 1.188 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.547e-05/0.5856, allocations: 43.91 kB / 1.188 GB, free: 14.24 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.0003142/0.5859, allocations: 228.1 kB / 1.188 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004237/0.5864, allocations: 146.2 kB / 1.188 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004139/0.5905, allocations: 1.462 MB / 1.19 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.5905, allocations: 15.94 kB / 1.19 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5906, allocations: 0 / 1.19 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003246/0.5938, allocations: 1.226 MB / 1.191 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007716/0.6015, allocations: 3.191 MB / 1.194 GB, free: 7.762 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.6016, allocations: 4 kB / 1.194 GB, free: 7.758 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.6028, allocations: 219.9 kB / 1.194 GB, free: 7.543 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.97e-05/0.6028, allocations: 8 kB / 1.194 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.37e-05/0.6029, allocations: 27.92 kB / 1.194 GB, free: 7.508 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.6029, allocations: 15.94 kB / 1.194 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.323e-06/0.6029, allocations: 8 kB / 1.194 GB, free: 7.484 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005874/0.6088, allocations: 2.22 MB / 1.197 GB, free: 5.188 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008707/0.6097, allocations: 350.9 kB / 1.197 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004311/0.6101, allocations: 19.94 kB / 1.197 GB, free: 4.805 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/0.6118, allocations: 131.9 kB / 1.197 GB, free: 4.676 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.6119, allocations: 68.36 kB / 1.197 GB, free: 4.609 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.6121, allocations: 43.97 kB / 1.197 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001674/0.6137, allocations: 0.9207 MB / 1.198 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.01e-07/0.6138, allocations: 4 kB / 1.198 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002782/0.6165, allocations: 0.7993 MB / 1.199 GB, free: 2.844 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.001273/0.6178, allocations: 0.5128 MB / 1.199 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005922/0.6238, allocations: 2.058 MB / 1.201 GB, free: 260 kB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.423e-06/0.6238, allocations: 0 / 1.201 GB, free: 260 kB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002007/0.6258, allocations: 0.6835 MB / 1.202 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004079/0.6299, allocations: 0.7624 MB / 1.203 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006715/0.6366, allocations: 2.88 MB / 1.206 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.6377, allocations: 1.245 MB / 1.207 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001916/0.6396, allocations: 371.5 kB / 1.207 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004717/0.6401, allocations: 119.4 kB / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of SimCode: time 9.72e-07/0.6401, allocations: 0 / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of Templates: time 0.05745/0.6976, allocations: 31.64 MB / 1.238 GB, free: 10.84 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