/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 101 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.4-4800_daily_bin311
RA = 351.35, Dec = -48.0022
tmin = 319939201, tmax = 320198401
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='872516', job_status='RUN', time_executed='2021-09-29 17:57:04.020637', time_epoch_executed='1632963424.02' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872516/ft1_4FGL_J2325.4-4800_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872516/ft1_4FGL_J2325.4-4800_daily_bin311.fits outfile=/scratch/kocevski/872516/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin311.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=319939201.0 tmax=320198401.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.52
user 3.32
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.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/872516/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin311.fits evtable="EVENTS" outfile="/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/872516/ltcube_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.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/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits
.....................!
real 12.07
user 11.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/872516/ltcube_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.fits outfile=/scratch/kocevski/872516/expmap_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.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/872516/ltcube_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.fits
.....................!
real 191.20
user 185.90
sys 4.91

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
Added 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.4-4800 @ 351.35 -48.0022

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits scfile=/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits outfile=/scratch/kocevski/872516/cmap_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.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=351.35 yref=-48.0022 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits scfile=/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits outfile=/scratch/kocevski/872516/cmap_HighResolution_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.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=351.35 yref=-48.0022 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/872516/Model_4FGL_J2325.4-4800_daily_bin311.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
Working on...
/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits.....................!
real 43.10
user 41.74
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits', '/scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits', expMap='/scratch/kocevski/872516/expmap_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.fits', expCube='/scratch/kocevski/872516/ltcube_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/872516/Model_4FGL_J2325.4-4800_daily_bin311.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.4-4800'

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  3.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/872516/ft1_filtered_4FGL_J2325.4-4800_daily_bin311.fits
Spacecraft file(s): /scratch/kocevski/872516/ft2_4FGL_J2325.4-4800_daily_bin311.fits
Exposure map: /scratch/kocevski/872516/expmap_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.fits
Exposure cube: /scratch/kocevski/872516/ltcube_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/872516/Model_4FGL_J2325.4-4800_daily_bin311.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) = 5718.87170608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.6526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50169E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10244E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3732       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.616       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.648       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .94750       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.047       1.0000         .10000E-03   10000.    
    26 'norm      '    .12355E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    35.389       1.0000         .10000E-03   10000.    
    30 'norm      '    13.872       1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.781       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.5850       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2937       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .60801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5718.709     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     3412 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    61.116       -.40860E-04** at limit **
   2  Prefactor     44.145        1.1085        .83934E-07   -.12744E-03
   3  Prefactor     .10017E-03    35.814        .31682E-04** at limit **
   4  Prefactor     .10000E-03    8.0056       -.81657E-06** at limit **
   5  Prefactor     .10000E-03    5.0921        .52613E-06** at limit **
   6  Prefactor     .10004E-03    8.0780        .77854E-05** at limit **
   7  Prefactor     .10000E-03    3.3336        .48048E-06** at limit **
   8  norm          6.6525        1.0814       -.92960E-06   -.12128E-02
   9  Prefactor     .10000E-03    1.7054       -.88669E-07** at limit **
  10  Prefactor     .10002E-03    10.651       -.17979E-04** at limit **
  11  Prefactor     .10000E-03    2.3879       -.20616E-06** at limit **
  12  Prefactor     .10004E-03    320.07       -.16081E-03** at limit **
  13  Prefactor     .10956E-03    66.382       -.86470E-04** at limit **
  14  Prefactor     .10166E-03    172.48        .19901E-03** at limit **
  15  Prefactor     8.3731        1.6555        .33021E-05    .52381E-02
  16  Prefactor     .10026E-03    24.082       -.22073E-04** at limit **
  17  Prefactor     24.613        1.0702        .39283E-07    .26358E-03
  18  norm          .10000E-03    3.4273        .19005E-06** at limit **
  19  norm          .10000E-03    2.5827       -.14939E-06** at limit **
  20  norm          1.6189        4.5730       -.18268E-05    .11433E-03
  21  Prefactor     16.653        1.0565        .24349E-06    .61751E-03
  22  Prefactor     .10030E-03    13.403       -.21050E-04** at limit **
  23  norm          .93785        8.8159       -.40156E-05    .34070E-03
  24  Prefactor     .10047E-03    8.8469       -.24886E-05** at limit **
  25  norm          11.047        2.2013        .15249E-07    .43233E-03
  26  norm          .10124E-03    7.9179        .22843E-04** at limit **
  27  Prefactor     .10002E-03    10.851        .21547E-04** at limit **
  28  Prefactor     .10000E-03    1.4354       -.25709E-06** at limit **
  29  Prefactor     35.386        1.0323        .27737E-06    .59286E-04
  30  norm          13.880        1.4555       -.21265E-05   -.94920E-04
  31  Prefactor     11.776        1.3035       -.20947E-06   -.58540E-03
  32  Prefactor     2.5832        4.5172       -.61524E-06   -.10398E-03
  33  Normalizat    1.2940        .22750       -.29053E-05    .43849E-03
  34  Prefactor     .60770        .23268        .13799E-05    .27552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100106
  Prefactor  = 44.1454
  Prefactor  = 0.000100171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  norm       = 6.65253
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.000109555
  Prefactor  = 0.000101659
  Prefactor  = 8.37306
  Prefactor  = 0.000100256
  Prefactor  = 24.6132
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.61889
  Prefactor  = 16.6532
  Prefactor  = 0.000100303
  norm       = 0.93785
  Prefactor  = 0.000100469
  norm       = 11.0466
  norm       = 0.00010124
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 35.3865
  norm       = 13.8804
  Prefactor  = 11.7763
  Prefactor  = 2.5832
  Normalizat = 1.29405
  Prefactor  = 0.607697
 **********
 **   18 **HESSE 
 **********

 FCN=   5718.709     FROM HESSE     STATUS=OK           818 CALLS     4230 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    61.868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.145        30.022        .15084E-02   -1.4378    
   3  Prefactor     .10017E-03    36.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    18.877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.6525        6.2763        .38894E-02   -1.5192    
   9  Prefactor     .10000E-03    1.6629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    10.875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    19.438        .10883       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10956E-03    5.8910        .66723E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10166E-03    183.28        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3731        6.2368        .34635E-02   -1.5129    
  16  Prefactor     .10026E-03    25.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.613        18.304        .20184E-02   -1.4715    
  18  norm          .10000E-03    3.4280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.5827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6189        4.3856        .83431E-02   -1.5453    
  21  Prefactor     16.653        9.7457        .24540E-02   -1.4892    
  22  Prefactor     .10030E-03    15.315        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .93785        8.4257        .12979E-01   -1.5514    
  24  Prefactor     .10047E-03    19.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.047        2.3638        .30135E-02   -1.5043    
  26  norm          .10124E-03    2.6806        .62123E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    11.037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.4307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     35.386        24.646        .16842E-02   -1.4518    
  30  norm          13.880        28.054        .26885E-02   -1.4963    
  31  Prefactor     11.776        8.4814        .29178E-02   -1.5021    
  32  Prefactor     2.5832        4.6916        .63453E-02   -1.5387    
  33  Normalizat    1.2940        .19676        .50412E-01   -.83744    
  34  Prefactor     .60770        .19589        .73787E-01   -1.0726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01935e-07
