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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1645
RA = 350.708, Dec = -49.2725
tmin = 665712001, tmax = 665971201
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='630708', job_status='RUN', time_executed='2022-02-08 00:41:08.327046', time_epoch_executed='1644309668.33' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630708/ft1_4FGL_J2322.8-4916_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630708/ft2_4FGL_J2322.8-4916_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630708/ft1_4FGL_J2322.8-4916_daily_bin1645.fits outfile=/scratch/kocevski/630708/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1645.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=665712001.0 tmax=665971201.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.62
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630708/ft2_4FGL_J2322.8-4916_daily_bin1645.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/630708/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1645.fits evtable="EVENTS" outfile="/scratch/kocevski/630708/ft1_filtered_4FGL_J2322.8-4916_daily_bin1645.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.48
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630708/ft1_filtered_4FGL_J2322.8-4916_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/630708/ft2_4FGL_J2322.8-4916_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/630708/ltcube_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.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/630708/ft2_4FGL_J2322.8-4916_daily_bin1645.fits
.....................!
real 12.25
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630708/ft1_filtered_4FGL_J2322.8-4916_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/630708/ft2_4FGL_J2322.8-4916_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/630708/ltcube_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.fits outfile=/scratch/kocevski/630708/expmap_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.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/630708/ltcube_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.fits
.....................!
real 191.13
user 185.28
sys 5.53

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/630708/ft1_filtered_4FGL_J2322.8-4916_daily_bin1645.fits scfile=/scratch/kocevski/630708/ft2_4FGL_J2322.8-4916_daily_bin1645.fits outfile=/scratch/kocevski/630708/cmap_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.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/630708/ft1_filtered_4FGL_J2322.8-4916_daily_bin1645.fits scfile=/scratch/kocevski/630708/ft2_4FGL_J2322.8-4916_daily_bin1645.fits outfile=/scratch/kocevski/630708/cmap_HighResolution_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    51.023       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.926       1.0000         .10000E-03   10000.    
     8 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55503       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2937       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .63753E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.682       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12985       1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.542       1.0000         .10000E-03   10000.    
    23 'norm      '    .10680E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.333       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7012       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.636       1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .21217E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.3706       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .68266       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=   5638.100     FROM MIGRAD    STATUS=CONVERGED   1002 CALLS     4997 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.154       -.72323E-06** at limit **
   2  Prefactor     51.030        22.452       -.12145E-06   -.25757E-04
   3  Prefactor     .10000E-03    28.442        .22943E-05** at limit **
   4  Prefactor     .10008E-03    7.4531        .26620E-05** at limit **
   5  Prefactor     2.7861        5.0212        .21678E-05    .44256E-03
   6  Prefactor     .10000E-03    1.4272        .77994E-09** at limit **
   7  Prefactor     43.093        95.894       -.13963E-04   -.63584E-04
   8  norm          .10000E-03    3.5015        .61773E-07** at limit **
   9  Prefactor     .55330        3.1126        .49189E-06   -.11886E-03
  10  Prefactor     .10000E-03    43.503       -.12185E-05** at limit **
  11  Prefactor     1.2936        5.1665        .48794E-06   -.55046E-04
  12  Prefactor     .10087E-03    28.546        .15991E-05** at limit **
  13  Prefactor     7.8533        11.386        .40577E-07   -.16456E-03
  14  Prefactor     .10000E-03    42.232       -.74950E-06** at limit **
  15  Prefactor     11.683        8.0910       -.41180E-07   -.18224E-04
  16  Prefactor     .10000E-03    57.991        .12365E-05** at limit **
  17  Prefactor     .10000E-03    18.844        .74323E-06** at limit **
  18  norm          .10000E-03    5.6290       -.39220E-07** at limit **
  19  norm          .15490        6.4012        .27459E-06   -.90056E-04
  20  norm          .10000E-03    1.8057        .25786E-07** at limit **
  21  Prefactor     .10000E-03    13.107       -.70278E-07** at limit **
  22  Prefactor     20.516        27.327       -.35438E-06   -.76227E-05
  23  norm          .10000E-03    3.6793        .99903E-07** at limit **
  24  Prefactor     47.345        18.765       -.28953E-07   -.44093E-04
  25  norm          1.7000        1.3244       -.87124E-08   -.18816E-03
  26  norm          .10000E-03    2.5995       -.35716E-07** at limit **
  27  Prefactor     .10000E-03    9.6660       -.16184E-06** at limit **
  28  Prefactor     .10000E-03    2.6011       -.22499E-07** at limit **
  29  Prefactor     15.634        20.670       -.18427E-06   -.17211E-04
  30  norm          .10000E-03    17.369       -.62161E-06** at limit **
  31  Prefactor     .10017E-03    2.3199       -.14706E-07** at limit **
  32  Prefactor     6.3714        3.7839        .71299E-08   -.13117E-04
  33  Normalizat    1.0920        .17888       -.23047E-06   -.25816E-03
  34  Prefactor     .68259        .17872        .63977E-06   -.18745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.0305
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  Prefactor  = 2.78615
  Prefactor  = 0.0001
  Prefactor  = 43.0926
  norm       = 0.0001
  Prefactor  = 0.553303
  Prefactor  = 0.0001
  Prefactor  = 1.29364
  Prefactor  = 0.000100875
  Prefactor  = 7.85331
  Prefactor  = 0.0001
  Prefactor  = 11.683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.154904
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5162
  norm       = 0.0001
  Prefactor  = 47.3448
  norm       = 1.70001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6341
  norm       = 0.0001
  Prefactor  = 0.000100171
  Prefactor  = 6.37141
  Normalizat = 1.09199
  Prefactor  = 0.68259
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.100     FROM HESSE     STATUS=OK           752 CALLS     5749 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.030        22.458        .56145E-04   -1.4278    
   3  Prefactor     .10000E-03    28.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10008E-03    23.905        .34755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7861        5.0950        .11112E-02   -1.5374    
   6  Prefactor     .10000E-03    1.4282        .87606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.093        96.708        .30594E-03   -1.4394    
   8  norm          .10000E-03    3.5309        .13722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55330        5.6698        .24518E-02   -1.5559    
  10  Prefactor     .10000E-03    43.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2936        5.1126        .31228E-03   -1.5480    
  12  Prefactor     .10087E-03    35.467        .95995E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8533        11.388        .14313E-03   -1.5147    
  14  Prefactor     .10000E-03    42.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.683        8.0713        .11721E-03   -1.5024    
  16  Prefactor     .10000E-03    58.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.6444        .17399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15490        62.029        .35112E-02   -1.5629    
  20  norm          .10000E-03    1.8090        .98472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.516        27.076        .88371E-04   -1.4802    
  23  norm          .10000E-03    3.7792        .27847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     47.345        18.620        .58282E-04   -1.4331    
  25  norm          1.7000        1.3189        .67028E-04   -1.5447    
  26  norm          .10000E-03    2.6366        .11798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.7247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.6510        .23506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.634        20.581        .10129E-03   -1.4917    
  30  norm          .10000E-03    17.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10017E-03    5.7004        .36831E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.3714        3.7839        .10614E-03   -1.5203    
  33  Normalizat    1.0920        .21640        .21091E-03   -.90009    
  34  Prefactor     .68259        .21534        .27523E-03   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94761e-08
