aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 177 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7544
number of fields = 31
RA_SUN column already exists. File will not be modified.Done.


Performing analysis on: 4FGL_J0540.0-7552_daily_bin1689
RA = 85.0064, Dec = -75.8782
tmin = 677116801, tmax = 677376001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='975679', job_status='RUN', time_executed='2022-06-20 00:14:37.017928', time_epoch_executed='1655709277.02' WHERE source_name='4FGL J0540.0-7552' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/975679

Creating custom pfile directory:
/scratch/kocevski/975679/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=677116801.0 && nMetStart<677376001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=677116801.0 && nMetStart<677376001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/975679/ft1_4FGL_J0540.0-7552_daily_bin1689.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=677116801.0 && nMetStart<677376001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/975679/ft1_4FGL_J0540.0-7552_daily_bin1689.fits outfile=/scratch/kocevski/975679/ft1_filteredMKT_4FGL_J0540.0-7552_daily_bin1689.fits ra=85.0064 dec=-75.8782 rad=12.0 tmin=677116801.0 tmax=677376001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.84
user 2.58
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/975679/ft1_filteredMKT_4FGL_J0540.0-7552_daily_bin1689.fits evtable="EVENTS" outfile="/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 1386

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/975679/ltcube_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits
.....................!
real 15.90
user 15.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/975679/ltcube_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits outfile=/scratch/kocevski/975679/expmap_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/975679/ltcube_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits
.....................!
real 192.18
user 186.63
sys 5.04

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 171 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0540.0-7552 @ 85.0064 -75.8782

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits scfile=/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits outfile=/scratch/kocevski/975679/cmap_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=85.0064 yref=-75.8782 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits scfile=/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits outfile=/scratch/kocevski/975679/cmap_HighResolution_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=85.0064 yref=-75.8782 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/975679/Model_4FGL_J0540.0-7552_daily_bin1689.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits.....................!
real 12194.24
user 12168.70
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits', '/scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits', expMap='/scratch/kocevski/975679/expmap_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits', expCube='/scratch/kocevski/975679/ltcube_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/975679/Model_4FGL_J0540.0-7552_daily_bin1689.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0540.0-7552'

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  8.467e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
275        alpha:  2.167e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  2.198e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  9.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/975679/ft1_filtered_4FGL_J0540.0-7552_daily_bin1689.fits
Spacecraft file(s): /scratch/kocevski/975679/ft2_4FGL_J0540.0-7552_daily_bin1689.fits
Exposure map: /scratch/kocevski/975679/expmap_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits
Exposure cube: /scratch/kocevski/975679/ltcube_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/975679/Model_4FGL_J0540.0-7552_daily_bin1689.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 14450.2703872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 14449.6993454

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.934       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8752       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .85987       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    25.951       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2816       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4971       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6844       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2003       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14449.70     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2271 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3584        .22872E-06** at limit **
   2  Prefactor     .10000E-03    10.966       -.86585E-06** at limit **
   3  Prefactor     12.944        18.492       -.14853E-04   -.20533E-04
   4  Prefactor     54.019        24.597       -.52311E-06    .68549E-04
   5  Prefactor     8.8908        10.545        .22586E-05    .92084E-04
   6  Prefactor     .10000E-03    6.2810        .95052E-07** at limit **
   7  Prefactor     .70491        19.601       -.47136E-05    .20495E-03
   8  Prefactor     3.0102        3.6575        .44623E-06   -.20858E-03
   9  Prefactor     14.567        20.752        .59173E-06   -.36308E-04
  10  Prefactor     .10000E-03    13.142        .41716E-05** at limit **
  11  norm          25.957        39.589        .37907E-05    .93173E-06
  12  Prefactor     14.552        6.5836        .31806E-06   -.61494E-04
  13  norm          .10000E-03    2.3175        .92828E-07** at limit **
  14  Prefactor     7.2832        6.1902        .89755E-06   -.68235E-04
  15  norm          1.4969        1.9673       -.19400E-06   -.84106E-03
  16  norm          1.6849        2.6088       -.80310E-06   -.16136E-02
  17  norm          1.4784        2.6674       -.91441E-06   -.18161E-02
  18  Prefactor     .10000E-03    13.265       -.28563E-05** at limit **
  19  norm          .10000E-03    2.2393        .96878E-07** at limit **
  20  Normalizat    1.2004        .17434        .15662E-05    .16176E-03
  21  Prefactor     .91074        .68925E-01   -.23091E-07    .44369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9439
  Prefactor  = 54.0192
  Prefactor  = 8.89083
  Prefactor  = 0.0001
  Prefactor  = 0.704913
  Prefactor  = 3.01017
  Prefactor  = 14.567
  Prefactor  = 0.0001
  norm       = 25.9568
  Prefactor  = 14.5523
  norm       = 0.0001
  Prefactor  = 7.28316
  norm       = 1.4969
  norm       = 1.68495
  norm       = 1.47837
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20044
  Prefactor  = 0.910743
 **********
 **   18 **HESSE 
 **********

 FCN=   14449.70     FROM HESSE     STATUS=OK           327 CALLS     2598 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3870        .18027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.944        18.333        .11138E-03   -1.4988    
   4  Prefactor     54.019        24.720        .54571E-04   -1.4237    
   5  Prefactor     8.8908        10.540        .13454E-03   -1.5112    
   6  Prefactor     .10000E-03    6.2815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .70491        21.324        .16250       -1.5540    
   8  Prefactor     3.0102        3.6472        .23392E-03   -1.5361    
   9  Prefactor     14.567        20.755        .10491E-03   -1.4944    
  10  Prefactor     .10000E-03    13.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.957        39.526        .78637E-04   -1.4689    
  12  Prefactor     14.552        6.5713        .10500E-03   -1.4945    
  13  norm          .10000E-03    2.3492        .17868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2832        6.1804        .14864E-03   -1.5168    
  15  norm          1.4969        1.9428        .18566E-03   -1.5463    
  16  norm          1.6849        2.6191        .23564E-03   -1.5448    
  17  norm          1.4784        2.7063        .25902E-03   -1.5465    
  18  Prefactor     .10000E-03    13.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2410        .17567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2004        .20134        .36911E-03   -.86589    
  21  Prefactor     .91074        .79882E-01    .17091E-03   -.95767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89515e-09
