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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006808/0.006808, allocations: 100.9 kB / 15.73 MB, free: 5.574 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.001439/0.001439, allocations: 192.9 kB / 16.67 MB, free: 5.516 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.638/2.638, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.89 kB / 1.054 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9753/0.9767, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06615/1.043, allocations: 60.6 MB / 1.267 GB, free: 0.8125 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02001/1.063, allocations: 13.21 MB / 1.28 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003058/1.066, allocations: 71.56 kB / 1.28 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003163/1.069, allocations: 0.9818 MB / 1.281 GB, free: 2.504 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008479/1.078, allocations: 2.304 MB / 1.283 GB, free: 196 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005607/1.083, allocations: 1.585 MB / 1.285 GB, free: 14.62 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.008171/1.092, allocations: 4.314 MB / 1.289 GB, free: 10.29 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002943/1.095, allocations: 1.349 MB / 1.29 GB, free: 8.906 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004874/1.1, allocations: 1.623 MB / 1.292 GB, free: 7.281 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003273/1.103, allocations: 1.202 MB / 1.293 GB, free: 6.074 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0007534/1.104, allocations: 140 kB / 1.293 GB, free: 5.938 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004947/1.109, allocations: 1.474 MB / 1.295 GB, free: 4.461 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0009723/1.11, allocations: 418.5 kB / 1.295 GB, free: 4.051 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002396/1.112, allocations: 0.9212 MB / 1.296 GB, free: 3.125 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00633/1.118, allocations: 2.775 MB / 1.299 GB, free: 352 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/1.118, allocations: 0 / 1.299 GB, free: 352 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.954e-06/1.118, allocations: 3.938 kB / 1.299 GB, free: 348 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.768e-05/1.118, allocations: 0 / 1.299 GB, free: 348 kB / 1.014 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.005329/1.124, allocations: 2.186 MB / 1.301 GB, free: 14.09 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/1.124, allocations: 8.031 kB / 1.301 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003762/1.128, allocations: 0.5565 MB / 1.301 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002879/1.13, allocations: 1.453 MB / 1.303 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/1.131, allocations: 141.4 kB / 1.303 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/1.131, allocations: 104 kB / 1.303 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003003/1.134, allocations: 1.319 MB / 1.304 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.953e-05/1.134, allocations: 3.938 kB / 1.304 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/1.134, allocations: 44 kB / 1.304 GB, free: 10.36 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.832e-05/1.134, allocations: 31.98 kB / 1.304 GB, free: 10.33 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00373/1.138, allocations: 1.327 MB / 1.306 GB, free: 9.008 MB / 1.029 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.007621/1.145, allocations: 5.45 MB / 1.311 GB, free: 3.199 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005696/1.151, allocations: 1.347 MB / 1.312 GB, free: 1.828 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/1.153, allocations: 0.6003 MB / 1.313 GB, free: 1.227 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009635/1.154, allocations: 1.24 MB / 1.314 GB, free: 15.71 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001871/1.156, allocations: 0.6549 MB / 1.315 GB, free: 15.04 MB / 1.045 GB Notification: Performance of pre-optimization done (n=70): time 2.845e-06/1.156, allocations: 0 / 1.315 GB, free: 15.04 MB / 1.045 GB Notification: Performance of matching and sorting (n=70): time 0.005438/1.161, allocations: 1.695 MB / 1.316 GB, free: 13.34 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/1.161, allocations: 63.97 kB / 1.316 GB, free: 13.27 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00181/1.163, allocations: 1.287 MB / 1.318 GB, free: 11.97 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 9.989e-05/1.163, allocations: 41.7 kB / 1.318 GB, free: 11.92 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005826/1.164, allocations: 0.6464 MB / 1.318 GB, free: 11.27 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/1.164, allocations: 240.5 kB / 1.318 GB, free: 11.03 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003113/1.164, allocations: 186.4 kB / 1.319 GB, free: 10.84 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001266/1.164, allocations: 333.9 kB / 1.319 GB, free: 10.51 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/1.166, allocations: 0.5278 MB / 1.319 GB, free: 9.977 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/1.168, allocations: 0.7558 MB / 1.32 GB, free: 9.137 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003262/1.171, allocations: 1.148 MB / 1.321 GB, free: 7.941 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/1.171, allocations: 0 / 1.321 GB, free: 7.941 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004114/1.175, allocations: 1.411 MB / 1.323 GB, free: 6.512 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.986e-05/1.175, allocations: 31.58 kB / 1.323 GB, free: 6.477 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/1.175, allocations: 4 kB / 1.323 GB, free: 6.473 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/1.175, allocations: 11.94 kB / 1.323 GB, free: 6.461 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/1.177, allocations: 251.8 kB / 1.323 GB, free: 6.215 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.134e-05/1.177, allocations: 7.938 kB / 1.323 GB, free: 6.207 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/1.178, allocations: 195 kB / 1.323 GB, free: 6.016 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/1.179, allocations: 39.97 kB / 1.323 GB, free: 5.977 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002218/1.181, allocations: 0.7868 MB / 1.324 GB, free: 5.188 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001777/1.183, allocations: 0.7399 MB / 1.325 GB, free: 4.367 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003187/1.186, allocations: 1.14 MB / 1.326 GB, free: 3.18 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.908e-06/1.186, allocations: 3.938 kB / 1.326 GB, free: 3.176 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004048/1.19, allocations: 1.391 MB / 1.327 GB, free: 1.77 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/1.19, allocations: 41.64 kB / 1.327 GB, free: 1.723 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/1.19, allocations: 4 kB / 1.327 GB, free: 1.719 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/1.19, allocations: 8 kB / 1.327 GB, free: 1.711 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/1.191, allocations: 251.9 kB / 1.327 GB, free: 1.465 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/1.191, allocations: 15.92 kB / 1.328 GB, free: 1.449 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/1.193, allocations: 175.2 kB / 1.328 GB, free: 1.277 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.259e-05/1.193, allocations: 43.98 kB / 1.328 GB, free: 1.234 MB / 1.045 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.0003627/1.193, allocations: 232.1 kB / 1.328 GB, free: 1 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003266/1.194, allocations: 146.2 kB / 1.328 GB, free: 0.8555 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004106/1.198, allocations: 1.462 MB / 1.33 GB, free: 15.37 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/1.198, allocations: 15.92 kB / 1.33 GB, free: 15.36 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/1.198, allocations: 0 / 1.33 GB, free: 15.36 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003245/1.201, allocations: 1.218 MB / 1.331 GB, free: 14.11 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006707/1.208, allocations: 3.191 MB / 1.334 GB, free: 10.75 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/1.208, allocations: 4 kB / 1.334 GB, free: 10.75 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/1.209, allocations: 228.2 kB / 1.334 GB, free: 10.53 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/1.209, allocations: 8 kB / 1.334 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-05/1.209, allocations: 31.91 kB / 1.334 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.767e-06/1.209, allocations: 8 kB / 1.334 GB, free: 10.48 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/1.209, allocations: 7.938 kB / 1.334 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005426/1.215, allocations: 2.22 MB / 1.336 GB, free: 8.176 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006194/1.215, allocations: 347 kB / 1.337 GB, free: 7.816 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/1.215, allocations: 23.92 kB / 1.337 GB, free: 7.793 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/1.217, allocations: 127.8 kB / 1.337 GB, free: 7.668 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/1.217, allocations: 76.34 kB / 1.337 GB, free: 7.594 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.13e-05/1.217, allocations: 39.97 kB / 1.337 GB, free: 7.555 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001186/1.218, allocations: 0.9207 MB / 1.338 GB, free: 6.637 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.41e-07/1.218, allocations: 7.938 kB / 1.338 GB, free: 6.629 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001884/1.22, allocations: 0.7915 MB / 1.339 GB, free: 5.836 MB / 1.061 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.0009633/1.221, allocations: 0.5212 MB / 1.339 GB, free: 5.32 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.00533/1.226, allocations: 2.007 MB / 1.341 GB, free: 3.297 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/1.226, allocations: 0 / 1.341 GB, free: 3.297 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001904/1.228, allocations: 0.6835 MB / 1.342 GB, free: 2.609 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003424/1.232, allocations: 0.7532 MB / 1.342 GB, free: 1.867 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005829/1.238, allocations: 2.856 MB / 1.345 GB, free: 14.93 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007535/1.238, allocations: 1.23 MB / 1.346 GB, free: 13.66 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001402/1.24, allocations: 371.6 kB / 1.347 GB, free: 13.3 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003751/1.24, allocations: 127.3 kB / 1.347 GB, free: 13.18 MB / 1.076 GB Notification: Performance of SimCode: time 5.91e-07/1.24, allocations: 0 / 1.347 GB, free: 13.18 MB / 1.076 GB Notification: Performance of Templates: time 0.05643/1.297, allocations: 32.4 MB / 1.379 GB, free: 13.17 MB / 1.107 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