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


Performing analysis on: 4FGL_J0413.1-5332_daily_bin1701
RA = 63.2773, Dec = -53.5483
tmin = 680227201, tmax = 680486401
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='158409', job_status='RUN', time_executed='2022-07-26 01:35:16.938168', time_epoch_executed='1658824516.94' WHERE source_name='4FGL J0413.1-5332' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158409/ft1_4FGL_J0413.1-5332_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158409/ft1_4FGL_J0413.1-5332_daily_bin1701.fits outfile=/scratch/kocevski/158409/ft1_filteredMKT_4FGL_J0413.1-5332_daily_bin1701.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=680227201.0 tmax=680486401.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 15.30
user 2.67
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.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/158409/ft1_filteredMKT_4FGL_J0413.1-5332_daily_bin1701.fits evtable="EVENTS" outfile="/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.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.56
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 895

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/158409/ltcube_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.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/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits
.....................!
real 15.86
user 15.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/158409/ltcube_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.fits outfile=/scratch/kocevski/158409/expmap_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.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/158409/ltcube_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.fits
.....................!
real 192.04
user 186.06
sys 5.13

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-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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.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.
Added 198 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 J0413.1-5332 @ 63.2773 -53.5483

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits scfile=/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits outfile=/scratch/kocevski/158409/cmap_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.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=63.2773 yref=-53.5483 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits scfile=/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits outfile=/scratch/kocevski/158409/cmap_HighResolution_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.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=63.2773 yref=-53.5483 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.59
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158409/Model_4FGL_J0413.1-5332_daily_bin1701.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 Fornax A
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits.....................!
real 5355.63
user 5334.87
sys 2.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits', '/scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits', expMap='/scratch/kocevski/158409/expmap_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.fits', expCube='/scratch/kocevski/158409/ltcube_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158409/Model_4FGL_J0413.1-5332_daily_bin1701.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0413.1-5332'

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  4.872e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158409/ft1_filtered_4FGL_J0413.1-5332_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/158409/ft2_4FGL_J0413.1-5332_daily_bin1701.fits
Exposure map: /scratch/kocevski/158409/expmap_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.fits
Exposure cube: /scratch/kocevski/158409/ltcube_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158409/Model_4FGL_J0413.1-5332_daily_bin1701.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) = 9682.02769141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .81359       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.283       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.597       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4791       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.758       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .85551E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    10.577       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.722       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8763       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .59807E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11241E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6581       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5618       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .60405E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    3.9470       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0314       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9682.013     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     3003 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8216        3.4540       -.47797E-07    .12682E-02
   2  Prefactor     .10000E-03    6.2766        .79085E-06** at limit **
   3  Prefactor     .10000E-03    3.3478       -.58397E-07** at limit **
   4  norm          .81361        .66061        .11986E-06    .46881E-04
   5  Prefactor     .10000E-03    13.260       -.19527E-05** at limit **
   6  Prefactor     .10000E-03    1.9230       -.39411E-06** at limit **
   7  Prefactor     5.3152        1.0197        .28740E-07    .20362E-04
   8  Prefactor     13.276        1.2647        .12716E-06   -.86081E-03
   9  Prefactor     1.3336        3.0236        .64329E-06    .77080E-03
  10  Prefactor     20.596        1.0160        .16928E-07    .12630E-03
  11  Prefactor     .10000E-03    4.1729        .11809E-05** at limit **
  12  Prefactor     .10000E-03    3.5335       -.38529E-06** at limit **
  13  Prefactor     .10001E-03    14.239        .16164E-05** at limit **
  14  norm          2.4792        2.2048        .18443E-06    .28178E-04
  15  norm          1.7434        5.4878        .17809E-05   -.26138E-04
  16  Prefactor     21.727        2.4021        .14651E-06    .65879E-03
  17  Prefactor     .10000E-03    53.997       -.71909E-05** at limit **
  18  norm          10.599        3.0426        .65379E-07   -.26822E-02
  19  Prefactor     26.693        2.1581        .10841E-06   -.54822E-03
  20  norm          4.8785        1.4415        .40622E-07    .24861E-04
  21  Prefactor     .10000E-03    43.636        .30274E-05** at limit **
  22  Prefactor     .10000E-03    11.174        .10580E-05** at limit **
  23  norm          1.6606        3.0665        .32926E-06    .60208E-04
  24  Prefactor     7.5561        1.3133        .21280E-06   -.84689E-03
  25  Prefactor     .10000E-03    265.74        .90124E-05** at limit **
  26  norm          3.9418        3.5152       -.26321E-06    .81494E-04
  27  Normalizat    1.0316        .15507        .38462E-07   -.21030E-04
  28  Prefactor     .90082        .15915       -.96806E-06   -.19078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.813611
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.31523
  Prefactor  = 13.2761
  Prefactor  = 1.33361
  Prefactor  = 20.5963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 2.4792
  norm       = 1.74342
  Prefactor  = 21.7275
  Prefactor  = 0.000100003
  norm       = 10.5987
  Prefactor  = 26.6927
  norm       = 4.87847
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.66059
  Prefactor  = 7.55608
  Prefactor  = 0.0001
  norm       = 3.94183
  Normalizat = 1.03162
  Prefactor  = 0.900823
 **********
 **   18 **HESSE 
 **********

 FCN=   9682.013     FROM HESSE     STATUS=OK           601 CALLS     3604 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8216        4.0942        .45806E-02   -1.5269    
   2  Prefactor     .10000E-03    6.2678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .81361        .67780        .12490E-01   -1.5528    
   5  Prefactor     .10000E-03    13.278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3152        17.964        .43583E-02   -1.5247    
   8  Prefactor     13.276        11.436        .27476E-02   -1.4979    
   9  Prefactor     1.3336        4.6494        .95075E-02   -1.5477    
  10  Prefactor     20.596        21.739        .22064E-02   -1.4800    
  11  Prefactor     .10000E-03    4.1626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    15.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4792        2.2234        .64915E-02   -1.5393    
  15  norm          1.7434        6.7343        .79514E-02   -1.5444    
  16  Prefactor     21.727        34.565        .21467E-02   -1.4775    
  17  Prefactor     .10000E-03    .77817        .63560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.599        8.2025        .30800E-02   -1.5057    
  19  Prefactor     26.693        43.548        .19374E-02   -1.4674    
  20  norm          4.8785        1.5106        .45539E-02   -1.5266    
  21  Prefactor     .10000E-03    .84810        .66160E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6606        3.2093        .81922E-02   -1.5450    
  24  Prefactor     7.5561        11.213        .36459E-02   -1.5158    
  25  Prefactor     .10000E-03    11.226        .10349       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.9418        3.7444        .50761E-02   -1.5311    
  27  Normalizat    1.0316        .13576        .42024E-01   -.91979    
  28  Prefactor     .90082        .13721        .45019E-01   -.96112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51151e-06
