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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1221
RA = 350.708, Dec = -49.2725
tmin = 555811201, tmax = 556070401
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='805254', job_status='RUN', time_executed='2021-09-29 14:18:56.701305', time_epoch_executed='1632950336.7' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805254

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805254/ft1_4FGL_J2322.8-4916_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805254/ft1_4FGL_J2322.8-4916_daily_bin1221.fits outfile=/scratch/kocevski/805254/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1221.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=555811201.0 tmax=556070401.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.61
user 3.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.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/805254/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/805254/ltcube_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.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/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits
.....................!
real 12.19
user 11.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/805254/ltcube_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.fits outfile=/scratch/kocevski/805254/expmap_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.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/805254/ltcube_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.fits
.....................!
real 190.96
user 185.87
sys 4.67

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2322.8-4916 @ 350.708 -49.2725

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits scfile=/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits outfile=/scratch/kocevski/805254/cmap_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.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=350.708 yref=-49.2725 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits scfile=/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits outfile=/scratch/kocevski/805254/cmap_HighResolution_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.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=350.708 yref=-49.2725 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805254/Model_4FGL_J2322.8-4916_daily_bin1221.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/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits.......................!
real 19.90
user 18.49
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits', '/scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits', expMap='/scratch/kocevski/805254/expmap_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.fits', expCube='/scratch/kocevski/805254/ltcube_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805254/Model_4FGL_J2322.8-4916_daily_bin1221.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.8-4916'

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/805254/ft1_filtered_4FGL_J2322.8-4916_daily_bin1221.fits
Spacecraft file(s): /scratch/kocevski/805254/ft2_4FGL_J2322.8-4916_daily_bin1221.fits
Exposure map: /scratch/kocevski/805254/expmap_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.fits
Exposure cube: /scratch/kocevski/805254/ltcube_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805254/Model_4FGL_J2322.8-4916_daily_bin1221.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) = 1238.4787576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.970       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11671E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17364E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7281       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10469E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8677       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.3962       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17318E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6647       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2593       1.0000         .10000E-03   10000.    
    29 'Prefactor '    61.336       1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    23.936       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.7531       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2387       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .49298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1238.468     FROM MIGRAD    STATUS=CONVERGED    917 CALLS     4808 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    224.50       -.54149E-04** at limit **
   2  Prefactor     .10000E-03    71.449       -.54293E-04** at limit **
   3  Prefactor     15.347        89.316        .39910E-04    .33577E-04
   4  Prefactor     33.968        26.766        .10942E-06    .86792E-06
   5  Prefactor     .10000E-03    7.6460        .83439E-07** at limit **
   6  Prefactor     .10000E-03    8.0315       -.30526E-06** at limit **
   7  Prefactor     .10000E-03    139.29        .35240E-04** at limit **
   8  norm          .10000E-03    8.3278        .28462E-06** at limit **
   9  Prefactor     3.7354        6.6019       -.69134E-05   -.24828E-03
  10  Prefactor     .10000E-03    51.397        .13611E-04** at limit **
  11  Prefactor     .10001E-03    15.141        .58444E-05** at limit **
  12  Prefactor     .10000E-03    253.33       -.11844E-03** at limit **
  13  Prefactor     .10000E-03    41.020        .24771E-04** at limit **
  14  Prefactor     .10000E-03    151.81        .38648E-04** at limit **
  15  Prefactor     .10000E-03    14.408        .15302E-06** at limit **
  16  Prefactor     .10000E-03    54.824       -.13269E-05** at limit **
  17  Prefactor     1.6824        283.22       -.25104E-04   -.12063E-03
  18  norm          .10000E-03    12.269       -.92906E-10** at limit **
  19  norm          .10000E-03    35.262        .39045E-05** at limit **
  20  norm          .10000E-03    16.879       -.14252E-05** at limit **
  21  Prefactor     8.8976        13.154        .14470E-05   -.52637E-03
  22  Prefactor     .10000E-03    150.80        .38570E-04** at limit **
  23  norm          9.3955        10.052        .21953E-06   -.14894E-03
  24  Prefactor     .10002E-03    166.36        .27983E-04** at limit **
  25  norm          .10000E-03    1.9969        .34606E-06** at limit **
  26  norm          3.6649        8.4139       -.90821E-06   -.13268E-03
  27  Prefactor     .10000E-03    18.752        .18331E-05** at limit **
  28  Prefactor     3.2588        9.9647       -.70667E-05   -.23205E-03
  29  Prefactor     61.379        62.238        .27160E-04    .20596E-04
  30  norm          .10000E-03    35.911       -.19290E-04** at limit **
  31  Prefactor     23.941        17.507       -.72617E-06    .95646E-04
  32  Prefactor     1.7542        9.6568       -.15469E-06   -.87883E-04
  33  Normalizat    1.2389        .40231       -.46127E-05   -.75842E-04
  34  Prefactor     .49311        .39566        .39597E-05   -.13700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.3474
  Prefactor  = 33.9677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.73545
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68244
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 8.89765
  Prefactor  = 0.0001
  norm       = 9.39547
  Prefactor  = 0.000100023
  norm       = 0.0001
  norm       = 3.66488
  Prefactor  = 0.0001
  Prefactor  = 3.25883
  Prefactor  = 61.3792
  norm       = 0.0001
  Prefactor  = 23.9409
  Prefactor  = 1.75419
  Normalizat = 1.23889
  Prefactor  = 0.493111
 **********
 **   18 **HESSE 
 **********

 FCN=   1238.468     FROM HESSE     STATUS=OK           714 CALLS     5522 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    224.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    71.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.347        89.326        .10233E-03   -1.4924    
   4  Prefactor     33.968        26.776        .68754E-04   -1.4542    
   5  Prefactor     .10000E-03    7.6549        .95054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0424        .97422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    139.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.3282        .99210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7354        6.5871        .11599E-03   -1.5321    
  10  Prefactor     .10000E-03    51.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    53.247        .25891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    254.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    151.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.476        .13048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    54.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6824        211.54        .31940E-03   -1.5449    
  18  norm          .10000E-03    12.269        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    113.24        .34322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    16.910        .14080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.8976        12.861        .13460E-03   -1.5111    
  22  Prefactor     .10000E-03    151.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.3955        10.031        .10711E-03   -1.5095    
  24  Prefactor     .10002E-03    169.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.0099        .95681E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6649        8.3936        .14445E-03   -1.5325    
  27  Prefactor     .10000E-03    18.763        .14889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.2588        9.8451        .16347E-03   -1.5347    
  29  Prefactor     61.379        62.046        .51233E-04   -1.4139    
  30  norm          .10000E-03    35.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     23.941        17.456        .81875E-04   -1.4729    
  32  Prefactor     1.7542        9.5335        .20492E-03   -1.5443    
  33  Normalizat    1.2389        .45209        .20544E-03   -.85409    
  34  Prefactor     .49311        .44823        .32381E-03   -1.1229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62029e-09
