/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 194 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 = 7497
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2325.4-4800_daily_bin685
RA = 351.35, Dec = -48.0022
tmin = 416880001, tmax = 417139201
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='874167', job_status='RUN', time_executed='2021-09-29 18:03:52.032346', time_epoch_executed='1632963832.03' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874167/ft1_4FGL_J2325.4-4800_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874167/ft1_4FGL_J2325.4-4800_daily_bin685.fits outfile=/scratch/kocevski/874167/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin685.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=416880001.0 tmax=417139201.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 5.27
user 5.02
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/874167/ft1_filtered_4FGL_J2325.4-4800_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/874167/ltcube_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.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/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits
.....................!
real 12.26
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874167/ft1_filtered_4FGL_J2325.4-4800_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/874167/ltcube_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.fits outfile=/scratch/kocevski/874167/expmap_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.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/874167/ltcube_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.fits
.....................!
real 190.78
user 185.46
sys 4.97

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/874167/ft1_filtered_4FGL_J2325.4-4800_daily_bin685.fits scfile=/scratch/kocevski/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits outfile=/scratch/kocevski/874167/cmap_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/874167/ft1_filtered_4FGL_J2325.4-4800_daily_bin685.fits scfile=/scratch/kocevski/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits outfile=/scratch/kocevski/874167/cmap_HighResolution_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/874167/ft1_filtered_4FGL_J2325.4-4800_daily_bin685.fits', '/scratch/kocevski/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits', expMap='/scratch/kocevski/874167/expmap_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.fits', expCube='/scratch/kocevski/874167/ltcube_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/874167/Model_4FGL_J2325.4-4800_daily_bin685.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/874167/ft1_filtered_4FGL_J2325.4-4800_daily_bin685.fits
Spacecraft file(s): /scratch/kocevski/874167/ft2_4FGL_J2325.4-4800_daily_bin685.fits
Exposure map: /scratch/kocevski/874167/expmap_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.fits
Exposure cube: /scratch/kocevski/874167/ltcube_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/874167/Model_4FGL_J2325.4-4800_daily_bin685.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) = 2466.18758102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.657       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39961E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14911E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .77351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.653       1.0000         .10000E-03   10000.    
     8 'norm      '    14.477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73499E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.286       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.611       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    22.943       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7313       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.021       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .11084E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .32791       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.7292       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=   2466.173     FROM MIGRAD    STATUS=CONVERGED   1737 CALLS     5606 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.237        298.69        .98133E-04    .11597E-04
   2  Prefactor     .28140E-03    67.159        .10292    ** at limit **
   3  Prefactor     .10000E-03    153.88        .18142E-02** at limit **
   4  Prefactor     .10000E-03    7.7011        .13457E-02** at limit **
   5  Prefactor     .76716        32.395        .35789E-02    .14347E-03
   6  Prefactor     .10000E-03    57.382        .18142E-02** at limit **
   7  Prefactor     47.646        22.049        .58087E-04   -.29745E-03
   8  norm          14.477        13.830        .10527E-03    .52379E-05
   9  Prefactor     .10000E-03    11.526        .32240E-03** at limit **
  10  Prefactor     .10000E-03    73.340        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.2456        .87352E-03** at limit **
  12  Prefactor     .10000E-03    34.104        .18142E-02** at limit **
  13  Prefactor     .25805E-03    44.729        .64107E-01** at limit **
  14  Prefactor     48.820        134.76        .28737E-03   -.84463E-05
  15  Prefactor     40.274        25.138        .63153E-04   -.27993E-04
  16  Prefactor     .10000E-03    56.883        .18142E-02** at limit **
  17  Prefactor     .10000E-03    27.635        .18142E-02** at limit **
  18  norm          .10000E-03    40.642        .18142E-02** at limit **
  19  norm          .10000E-03    5.3021        .11169E-02** at limit **
  20  norm          .10000E-03    5.2108        .11071E-02** at limit **
  21  Prefactor     .10000E-03    5.7193        .11595E-02** at limit **
  22  Prefactor     .10000E-03    40.976        .18142E-02** at limit **
  23  norm          10.606        10.094        .12300E-03   -.17053E-04
  24  Prefactor     .10000E-03    15.823        .18142E-02** at limit **
  25  norm          22.940        4.6577        .45441E-04   -.40252E-03
  26  norm          2.7275        10.166        .12319E-02   -.17054E-04
  27  Prefactor     15.023        22.790        .10334E-03   -.21507E-04
  28  Prefactor     .10000E-03    2.6081        .78214E-03** at limit **
  29  Prefactor     .10000E-03    23.134        .18142E-02** at limit **
  30  norm          .10000E-03    42.732        .18142E-02** at limit **
  31  Prefactor     .10000E-03    14.528        .36285E-03** at limit **
  32  Prefactor     .10000E-03    3.4106        .89439E-03** at limit **
  33  Normalizat    .32820        .39817        .46648E-03   -.20227E-03
  34  Prefactor     1.7291        .43357        .24332E-03   -.25005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2371
  Prefactor  = 0.000281403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.767157
  Prefactor  = 0.0001
  Prefactor  = 47.6459
  norm       = 14.4765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000258054
  Prefactor  = 48.8202
  Prefactor  = 40.2741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6063
  Prefactor  = 0.0001
  norm       = 22.9401
  norm       = 2.72753
  Prefactor  = 15.023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.328202
  Prefactor  = 1.72911
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.173     FROM HESSE     STATUS=OK           722 CALLS     6328 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.237        298.58        .19627E-04   -1.4902    
   2  Prefactor     .28140E-03    63.505        .10678       -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    153.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7012        .26913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .76716        32.389        .14315E-03   -1.5533    
   6  Prefactor     .10000E-03    57.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.646        22.046        .11617E-04   -1.4326    
   8  norm          14.477        13.829        .42107E-05   -1.4947    
   9  Prefactor     .10000E-03    11.527        .64480E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    73.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2456        .17470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .25805E-03    34.353        .74720E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.820        134.54        .11495E-04   -1.4309    
  15  Prefactor     40.274        25.133        .25261E-05   -1.4438    
  16  Prefactor     .10000E-03    56.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    40.646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.3021        .22337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.2108        .22142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7194        .23189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.606        10.080        .49200E-05   -1.5057    
  24  Prefactor     .10000E-03    15.823        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          22.940        4.6571        .90882E-05   -1.4750    
  26  norm          2.7275        10.146        .49277E-04   -1.5378    
  27  Prefactor     15.023        22.788        .41337E-05   -1.4933    
  28  Prefactor     .10000E-03    2.6081        .15643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    23.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    42.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    14.528        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.4107        .17888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .32820        .39771        .18659E-04   -1.2119    
  34  Prefactor     1.7291        .43273        .48664E-04   -.71309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73975e-09
