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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1460
RA = 350.708, Dec = -49.2725
tmin = 617760001, tmax = 618019201
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='806611', job_status='RUN', time_executed='2021-09-29 14:22:01.871987', time_epoch_executed='1632950521.87' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806611/ft1_4FGL_J2322.8-4916_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806611/ft1_4FGL_J2322.8-4916_daily_bin1460.fits outfile=/scratch/kocevski/806611/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1460.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=617760001.0 tmax=618019201.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 2.74
user 2.51
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.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/806611/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1460.fits evtable="EVENTS" outfile="/scratch/kocevski/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/806611/ltcube_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.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/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits
.....................!
real 13.08
user 12.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/806611/ltcube_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.fits outfile=/scratch/kocevski/806611/expmap_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.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/806611/ltcube_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.fits
.....................!
real 194.10
user 187.55
sys 4.89

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/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits scfile=/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits outfile=/scratch/kocevski/806611/cmap_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits scfile=/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits outfile=/scratch/kocevski/806611/cmap_HighResolution_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806611/Model_4FGL_J2322.8-4916_daily_bin1460.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/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits.......................!
real 24.10
user 22.79
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits', '/scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits', expMap='/scratch/kocevski/806611/expmap_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.fits', expCube='/scratch/kocevski/806611/ltcube_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806611/Model_4FGL_J2322.8-4916_daily_bin1460.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/806611/ft1_filtered_4FGL_J2322.8-4916_daily_bin1460.fits
Spacecraft file(s): /scratch/kocevski/806611/ft2_4FGL_J2322.8-4916_daily_bin1460.fits
Exposure map: /scratch/kocevski/806611/expmap_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.fits
Exposure cube: /scratch/kocevski/806611/ltcube_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806611/Model_4FGL_J2322.8-4916_daily_bin1460.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) = 2005.11935825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.895       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.266       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    165.34       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    85.730       1.0000         .10000E-03   10000.    
    23 'norm      '    .11231E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.4553       1.0000         .10000E-03   10000.    
    26 'norm      '    21.965       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.385       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.893       1.0000         .10000E-03   10000.    
    30 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    15.284       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4164       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .45182       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=   2004.967     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     5540 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.802        433.99       -.66184E-04    .16022E-05
   2  Prefactor     .10000E-03    66.544        .24533E-05** at limit **
   3  Prefactor     38.830        46.358        .20618E-05   -.94493E-05
   4  Prefactor     20.206        19.312       -.50439E-06   -.27051E-04
   5  Prefactor     .10000E-03    10.473        .10601E-05** at limit **
   6  Prefactor     13.897        14.537        .46344E-07   -.29325E-04
   7  Prefactor     .10000E-03    284.32        .14510E-05** at limit **
   8  norm          .10000E-03    7.7221        .42132E-06** at limit **
   9  Prefactor     .10000E-03    6.4321        .32044E-07** at limit **
  10  Prefactor     26.311        104.18        .69603E-04    .68036E-06
  11  Prefactor     10.720        14.371       -.58450E-06   -.58272E-03
  12  Prefactor     .10000E-03    29.277        .11817E-04** at limit **
  13  Prefactor     .10000E-03    17.555       -.94601E-06** at limit **
  14  Prefactor     165.23        202.67       -.86619E-04   -.30149E-05
  15  Prefactor     .10000E-03    6.9170       -.40861E-06** at limit **
  16  Prefactor     .10000E-03    41.318       -.54769E-05** at limit **
  17  Prefactor     .10000E-03    17.320        .58007E-06** at limit **
  18  norm          .10000E-03    17.060        .25971E-05** at limit **
  19  norm          .10000E-03    5.0157        .15221E-07** at limit **
  20  norm          .10000E-03    6.1187       -.28749E-06** at limit **
  21  Prefactor     .10000E-03    4.6184       -.23605E-07** at limit **
  22  Prefactor     85.786        151.92        .53700E-04    .11781E-03
  23  norm          .10003E-03    25.049       -.12061E-04** at limit **
  24  Prefactor     .10000E-03    10.781       -.25161E-07** at limit **
  25  norm          1.4555        1.8667       -.76263E-08   -.17537E-03
  26  norm          21.968        19.019       -.74582E-05    .32473E-03
  27  Prefactor     20.395        43.508        .37284E-05   -.12642E-04
  28  Prefactor     .10000E-03    2.1673        .19379E-07** at limit **
  29  Prefactor     12.901        25.377       -.39542E-05   -.15098E-04
  30  norm          .10000E-03    12.987       -.13827E-05** at limit **
  31  Prefactor     .10000E-03    9.0243       -.76507E-06** at limit **
  32  Prefactor     15.287        10.507        .95692E-07   -.51945E-04
  33  Normalizat    1.4160        .36703       -.33646E-05    .13111E-03
  34  Prefactor     .45213        .33479        .51863E-05   -.64153E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8023
  Prefactor  = 0.0001
  Prefactor  = 38.8297
  Prefactor  = 20.2059
  Prefactor  = 0.0001
  Prefactor  = 13.8975
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3111
  Prefactor  = 10.7198
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 165.226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.7856
  norm       = 0.000100025
  Prefactor  = 0.0001
  norm       = 1.45548
  norm       = 21.9681
  Prefactor  = 20.3949
  Prefactor  = 0.0001
  Prefactor  = 12.901
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2866
  Normalizat = 1.41598
  Prefactor  = 0.452126
 **********
 **   18 **HESSE 
 **********

 FCN=   2004.967     FROM HESSE     STATUS=OK           716 CALLS     6256 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.802        442.68        .83820E-04   -1.4753    
   2  Prefactor     .10000E-03    66.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.830        46.415        .64327E-04   -1.4461    
   4  Prefactor     20.206        19.369        .89110E-04   -1.4809    
   5  Prefactor     .10000E-03    10.609        .14148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.897        14.545        .10745E-03   -1.4962    
   7  Prefactor     .10000E-03    284.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7226        .12154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4558        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.311        103.96        .78166E-04   -1.4682    
  11  Prefactor     10.720        14.399        .61187E-03   -1.5053    
  12  Prefactor     .10000E-03    29.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     165.23        201.82        .15684E-03   -1.3130    
  15  Prefactor     .10000E-03    6.9186        .11503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.071        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.0160        .97948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.1262        .10818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6223        .93981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     85.786        154.10        .43388E-04   -1.3853    
  23  norm          .10003E-03    25.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.790        .14361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.4555        1.8424        .66188E-04   -1.5467    
  26  norm          21.968        19.040        .85464E-04   -1.4770    
  27  Prefactor     20.395        44.030        .88712E-04   -1.4804    
  28  Prefactor     .10000E-03    2.1704        .64356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.901        25.382        .11156E-03   -1.4989    
  30  norm          .10000E-03    12.988        .15764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    9.1475        .13117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     15.287        10.576        .10245E-03   -1.4926    
  33  Normalizat    1.4160        .43919        .22580E-03   -.80168    
  34  Prefactor     .45213        .38247        .37009E-03   -1.1423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21557e-09
