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 174 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 = 7542
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0540.0-7552_daily_bin1703
RA = 85.0064, Dec = -75.8782
tmin = 680745601, tmax = 681004801
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='303126', job_status='RUN', time_executed='2022-08-01 00:23:34.340763', time_epoch_executed='1659338614.34' WHERE source_name='4FGL J0540.0-7552' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303126/ft1_4FGL_J0540.0-7552_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303126/ft1_4FGL_J0540.0-7552_daily_bin1703.fits outfile=/scratch/kocevski/303126/ft1_filteredMKT_4FGL_J0540.0-7552_daily_bin1703.fits ra=85.0064 dec=-75.8782 rad=12.0 tmin=680745601.0 tmax=681004801.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 3.02
user 2.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.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/303126/ft1_filteredMKT_4FGL_J0540.0-7552_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.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.53
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 1453

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/303126/ltcube_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.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/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits
.....................!
real 15.70
user 15.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/303126/ltcube_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.fits outfile=/scratch/kocevski/303126/expmap_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.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/303126/ltcube_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.fits
.....................!
real 194.76
user 189.07
sys 4.67

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/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits scfile=/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits outfile=/scratch/kocevski/303126/cmap_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits scfile=/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits outfile=/scratch/kocevski/303126/cmap_HighResolution_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/303126/Model_4FGL_J0540.0-7552_daily_bin1703.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/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits.....................!
real 12865.29
user 12803.76
sys 4.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits', '/scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits', expMap='/scratch/kocevski/303126/expmap_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.fits', expCube='/scratch/kocevski/303126/ltcube_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/303126/Model_4FGL_J0540.0-7552_daily_bin1703.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/303126/ft1_filtered_4FGL_J0540.0-7552_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/303126/ft2_4FGL_J0540.0-7552_daily_bin1703.fits
Exposure map: /scratch/kocevski/303126/expmap_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.fits
Exposure cube: /scratch/kocevski/303126/ltcube_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/303126/Model_4FGL_J0540.0-7552_daily_bin1703.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.471       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8170       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1254       1.0000         .10000E-03   10000.    
    11 'norm      '    .12073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14107       1.0000         .10000E-03   10000.    
    13 'norm      '    11.391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8389       1.0000         .10000E-03   10000.    
    15 'norm      '    .91301       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8479       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.317       1.0000         .10000E-03   10000.    
    19 'norm      '    7.7722       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0719       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0714       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15163.62     FROM MIGRAD    STATUS=FAILED       790 CALLS     2571 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5463        .18142E-02** at limit **
   2  Prefactor     1.0369        19.100        .15753        .36418E-03
   3  Prefactor     .10000E-03    6.6685        .18142E-02** at limit **
   4  Prefactor     .10000E-03    13.728        .18142E-02** at limit **
   5  Prefactor     .10000E-03    4.2754        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.7161        .18142E-02** at limit **
   7  Prefactor     70.469        40.165        .47819E-04    .12401E-03
   8  Prefactor     1.8164        5.2980        .30984E-03   -.10178E-03
   9  Prefactor     .10000E-03    3.7650        .18142E-02** at limit **
  10  Prefactor     8.1270        24.354        .14065E-03    .29745E-04
  11  norm          .10002E-03    110.65        .18142E-02** at limit **
  12  Prefactor     .14060        13.120        .32641E-02    .47523E-02
  13  norm          11.390        6.3339        .11870E-03    .63021E-04
  14  Prefactor     4.8374        7.5685        .18287E-03   -.20888E-04
  15  norm          .91409        1.2754        .21627E-02    .45382E-03
  16  norm          2.8478        2.4476        .17356E-03   -.31835E-04
  17  norm          3.7656        3.4925        .20806E-03   -.26556E-04
  18  Prefactor     44.320        45.977        .60224E-04   -.16386E-04
  19  norm          7.7724        11.115        .14383E-03    .38097E-04
  20  Normalizat    1.0721        .20015        .39988E-03    .58510E-04
  21  Prefactor     1.0714        .84173E-01    .16929E-03    .45262E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15163.62     FROM SIMPLEX   STATUS=UNCHANGED   1117 CALLS     3688 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5463        .20771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0369        19.100        .61923E-06   -1.5504    
   3  Prefactor     .10000E-03    6.6685        .25677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.728        .52282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2754        .19556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7161        .40668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.469        40.165        .55154E-06   -1.4027    
   8  Prefactor     1.8164        5.2980        .60378E-06   -1.5438    
   9  Prefactor     .10000E-03    3.7650        .21533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1270        24.354        .59180E-06   -1.5138    
  11  norm          .10002E-03    110.65        .13673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .14060        13.120        .71442E-06   -1.5633    
  13  norm          11.390        6.3339        .59179E-06   -1.5033    
  14  Prefactor     4.8374        7.5685        .61174E-06   -1.5268    
  15  norm          .91409        1.2754        .61075E-06   -1.5517    
  16  norm          2.8478        2.4476        .60589E-06   -1.5370    
  17  norm          3.7656        3.4925        .59874E-06   -1.5320    
  18  Prefactor     44.320        45.977        .56010E-06   -1.4376    
  19  norm          7.7724        11.115        .59991E-06   -1.5150    
  20  Normalizat    1.0721        .20015        .35895E-06   -.90654    
  21  Prefactor     1.0714        .84173E-01    .35414E-06   -.90387    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15163.62     FROM MIGRAD    STATUS=CONVERGED    312 CALLS     4000 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5490        .36285E-03** at limit **
   2  Prefactor     1.0369        19.001        .15815        .35843E-03
   3  Prefactor     .10000E-03    6.6691        .36285E-03** at limit **
   4  Prefactor     .10000E-03    13.731        .36285E-03** at limit **
   5  Prefactor     .10000E-03    4.2758        .36285E-03** at limit **
   6  Prefactor     .10000E-03    7.7162        .36285E-03** at limit **
   7  Prefactor     70.469        40.165        .95638E-05   -.47549E-06
   8  Prefactor     1.8164        5.2962        .12394E-04   -.77054E-05
   9  Prefactor     .10000E-03    3.7651        .36285E-03** at limit **
  10  Prefactor     8.1269        24.351        .56260E-05     .0000    
  11  norm          .10000E-03    110.70        .36285E-03** at limit **
  12  Prefactor     .14067        13.444        .65283E-03    .19242E-03
  13  norm          11.390        6.3336        .47480E-05   -.86199E-05
  14  Prefactor     4.8374        7.5607        .73149E-05   -.16785E-04
  15  norm          .91408        1.2738        .86507E-04   -.52567E-06
  16  norm          2.8478        2.4472        .69423E-05    .65504E-06
  17  norm          3.7656        3.4921        .83223E-05   -.27321E-05
  18  Prefactor     44.320        45.973        .12045E-04   -.37755E-06
  19  norm          7.7723        11.114        .57534E-05   -.79040E-06
  20  Normalizat    1.0721        .20026        .15995E-04   -.12225E-04
  21  Prefactor     1.0714        .84198E-01    .67716E-05   -.38950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.03693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.4688
  Prefactor  = 1.8164
  Prefactor  = 0.0001
  Prefactor  = 8.12694
  norm       = 0.0001
  Prefactor  = 0.140671
  norm       = 11.3904
  Prefactor  = 4.8374
  norm       = 0.914082
  norm       = 2.84777
  norm       = 3.76558
  Prefactor  = 44.3196
  norm       = 7.77234
  Normalizat = 1.07207
  Prefactor  = 1.07136
 **********
 **   18 **HESSE 
 **********

 FCN=   15163.62     FROM HESSE     STATUS=OK           307 CALLS     4307 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5491        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0369        19.023        .15802       -1.5504    
   3  Prefactor     .10000E-03    6.6691        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.731        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2758        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7162        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.469        40.199        .19128E-05   -1.4027    
   8  Prefactor     1.8164        5.2972        .24787E-05   -1.5438    
   9  Prefactor     .10000E-03    3.7651        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1269        24.350        .56260E-05   -1.5138    
  11  norm          .10000E-03    110.71        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .14067        13.443        .13057E-03   -1.5633    
  13  norm          11.390        6.3345        .94960E-06   -1.5033    
  14  Prefactor     4.8374        7.5629        .14630E-05   -1.5268    
  15  norm          .91408        1.2738        .34603E-05   -1.5517    
  16  norm          2.8478        2.4469        .13885E-05   -1.5370    
  17  norm          3.7656        3.4905        .16645E-05   -1.5320    
  18  Prefactor     44.320        45.889        .24090E-05   -1.4376    
  19  norm          7.7723        11.096        .11507E-05   -1.5150    
  20  Normalizat    1.0721        .20035        .31990E-05   -.90654    
  21  Prefactor     1.0714        .84159E-01    .13543E-05   -.90387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82326e-10