Minuit parameter uncertainties:
  1  0.000191707
  2  0.000571444
  3  74.2196
  4  26.7856
  5  3.13527e-05
  6  3.12009e-05
  7  4.63061e-05
  8  3.10066e-06
  9  6.58835
  10  4.25642e-05
  11  0.00163952
  12  0.00181324
  13  6.93052e-05
  14  4.7255e-05
  15  4.33963e-05
  16  5.68289e-05
  17  37.8676
  18  5.59287e-06
  19  0.00129455
  20  1.30858e-05
  21  12.8655
  22  6.32909e-05
  23  10.0328
  24  0.00396891
  25  1.39067e-05
  26  8.39633
  27  1.27016e-05
  28  9.85003
  29  62.1112
  30  3.34669e-05
  31  17.4594
  32  8.18068
  33  0.45353
  34  0.451495
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.295e-03  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  4.931e-01  4.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.239e+00  4.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805254/likelihoodResults_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.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) = 1238.46847594
delta logL = -4.18543095293e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1238.46843382
delta logL = 2.71729959422e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13488E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6747       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49323       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1238.381     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      315 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6697        307.57        .10276E-01    .12519E-03
   2  alpha         2.5772        3.2222        .25472        .13903E-04
   3  Normalizat    1.2390        .10316        .33998E-01   -.13255E-04
   4  Prefactor     .48060        .10343        .73858E-01   -.21079E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66969
  alpha      = 2.57717
  Normalizat = 1.23896
  Prefactor  = 0.480603
 **********
 **   18 **HESSE 
 **********

 FCN=   1238.381     FROM HESSE     STATUS=OK            31 CALLS      346 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6697        9.2898        .12225E-03   -1.5450    
   2  alpha         2.5772        1.8153        .13258E-01    .30874E-01
   3  Normalizat    1.2390        .42169        .20523E-03   -.85407    
   4  Prefactor     .48060        .43526        .32705E-03   -1.1288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11492e-09
Minuit parameter uncertainties:
  1  7.87845
  2  2.03188
  3  0.422859
  4  0.438321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805254': 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) = 1238.38115909
delta logL = 0.0872749933546

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.670e+00  7.878e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.577e+00  2.032e+00  0.000e+00  5.000e+00 ( 1.000e+00)
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  4.806e-01  4.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.239e+00  4.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.708 -49.273

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/805254/cmap_HighResolution_555811201_556070401_4FGL_J2322.8-4916_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-04', job_status='DONE', photon_flux_upper_limit='8.97e-08', time_completed='2021-09-29 14:28:16.402249', job_id='805254', GAL2='0.48', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632950896.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='8.73e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1221' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:28:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 805254: <4FGL_J2322.8-4916_daily_bin1221> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1221> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:37 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:15:38 2021
Terminated at Wed Sep 29 14:28:17 2021
Results reported at Wed Sep 29 14:28:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1221 350.708 -49.2725 555811201 556070401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.8-4916 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   456.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             238.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

