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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1464
RA = 350.708, Dec = -49.2725
tmin = 618796801, tmax = 619056001
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='806617', job_status='RUN', time_executed='2021-09-29 14:22:06.661711', time_epoch_executed='1632950526.66' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806617/ft1_4FGL_J2322.8-4916_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806617/ft2_4FGL_J2322.8-4916_daily_bin1464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806617/ft1_4FGL_J2322.8-4916_daily_bin1464.fits outfile=/scratch/kocevski/806617/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1464.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=618796801.0 tmax=619056001.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.68
user 3.48
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806617/ft1_filtered_4FGL_J2322.8-4916_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/806617/ft2_4FGL_J2322.8-4916_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/806617/ltcube_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.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/806617/ft2_4FGL_J2322.8-4916_daily_bin1464.fits
.....................!
real 15.13
user 14.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806617/ft1_filtered_4FGL_J2322.8-4916_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/806617/ft2_4FGL_J2322.8-4916_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/806617/ltcube_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.fits outfile=/scratch/kocevski/806617/expmap_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.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/806617/ltcube_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.fits
.....................!
real 192.41
user 185.96
sys 5.68

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/806617/ft1_filtered_4FGL_J2322.8-4916_daily_bin1464.fits scfile=/scratch/kocevski/806617/ft2_4FGL_J2322.8-4916_daily_bin1464.fits outfile=/scratch/kocevski/806617/cmap_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806617/ft1_filtered_4FGL_J2322.8-4916_daily_bin1464.fits scfile=/scratch/kocevski/806617/ft2_4FGL_J2322.8-4916_daily_bin1464.fits outfile=/scratch/kocevski/806617/cmap_HighResolution_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806617/ft1_filtered_4FGL_J2322.8-4916_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/806617/ft2_4FGL_J2322.8-4916_daily_bin1464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806617/Model_4FGL_J2322.8-4916_daily_bin1464.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/806617/ft1_filtered_4FGL_J2322.8-4916_daily_bin1464.fits.....................!
real 32.17
user 30.81
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5786       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.394       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.817       1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8761       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25772       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.1047       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4375       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8087       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16548E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5361       1.0000         .10000E-03   10000.    
    25 'norm      '    .14489       1.0000         .10000E-03   10000.    
    26 'norm      '    1.0169       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.657       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.9969       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .77958       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0466       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=   3726.852     FROM MIGRAD    STATUS=CONVERGED   1724 CALLS     6346 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.896        .18142E-02** at limit **
   2  Prefactor     3.5775        18.020        .10681E-02   -.92940E-04
   3  Prefactor     22.408        30.913        .84642E-04   -.23897E-03
   4  Prefactor     .10000E-03    7.6118        .16406E-02** at limit **
   5  Prefactor     19.280        11.723        .91213E-04   -.94912E-04
   6  Prefactor     .10000E-03    2.8009        .99740E-03** at limit **
   7  Prefactor     17.794        333.89        .94886E-04    .17972E-06
   8  norm          .10000E-03    8.7994        .17563E-02** at limit **
   9  Prefactor     .10000E-03    1.5825        .74854E-03** at limit **
  10  Prefactor     .10000E-03    23.824        .18142E-02** at limit **
  11  Prefactor     6.8765        7.6553        .76501E-03   -.86386E-04
  12  Prefactor     .10000E-03    54.112        .18142E-02** at limit **
  13  Prefactor     .24248        98.034        .38954E-02    .30054E-03
  14  Prefactor     .10000E-03    38.830        .18142E-02** at limit **
  15  Prefactor     .10000E-03    3.7984        .11603E-02** at limit **
  16  Prefactor     .10000E-03    56.233        .18142E-02** at limit **
  17  Prefactor     .10000E-03    7.4145        .16223E-02** at limit **
  18  norm          6.1031        15.599        .16249E-03    .31134E-04
  19  norm          1.4380        5.3538        .25587E-03    .80022E-04
  20  norm          4.7941        9.7691        .18346E-03    .69402E-03
  21  Prefactor     .10000E-03    5.7168        .14183E-02** at limit **
  22  Prefactor     .12633E-03    68.351        .11066    ** at limit **
  23  norm          .10000E-03    4.3285        .12300E-02** at limit **
  24  Prefactor     3.5339        18.275        .21496E-03    .86868E-04
  25  norm          .14459        2.2774        .12072E-02    .41151E-03
  26  norm          1.0150        4.2628        .23887E-03    .11582E-03
  27  Prefactor     15.661        23.434        .10122E-03   -.98839E-04
  28  Prefactor     7.9958        4.8969        .99060E-04   -.81770E-04
  29  Prefactor     .10000E-03    26.322        .18142E-02** at limit **
  30  norm          .10000E-03    16.429        .18142E-02** at limit **
  31  Prefactor     .10005E-03    20.131        .31373E-02** at limit **
  32  Prefactor     .10000E-03    3.3339        .10803E-02** at limit **
  33  Normalizat    .77940        .25924        .24492E-03    .27363E-03
  34  Prefactor     1.0467        .26783        .22864E-03    .30888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.57752
  Prefactor  = 22.4085
  Prefactor  = 0.0001
  Prefactor  = 19.2805
  Prefactor  = 0.0001
  Prefactor  = 17.7941
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.87655
  Prefactor  = 0.0001
  Prefactor  = 0.242481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.10313
  norm       = 1.43803
  norm       = 4.7941
  Prefactor  = 0.0001
  Prefactor  = 0.000126334
  norm       = 0.0001
  Prefactor  = 3.53393
  norm       = 0.144585
  norm       = 1.01503
  Prefactor  = 15.6614
  Prefactor  = 7.99581
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Normalizat = 0.779396
  Prefactor  = 1.04669
 **********
 **   18 **HESSE 
 **********

 FCN=   3726.852     FROM HESSE     STATUS=OK           714 CALLS     7060 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5775        18.009        .42725E-04   -1.5330    
   3  Prefactor     22.408        30.910        .16928E-04   -1.4761    
   4  Prefactor     .10000E-03    7.6130        .32812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.280        11.721        .36485E-05   -1.4829    
   6  Prefactor     .10000E-03    2.8009        .19948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.794        336.00        .37955E-05   -1.4864    
   8  norm          .10000E-03    8.8039        .35126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5825        .14971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8765        7.6521        .30601E-04   -1.5183    
  12  Prefactor     .10000E-03    54.120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .24248        99.712        .15582E-03   -1.5609    
  14  Prefactor     .10000E-03    38.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7985        .23206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4148        .32446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.1031        15.597        .64997E-05   -1.5214    
  19  norm          1.4380        5.3232        .10235E-04   -1.5468    
  20  norm          4.7941        9.7514        .73384E-05   -1.5270    
  21  Prefactor     .10000E-03    5.7175        .28366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12633E-03    65.878        .11301       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.3290        .24600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5339        18.185        .85983E-05   -1.5332    
  25  norm          .14459        2.2311        .48287E-04   -1.5632    
  26  norm          1.0150        4.2601        .95546E-05   -1.5506    
  27  Prefactor     15.661        23.420        .40488E-05   -1.4916    
  28  Prefactor     7.9958        4.8883        .39624E-05   -1.5142    
  29  Prefactor     .10000E-03    26.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    16.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10005E-03    20.269        .62746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.3345        .21606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .77940        .25892        .48983E-04   -1.0084    
  34  Prefactor     1.0467        .26809        .45729E-04   -.91189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45445e-09