Minuit parameter uncertainties:
  1  1.69856e-07
  2  8.88551
  3  1.10016e-07
  4  4.78382e-07
  5  1.44298e-07
  6  7.96869e-08
  7  40.2141
  8  5.29854
  9  5.87092e-08
  10  24.3793
  11  4.93284e-05
  12  2.74997
  13  6.33491
  14  7.56443
  15  1.27385
  16  2.44698
  17  3.49073
  18  45.9252
  19  11.099
  20  0.200494
  21  0.0841693
Done.

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

Extracting fit parameters...

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  1.000e-04  4.933e-05  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:  1.071e+00  8.417e-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.072e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/303126/likelihoodResults_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.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) = 15163.6203899
delta logL = -4.29435822298e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15163.6203471
delta logL = -1.41983036883e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6708       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0714       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15163.62     FROM MIGRAD    STATUS=FAILED       103 CALLS      281 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7604.9        .36285E-02** at limit **
   2  alpha         2.3627        3.6425        .16509        .14351E-06
   3  Normalizat    1.0721        .35651E-01    .39988E-03    .69444E-03
   4  Prefactor     1.0714        .15197E-01    .16929E-03    .17301E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15163.62     FROM SIMPLEX   STATUS=UNCHANGED    197 CALLS      478 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7604.9        .19217E-02** at limit **
   2  alpha         2.3627        3.6425        .39481E-06    .14351E-06
   3  Normalizat    1.0721        .35651E-01    .41487E-08    .69444E-03
   4  Prefactor     1.0714        .15197E-01    .16178E-08    .17301E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15163.62     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      506 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    122.50        .72569E-03** at limit **
   2  alpha         2.3508        3.8243        .66038E-02    .64730E-07
   3  Normalizat    1.0721        .19092        .15995E-04    .69143E-03
   4  Prefactor     1.0714        .81418E-01    .33858E-04    .17237E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100031
  alpha      = 2.35079
  Normalizat = 1.07207
  Prefactor  = 1.07136
 **********
 **   18 **HESSE 
 **********

 FCN=   15163.62     FROM HESSE     STATUS=OK            29 CALLS      535 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    129.44        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3508        3.4614        .13208       -.59720E-01
   3  Normalizat    1.0721        .19104        .31990E-05   -.90654    
   4  Prefactor     1.0714        .81461E-01    .67717E-05   -.90387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01278e-09