Minuit parameter uncertainties:
  1  0.00511988
  2  30.0323
  3  0.00501864
  4  3.68331e-05
  5  1.28493e-05
  6  0.00181091
  7  2.64676e-05
  8  6.27689
  9  6.56026e-06
  10  0.000842557
  11  8.5326e-07
  12  0.00178824
  13  0.015007
  14  0.0349854
  15  6.23724
  16  0.00512296
  17  18.3087
  18  7.22568e-06
  19  3.33759e-06
  20  4.38644
  21  9.74661
  22  0.00431252
  23  5.62287
  24  0.00600981
  25  2.36386
  26  0.00364696
  27  0.000876286
  28  1.31803e-05
  29  24.6534
  30  28.0804
  31  8.48225
  32  4.69229
  33  0.196872
  34  0.196114
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.665e+01  9.747e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  6.077e-01  1.961e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.294e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 351.350 -48.002
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 7.17e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 3.89e-05 +/- 2.28e-05

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) = 5718.31886257
delta logL = 0.389673763265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5718.31324031
delta logL = 0.395296028451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.296       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4669       1.0000          .0000       10.000    
     3 'Normalizat'    1.2714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   5718.313     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      300 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.299        10.168        .11991E-03   -.23652E-02
   2  Index         2.4672        .47245        .36470E-02   -.76156E-03
   3  Normalizat    1.2715        .22463        .22427E-03    .73039E-03
   4  Prefactor     .62275        .23285        .32279E-03    .69439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2991
  Index      = 2.46716
  Normalizat = 1.2715
  Prefactor  = 0.622752
 **********
 **   18 **HESSE 
 **********

 FCN=   5718.313     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.299        9.2266        .47965E-05   -1.5066    
   2  Index         2.4672        .42866        .14588E-03   -.53120    
   3  Normalizat    1.2715        .22461        .44854E-04   -.84421    
   4  Prefactor     .62275        .23287        .64558E-04   -1.0664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32603e-09
Minuit parameter uncertainties:
  1  9.22788
  2  0.429367
  3  0.224784
  4  0.233232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872516': 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) = 5718.31323765
delta logL = 0.395298685095

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.030e+01  9.228e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.467e+00  4.294e-01  0.000e+00  1.000e+01 (-1.000e+00)
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  6.228e-01  2.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.271e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 351.350 -48.002
Photon Index (Free Index): 2.47 +/- 0.43
Photon Flux (Free Index): 9.64e-08 +/- 5.44e-08
Energy Flux (Free Index): 2.91e-05 +/- 1.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/872516/cmap_HighResolution_319939201_320198401_4FGL_J2325.4-4800_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.17e-08', energy_flux2='2.91e-05', photon_flux_error='4.19e-08', dlogl='3.95e-01', energy_flux='3.89e-05', photon_flux2='9.64e-08', job_status='DONE', time_completed='2021-09-29 18:08:46.131894', photon_index_error2='0.43', photon_index2='2.47', ts='6.20', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.29', time_epoch_completed='1632964126.13', return_code='0', job_id='872516', GAL2='0.62', EG2='1.27', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='5.44e-08', ts2='7.18', photon_index='2.11' WHERE bin_id='311' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:08:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 872516: <4FGL_J2325.4-4800_daily_bin311> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin311> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 17:55:13 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:55:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 17:55:15 2021
Terminated at Wed Sep 29 18:08:46 2021
Results reported at Wed Sep 29 18:08:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin311 351.35 -48.0022 319939201 320198401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.4-4800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