Minuit parameter uncertainties:
  1  7.06355e-05
  2  16.0609
  3  30.9317
  4  9.67391e-06
  5  11.7222
  6  5.62401e-07
  7  155.666
  8  8.12515e-06
  9  2.99434e-06
  10  0.000146883
  11  7.65323
  12  2.80365e-05
  13  9.84879
  14  0.000207449
  15  1.94025e-06
  16  0.000184272
  17  4.71726e-06
  18  15.6075
  19  5.3249
  20  9.75458
  21  3.6248e-07
  22  0.0833943
  23  1.07135e-05
  24  16.0406
  25  1.13558
  26  4.15921
  27  23.434
  28  4.88857
  29  0.00023948
  30  4.2394e-05
  31  0.00198779
  32  1.1591e-05
  33  0.259328
  34  0.268437
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.438e+00  5.325e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.047e+00  2.684e-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:  7.794e-01  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 3.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806617/likelihoodResults_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.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) = 3726.48749952
delta logL = 0.364850599516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3726.4855252
delta logL = 0.366824916678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78746       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8716       1.0000          .0000       5.0000    
     3 'Normalizat'    .77266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   3726.486     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78634        37.194        .18664E-01    .51269E-03
   2  alpha         2.8733        3.9091        .27027        .51347E-04
   3  Normalizat    .77238        .43876E-01    .43252E-01    .13293E-04
   4  Prefactor     1.0453        .46228E-01    .40215E-01   -.75714E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.78634
  alpha      = 2.87327
  Normalizat = 0.772381
  Prefactor  = 1.04531
 **********
 **   18 **HESSE 
 **********

 FCN=   3726.486     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78634        7.2805        .89803E-03   -1.5531    
   2  alpha         2.8733        3.7622        .14201E-01    .14987    
   3  Normalizat    .77238        .24371        .24580E-03   -1.0110    
   4  Prefactor     1.0453        .26010        .22856E-03   -.91234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11112e-10
Minuit parameter uncertainties:
  1  4.78584
  2  2.93175
  3  0.244054
  4  0.260413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806617': 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) = 3726.48552288
delta logL = 0.366827235936

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  7.863e-01  4.786e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.873e+00  2.932e+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:  1.045e+00  2.604e-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:  7.724e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/806617/cmap_HighResolution_618796801_619056001_4FGL_J2322.8-4916_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-05', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2021-09-29 14:35:04.060633', job_id='806617', GAL2='1.05', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1632951304.06', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.67e-01', ts2='0.84', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1464' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:35:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 806617: <4FGL_J2322.8-4916_daily_bin1464> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1464> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:24 2021
Job was executed on host(s) <bullet0072>, 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:35:04 2021
Results reported at Wed Sep 29 14:35:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1464 350.708 -49.2725 618796801 619056001 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 :                                   764.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