Minuit parameter uncertainties:
  1  140.075
  2  0.21489
  3  0.000356464
  4  6.82609e-06
  5  9.9745
  6  0.000157082
  7  22.0495
  8  13.8322
  9  4.31759e-05
  10  4.64346e-06
  11  4.13005e-06
  12  2.88594e-05
  13  0.147457
  14  135.394
  15  25.14
  16  5.54199e-05
  17  3.96709e-05
  18  9.54448e-05
  19  5.57754e-07
  20  1.43626e-06
  21  6.11448e-06
  22  5.04647e-05
  23  10.0821
  24  2.10452e-05
  25  4.65717
  26  10.1529
  27  22.8011
  28  3.08542e-06
  29  1.157e-05
  30  5.23249e-05
  31  8.20919e-05
  32  6.16917e-06
  33  0.401203
  34  0.433684
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  6.114e-06  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:  1.729e+00  4.337e-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:  3.282e-01  4.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.350 -48.002
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/874167/likelihoodResults_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.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) = 2466.1734083
delta logL = -0.000667554943902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2466.17274067
delta logL = 7.24467099644e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0923       1.0000          .0000       10.000    
     3 'Normalizat'    .32819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7291       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=   2466.173     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0355        .11712E-02** at limit **
   2  Index         2.0756        6.0313        .50000        .22803E-04
   3  Normalizat    .32821        .36358        .46645E-03    .73118E-06
   4  Prefactor     1.7291        .41327        .24332E-03    .11681E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.0756
  Normalizat = 0.328209
  Prefactor  = 1.72911
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.173     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8349        .23424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0756        6.0340        .50000       -.62473    
   3  Normalizat    .32821        .36358        .18658E-04   -1.2119    
   4  Prefactor     1.7291        .41326        .97327E-05   -.71310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89025e-10
Minuit parameter uncertainties:
  1  0.000240192
  2  4.06015
  3  0.366232
  4  0.414089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874167': 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) = 2466.17274057
delta logL = 1.7387810658e-07

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  2.402e-04  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.076e+00  4.060e+00  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:  1.729e+00  4.141e-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:  3.282e-01  3.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.350 -48.002

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/874167/cmap_HighResolution_416880001_417139201_4FGL_J2325.4-4800_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.42e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-29 18:14:01.149611', job_id='874167', GAL2='1.73', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1632964441.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.73', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='685' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:14:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 874167: <4FGL_J2325.4-4800_daily_bin685> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin685> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:00:26 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:00:28 2021
Terminated at Wed Sep 29 18:14:01 2021
Results reported at Wed Sep 29 18:14:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin685 351.35 -48.0022 416880001 417139201 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 :                                   609.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