Minuit parameter uncertainties:
  1  3.39687e-05
  2  22.4622
  3  7.32895e-05
  4  0.0028283
  5  5.0958
  6  4.83754e-07
  7  97.0623
  8  5.02798e-06
  9  3.54251
  10  9.55499e-05
  11  5.11436
  12  0.0111481
  13  11.3911
  14  5.49747e-05
  15  8.07206
  16  4.10072e-05
  17  1.6368e-05
  18  3.35515e-06
  19  6.204
  20  1.29061e-06
  21  1.67261e-05
  22  27.0918
  23  7.56543e-06
  24  18.6222
  25  1.31888
  26  1.23056e-06
  27  2.06512e-05
  28  3.20706e-06
  29  20.5908
  30  3.062e-05
  31  0.00197452
  32  3.78404
  33  0.216574
  34  0.215598
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.549e-01  6.204e+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:  6.826e-01  2.156e-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.092e+00  2.166e-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: 3.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630708/likelihoodResults_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.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) = 5637.57827393
delta logL = 0.52206464499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5637.56839209
delta logL = 0.531946490622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36964       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5927       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70071       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=   5637.568     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37282        5.6683        .10338E-01    .24741E-02
   2  alpha         3.5888        3.8160        .21091        .11100E-03
   3  Normalizat    1.0527        .32228E-01    .40390E-01   -.40030E-03
   4  Prefactor     .70053        .33893E-01    .61352E-01   -.10590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.372818
  alpha      = 3.58884
  Normalizat = 1.05271
  Prefactor  = 0.700526
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.568     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37282        19.530        .46586E-04   -1.5586    
   2  alpha         3.5888        4.0618        .10913E-01    .45063    
   3  Normalizat    1.0527        .20075        .21379E-03   -.91285    
   4  Prefactor     .70053        .19451        .27138E-03   -1.0351    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11876e-09
Minuit parameter uncertainties:
  1  5.39785
  2  5.94417
  3  0.200893
  4  0.194702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630708': 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): 102
logL (Free Index) = 5637.56838942
delta logL = 0.531949157912

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  3.728e-01  5.398e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  3.589e+00  5.944e+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:  7.005e-01  1.947e-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.053e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 3.59 +/- 5.94
Photon Flux (Free Index): 4.50e-08 +/- 9.14e-08
Energy Flux (Free Index): 9.39e-06 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/630708/cmap_HighResolution_665712001_665971201_4FGL_J2322.8-4916_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-05', comment='SUCCESS', energy_flux2='9.39e-06', dlogl='5.32e-01', photon_flux2='4.50e-08', job_status='DONE', time_completed='2022-02-08 00:56:34.690886', photon_index_error2='5.94', photon_index2='3.59', ts='0.00', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='3.02e-08', energy_flux_error2='1.20e-05', EG='1.09', time_epoch_completed='1644310594.69', return_code='0', job_id='630708', GAL2='0.70', EG2='1.05', return_code2='102', photon_flux_error2='9.14e-08', ts2='1.11', photon_index='1.61' WHERE bin_id='1645' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:56:34 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 630708: <4FGL_J2322.8-4916_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1645> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Feb  8 00:40:24 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:40:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:40:26 2022
Terminated at Tue Feb  8 00:56:35 2022
Results reported at Tue Feb  8 00:56:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1645 350.708 -49.2725 665712001 665971201 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 :                                   927.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