Minuit parameter uncertainties:
  1  202.69
  2  4.65074e-05
  3  46.4582
  4  19.3747
  5  1.73712e-05
  6  14.5485
  7  0.000109599
  8  7.46649e-06
  9  3.81755e-05
  10  104.692
  11  14.4036
  12  0.000113675
  13  0.000220649
  14  202.672
  15  2.35602e-05
  16  9.97742e-05
  17  1.87365e-05
  18  3.2529e-05
  19  1.27194e-08
  20  5.90049e-05
  21  4.48349e-06
  22  154.826
  23  0.00161603
  24  1.57189e-05
  25  1.84249
  26  19.0451
  27  44.1006
  28  3.71707e-06
  29  25.4032
  30  1.82622e-06
  31  1.53633e-05
  32  10.5776
  33  0.440367
  34  0.384661
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.272e-08  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.521e-01  3.847e-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.416e+00  4.404e-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: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806611/likelihoodResults_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.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): 102
logL (Free Index) = 2004.96795225
delta logL = -0.000467882770863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2004.9674854
delta logL = -1.0325625226e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2004.967     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      237 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    262.03        .98377E-02** at limit **
   2  alpha         1.2971        2.7981        .18052        .55042E-07
   3  Normalizat    1.4160        .59258E-01    .22580E-03    .13299E-02
   4  Prefactor     .45213        .57924E-01    .37008E-03    .74377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.29707
  Normalizat = 1.41598
  Prefactor  = 0.452133
 **********
 **   18 **HESSE 
 **********

 FCN=   2004.967     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4126        .10165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2971        3.0490        .72208E-02   -.50199    
   3  Normalizat    1.4160        .38190        .45159E-04   -.80167    
   4  Prefactor     .45213        .37206        .74017E-04   -1.1423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81837e-09
Minuit parameter uncertainties:
  1  7.69676e-05
  2  263.092
  3  0.382669
  4  0.37408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806611': 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) = 2004.96748365
delta logL = 7.10790573066e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  7.697e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.297e+00  2.631e+02  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.521e-01  3.741e-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.416e+00  3.827e-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/806611/cmap_HighResolution_617760001_618019201_4FGL_J2322.8-4916_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-04', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-29 14:31:08.844092', job_id='806611', GAL2='0.45', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632951068.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='7.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1460' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 806611: <4FGL_J2322.8-4916_daily_bin1460> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1460> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:23 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:25 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:20:25 2021
Terminated at Wed Sep 29 14:31:09 2021
Results reported at Wed Sep 29 14:31:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1460 350.708 -49.2725 617760001 618019201 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 :                                   537.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