Minuit parameter uncertainties:
  1  2.6368e-05
  2  3.10213e-07
  3  18.3412
  4  24.7243
  5  10.5426
  6  1.11062e-06
  7  7.75655
  8  3.64744
  9  20.7656
  10  1.06778e-05
  11  39.566
  12  6.5716
  13  5.11182e-06
  14  6.18091
  15  1.94292
  16  2.61925
  17  2.70655
  18  1.44682e-07
  19  1.81959e-07
  20  0.201475
  21  0.0798925
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 14449.6993296

Extracting fit parameters...

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  2.596e+01  3.957e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        alpha:  2.167e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  2.198e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  9.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.107e-01  7.989e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.200e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 85.006 -75.878
Photon Flux Upper Limit: 6.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/975679/likelihoodResults_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14449.5808954
delta logL = 0.118434214621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14449.5435687
delta logL = 0.155760868922

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.202       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0830       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14449.54     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      229 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.137        20.220        .26571E-02    .90839E-03
   2  alpha         1.0806        .80510        .50000       -.11637E-03
   3  Normalizat    1.2071        .16480        .83187E-01    .18166E-03
   4  Prefactor     .91106        .67881E-01    .45145E-01   -.23665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1371
  alpha      = 1.08062
  Normalizat = 1.20709
  Prefactor  = 0.911059
 **********
 **   18 **HESSE 
 **********

 FCN=   14449.54     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.137        29.056        .10628E-03   -1.4956    
   2  alpha         1.0806        1.1559        .46593E-01   -.60377    
   3  Normalizat    1.2071        .18926        .36830E-03   -.86384    
   4  Prefactor     .91106        .78153E-01    .17091E-03   -.95756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66535e-08
Minuit parameter uncertainties:
  1  29.085
  2  1.22735
  3  0.189367
  4  0.0781628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/975679': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14449.5435662
delta logL = 0.155763341167

Extracting fit parameters...

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  1.414e+01  2.909e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        alpha:  1.081e+00  1.227e+00  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  2.198e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  9.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.111e-01  7.816e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.207e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
Ra Dec: 85.006 -75.878

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/975679/cmap_HighResolution_677116801_677376001_4FGL_J0540.0-7552_daily_bin1689.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/975679

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-05', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2022-06-20 03:54:41.132555', job_id='975679', GAL2='0.91', fit_tolerance='1e-08', EG2='1.21', EG='1.20', time_epoch_completed='1655722481.13', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.56e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1689' AND source_name='4FGL J0540.0-7552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 03:54:41 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 975673: <4FGL_J0540.0-7552_daily_bin1689> in cluster <slac> Done

Job <4FGL_J0540.0-7552_daily_bin1689> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Jun 20 00:05:21 2022
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 00:13:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 00:13:43 2022
Terminated at Mon Jun 20 03:54:19 2022
Results reported at Mon Jun 20 03:54:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.0-7552_daily_bin1689 85.0064 -75.8782 677116801 677376001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0540.0-7552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13024.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             596.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13235 sec.
    Turnaround time :                            13738 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 975679: <4FGL_J0540.0-7552_daily_bin1689> in cluster <slac> Done

Job <4FGL_J0540.0-7552_daily_bin1689> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Jun 20 00:05:21 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 00:13:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 00:13:47 2022
Terminated at Mon Jun 20 03:54:42 2022
Results reported at Mon Jun 20 03:54:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.0-7552_daily_bin1689 85.0064 -75.8782 677116801 677376001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0540.0-7552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13188.00 sec.
    Max Memory :                                 771 MB
    Average Memory :                             601.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13254 sec.
    Turnaround time :                            13761 sec.

The output (if any) is above this job summary.