Minuit parameter uncertainties:
  1  4.09442
  2  5.4387e-06
  3  7.21508e-06
  4  0.677811
  5  0.00018486
  6  1.15833e-06
  7  17.9821
  8  11.4374
  9  4.65067
  10  21.7472
  11  8.29165e-06
  12  6.72398e-06
  13  0.000621833
  14  2.22348
  15  6.73722
  16  34.5968
  17  9.38868e-05
  18  8.20333
  19  43.6
  20  1.51063
  21  6.56775e-05
  22  0.000146523
  23  3.20959
  24  11.2161
  25  2.41914e-05
  26  3.74459
  27  0.13581
  28  0.137259
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.724e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.008e-01  1.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  1.032e+00  1.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 63.277 -53.548
Photon Flux Upper Limit: 3.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158409/likelihoodResults_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.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) = 9682.01436955
delta logL = -0.00134499341766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9682.01302453
delta logL = 3.01897671307e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4044       1.0000          .0000       10.000    
     3 'Normalizat'    1.0316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90082       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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.

 FCN=   9682.013     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      235 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    140.90        .18097E-01** at limit **
   2  Index         2.0142        8.6649        .95547E-01    .20585E-06
   3  Normalizat    1.0316        .20343E-01    .22643E-03    .78325E-04
   4  Prefactor     .90082        .21122E-01    .24863E-03    .78464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0142
  Normalizat = 1.03162
  Prefactor  = 0.900823
 **********
 **   18 **HESSE 
 **********

 FCN=   9682.013     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8041        .18666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0142        5.5755        .38219E-02   -.63996    
   3  Normalizat    1.0316        .15249        .90572E-05   -.91979    
   4  Prefactor     .90082        .15833        .99452E-05   -.96112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75295e-10
Minuit parameter uncertainties:
  1  7.12073e-05
  2  276.134
  3  0.152551
  4  0.158415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158409': 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) = 9682.01302365
delta logL = 9.06948116608e-07

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.121e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.014e+00  2.761e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.008e-01  1.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  1.032e+00  1.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 63.277 -53.548

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/158409/cmap_HighResolution_680227201_680486401_4FGL_J0413.1-5332_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-03', job_status='DONE', photon_flux_upper_limit='3.24e-08', time_completed='2022-07-26 03:23:02.912550', job_id='158409', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1658830982.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1701' AND source_name='4FGL J0413.1-5332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 03:23:02 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 158199: <4FGL_J0413.1-5332_daily_bin1701> in cluster <slac> Done

Job <4FGL_J0413.1-5332_daily_bin1701> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jul 26 00:05:05 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 00:27:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 00:27:08 2022
Terminated at Tue Jul 26 02:15:54 2022
Results reported at Tue Jul 26 02:15:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_daily_bin1701 63.2773 -53.5483 680227201 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0413.1-5332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6465.00 sec.
    Max Memory :                                 771 MB
    Average Memory :                             565.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6525 sec.
    Turnaround time :                            7849 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 158409: <4FGL_J0413.1-5332_daily_bin1701> in cluster <slac> Done

Job <4FGL_J0413.1-5332_daily_bin1701> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 26 00:05:18 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 01:34:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 01:34:48 2022
Terminated at Tue Jul 26 03:23:03 2022
Results reported at Tue Jul 26 03:23:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_daily_bin1701 63.2773 -53.5483 680227201 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0413.1-5332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6408.59 sec.
    Max Memory :                                 645 MB
    Average Memory :                             571.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2938 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   6495 sec.
    Turnaround time :                            11865 sec.

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