Minuit parameter uncertainties:
  1  0.00401797
  2  632.451
  3  0.191164
  4  0.0814707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303126': 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) = 15163.6203469
delta logL = 3.72492650058e-08

Extracting fit parameters...

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  1.000e-04  4.018e-03  1.000e-04  1.000e+04 ( 1.000e-13)
275        alpha:  2.351e+00  6.325e+02  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:  1.071e+00  8.147e-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.072e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/303126/cmap_HighResolution_680745601_681004801_4FGL_J0540.0-7552_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2022-08-01 04:21:22.116280', job_id='303126', GAL2='1.07', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1659352882.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1703' AND source_name='4FGL J0540.0-7552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 04:21:22 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 303179: <4FGL_J0540.0-7552_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0540.0-7552_daily_bin1703> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug  1 00:05:43 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:22:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:22:39 2022
Terminated at Mon Aug  1 04:16:57 2022
Results reported at Mon Aug  1 04:16:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.0-7552_daily_bin1703 85.0064 -75.8782 680745601 681004801 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 :                                   13840.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             584.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14057 sec.
    Turnaround time :                            15074 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 303126: <4FGL_J0540.0-7552_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0540.0-7552_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 00:05:41 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:21:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:21:33 2022
Terminated at Mon Aug  1 04:21:23 2022
Results reported at Mon Aug  1 04:21:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.0-7552_daily_bin1703 85.0064 -75.8782 680745601 681004801 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 :                                   14218.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             590.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14389 sec.
    Turnaround time :                            15342 sec.

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

