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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1403
RA = 350.708, Dec = -49.2725
tmin = 602985601, tmax = 603244801
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='805522', job_status='RUN', time_executed='2021-09-29 14:19:55.369747', time_epoch_executed='1632950395.37' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805522

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805522/ft1_4FGL_J2322.8-4916_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805522/ft2_4FGL_J2322.8-4916_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805522/ft1_4FGL_J2322.8-4916_daily_bin1403.fits outfile=/scratch/kocevski/805522/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1403.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=602985601.0 tmax=603244801.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.03
user 2.84
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805522/ft1_filtered_4FGL_J2322.8-4916_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/805522/ft2_4FGL_J2322.8-4916_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/805522/ltcube_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.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/805522/ft2_4FGL_J2322.8-4916_daily_bin1403.fits
.....................!
real 12.30
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805522/ft1_filtered_4FGL_J2322.8-4916_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/805522/ft2_4FGL_J2322.8-4916_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/805522/ltcube_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.fits outfile=/scratch/kocevski/805522/expmap_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.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/805522/ltcube_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.fits
.....................!
real 190.48
user 185.39
sys 4.77

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/805522/ft1_filtered_4FGL_J2322.8-4916_daily_bin1403.fits scfile=/scratch/kocevski/805522/ft2_4FGL_J2322.8-4916_daily_bin1403.fits outfile=/scratch/kocevski/805522/cmap_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.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/805522/ft1_filtered_4FGL_J2322.8-4916_daily_bin1403.fits scfile=/scratch/kocevski/805522/ft2_4FGL_J2322.8-4916_daily_bin1403.fits outfile=/scratch/kocevski/805522/cmap_HighResolution_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805522/ft1_filtered_4FGL_J2322.8-4916_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/805522/ft2_4FGL_J2322.8-4916_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805522/Model_4FGL_J2322.8-4916_daily_bin1403.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/805522/ft1_filtered_4FGL_J2322.8-4916_daily_bin1403.fits.....................!
real 28.65
user 27.40
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.722       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15204E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9312       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.207       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.759       1.0000         .10000E-03   10000.    
    23 'norm      '    12.215       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9659       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.543       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7125       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.4879       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4862       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .49144       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=   3023.378     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     5731 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.443        .68114E-07** at limit **
   2  Prefactor     .10000E-03    17.440        .78214E-07** at limit **
   3  Prefactor     .10000E-03    22.143       -.50358E-08** at limit **
   4  Prefactor     .10000E-03    4.7623        .10616E-06** at limit **
   5  Prefactor     .10000E-03    5.4864        .11675E-06** at limit **
   6  Prefactor     10.722        7.7104        .16289E-06   -.82829E-05
   7  Prefactor    10000.0        1390.2        .81168E-05** at limit **
   8  norm          .10000E-03    19.976       -.78261E-07** at limit **
   9  Prefactor     2.3018        32.572        .21440E-04   -.13895E-04
  10  Prefactor     .10034E-03    1799.2       -.25004E-04** at limit **
  11  Prefactor     .10000E-03    26.482       -.40762E-06** at limit **
  12  Prefactor     .10000E-03    142.79        .11101E-07** at limit **
  13  Prefactor     .10000E-03    61.089        .23304E-06** at limit **
  14  Prefactor     .10000E-03    111.08        .39224E-06** at limit **
  15  Prefactor     .10000E-03    17.691       -.57789E-06** at limit **
  16  Prefactor     .10000E-03    50.246       -.10498E-06** at limit **
  17  Prefactor     6.9295        25.768        .54198E-05   -.62198E-05
  18  norm          .10000E-03    8.3120        .37570E-09** at limit **
  19  norm          .10000E-03    4.8159       -.21521E-07** at limit **
  20  norm          .10000E-03    3.6512        .53269E-07** at limit **
  21  Prefactor     18.208        12.310       -.19889E-06   -.19438E-04
  22  Prefactor     45.769        59.733        .31627E-06    .73945E-06
  23  norm          12.215        8.3727        .95214E-07   -.15520E-04
  24  Prefactor     .10000E-03    21.552       -.43731E-07** at limit **
  25  norm          2.9660        1.9439       -.64556E-07   -.55840E-04
  26  norm          .10000E-03    2.2994        .61911E-07** at limit **
  27  Prefactor     14.537        22.393        .10294E-05   -.60383E-05
  28  Prefactor     6.7121        4.8770        .70802E-07   -.30188E-04
  29  Prefactor     .10000E-03    52.890       -.72933E-06** at limit **
  30  norm          .10000E-03    8.5440        .11836E-07** at limit **
  31  Prefactor     .10000E-03    9.8668        .29084E-07** at limit **
  32  Prefactor     3.4881        6.5480        .98034E-06    .58861E-05
  33  Normalizat    1.4862        .30169       -.15768E-05   -.34521E-04
  34  Prefactor     .49137        .29699       -.29119E-05   -.54656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.722
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 2.3018
  Prefactor  = 0.000100341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.92947
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2075
  Prefactor  = 45.7691
  norm       = 12.2149
  Prefactor  = 0.0001
  norm       = 2.96604
  norm       = 0.0001
  Prefactor  = 14.5374
  Prefactor  = 6.7121
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.48811
  Normalizat = 1.48625
  Prefactor  = 0.49137
 **********
 **   18 **HESSE 
 **********

 FCN=   3023.378     FROM HESSE     STATUS=OK           720 CALLS     6451 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7939        .11719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5282        .12577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.722        7.7160        .12236E-03   -1.5053    
   7  Prefactor    10000.0        1396.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3018        32.596        .13521E-02   -1.5405    
  10  Prefactor     .10034E-03    1826.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    143.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    61.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    111.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9295        25.756        .76194E-03   -1.5181    
  18  norm          .10000E-03    8.3135        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.8178        .11784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6518        .10260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.208        12.309        .93865E-04   -1.4854    
  22  Prefactor     45.769        59.888        .59271E-04   -1.4354    
  23  norm          12.215        8.3769        .11462E-03   -1.5009    
  24  Prefactor     .10000E-03    21.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9660        1.9394        .57474E-04   -1.5364    
  26  norm          .10000E-03    2.3029        .81408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.537        22.714        .10503E-03   -1.4945    
  28  Prefactor     6.7121        4.8741        .97428E-04   -1.5190    
  29  Prefactor     .10000E-03    53.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    8.5448        .15699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    10.237        .33630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.4881        6.5829        .17833E-03   -1.5334    
  33  Normalizat    1.4862        .36561        .21597E-03   -.78165    
  34  Prefactor     .49137        .35163        .37088E-03   -1.1237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46652e-10
Minuit parameter uncertainties:
  1  2.84514e-05
  2  3.04228e-05
  3  5.17533e-06
  4  1.21614e-05
  5  1.67562e-05
  6  7.71669
  7  0.0308063
  8  3.59938e-05
  9  17.335
  10  0.0515422
  11  9.21572e-05
  12  4.40184e-06
  13  9.06069e-05
  14  0.00039902
  15  3.30437e-05
  16  7.1705e-05
  17  25.7976
  18  1.69701e-06
  19  2.64414e-06
  20  7.42466e-07
  21  12.3104
  22  59.9665
  23  8.37766
  24  4.26969e-06
  25  1.93946
  26  2.18113e-06
  27  22.727
  28  4.87434
  29  7.2674e-05
  30  7.24053e-06
  31  5.97213e-05
  32  6.58423
  33  0.366259
  34  0.353202
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  2.644e-06  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.914e-01  3.532e-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.486e+00  3.663e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805522/likelihoodResults_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.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) = 3023.37878
delta logL = -0.000722062572095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3023.37805794
delta logL = -2.29101715377e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6146       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49135       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=   3023.378     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      248 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    621.44        .11790E-02** at limit **
   2  alpha         1.9143        2.9604        .50000       -.20236E-08
   3  Normalizat    1.4862        .88389E-01    .21597E-03    .13344E-04
   4  Prefactor     .49137        .92285E-01    .37088E-03   -.47972E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91426
  Normalizat = 1.48625
  Prefactor  = 0.491371
 **********
 **   18 **HESSE 
 **********

 FCN=   3023.378     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3098        .23580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9143        2.9262        .50000       -.23649    
   3  Normalizat    1.4862        .33312        .86387E-05   -.78166    
   4  Prefactor     .49137        .34690        .14835E-04   -1.1237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05141e-12
Minuit parameter uncertainties:
  1  3.93165e-06
  2  411.476
  3  0.333613
  4  0.348406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805522': 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) = 3023.37805772
delta logL = 2.1654250304e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  3.932e-06  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.914e+00  4.115e+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.914e-01  3.484e-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.486e+00  3.336e-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/805522/cmap_HighResolution_602985601_603244801_4FGL_J2322.8-4916_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-05', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2021-09-29 14:31:27.858202', job_id='805522', GAL2='0.49', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632951087.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='2.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1403' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 805522: <4FGL_J2322.8-4916_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1403 350.708 -49.2725 602985601 603244801 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

