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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin971
RA = 350.708, Dec = -49.2725
tmin = 491011201, tmax = 491270401
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='802571', job_status='RUN', time_executed='2021-09-29 14:12:58.183670', time_epoch_executed='1632949978.18' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802571/ft1_4FGL_J2322.8-4916_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802571/ft2_4FGL_J2322.8-4916_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802571/ft1_4FGL_J2322.8-4916_daily_bin971.fits outfile=/scratch/kocevski/802571/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin971.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=491011201.0 tmax=491270401.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.72
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/802571/ft2_4FGL_J2322.8-4916_daily_bin971.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/802571/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin971.fits evtable="EVENTS" outfile="/scratch/kocevski/802571/ft1_filtered_4FGL_J2322.8-4916_daily_bin971.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802571/ft1_filtered_4FGL_J2322.8-4916_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/802571/ft2_4FGL_J2322.8-4916_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/802571/ltcube_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.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/802571/ft2_4FGL_J2322.8-4916_daily_bin971.fits
.....................!
real 11.72
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802571/ft1_filtered_4FGL_J2322.8-4916_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/802571/ft2_4FGL_J2322.8-4916_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/802571/ltcube_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.fits outfile=/scratch/kocevski/802571/expmap_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.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/802571/ltcube_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.fits
.....................!
real 193.07
user 187.25
sys 5.43

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/802571/ft1_filtered_4FGL_J2322.8-4916_daily_bin971.fits scfile=/scratch/kocevski/802571/ft2_4FGL_J2322.8-4916_daily_bin971.fits outfile=/scratch/kocevski/802571/cmap_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802571/ft1_filtered_4FGL_J2322.8-4916_daily_bin971.fits scfile=/scratch/kocevski/802571/ft2_4FGL_J2322.8-4916_daily_bin971.fits outfile=/scratch/kocevski/802571/cmap_HighResolution_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/802571/ft1_filtered_4FGL_J2322.8-4916_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/802571/ft2_4FGL_J2322.8-4916_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802571/Model_4FGL_J2322.8-4916_daily_bin971.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/802571/ft1_filtered_4FGL_J2322.8-4916_daily_bin971.fits.....................!
real 35.02
user 33.58
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.337       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91418E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56413E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    76.745       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9572       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.437       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3780       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.216       1.0000         .10000E-03   10000.    
    23 'norm      '    13.750       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .30371       1.0000         .10000E-03   10000.    
    26 'norm      '    .12175E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.8569       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.8432       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.6805       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .54242       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=   4149.780     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     6109 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.743        .14664E-05** at limit **
   2  Prefactor     17.337        18.967        .47382E-07    .19601E-04
   3  Prefactor     10.086        38.901       -.11675E-05   -.17148E-04
   4  Prefactor     .10087E-03    9.2679       -.13198E-05** at limit **
   5  Prefactor     .10000E-03    5.3067       -.31048E-06** at limit **
   6  Prefactor     .10000E-03    2.7781        .43311E-07** at limit **
   7  Prefactor     76.759        159.62       -.56588E-06    .75860E-07
   8  norm          .10000E-03    3.6643        .86426E-07** at limit **
   9  Prefactor     5.9582        5.4220       -.15150E-06    .12389E-03
  10  Prefactor     .10000E-03    49.500       -.94293E-06** at limit **
  11  Prefactor     4.0431        4.2231       -.22956E-07    .25995E-05
  12  Prefactor     .10000E-03    8.1818        .26440E-06** at limit **
  13  Prefactor     .10000E-03    5.4305        .43354E-07** at limit **
  14  Prefactor     .10000E-03    28.964       -.80247E-06** at limit **
  15  Prefactor     1.8756        8.6132        .86080E-05   -.74989E-04
  16  Prefactor     .10000E-03    9.3697        .39057E-06** at limit **
  17  Prefactor     12.440        16.047        .15607E-06    .83504E-04
  18  norm          .10000E-03    4.8330       -.23981E-07** at limit **
  19  norm          .10000E-03    4.6206        .62962E-08** at limit **
  20  norm          5.3793        8.4263        .75503E-06    .16577E-04
  21  Prefactor     .10000E-03    4.4329       -.43574E-07** at limit **
  22  Prefactor     23.186        69.637        .33247E-05    .18296E-03
  23  norm          13.749        9.8321       -.55938E-07    .91258E-03
  24  Prefactor     .10000E-03    15.202       -.59544E-06** at limit **
  25  norm          .30429        1.1650        .17828E-06    .32527E-04
  26  norm          .10002E-03    3.7050        .68808E-06** at limit **
  27  Prefactor     .10000E-03    8.8137       -.50305E-06** at limit **
  28  Prefactor     6.8570        5.5672       -.14747E-06   -.43957E-04
  29  Prefactor     6.8451        27.083        .72713E-06    .27305E-04
  30  norm          .10000E-03    18.239        .33182E-06** at limit **
  31  Prefactor     1.6792        7.9533        .61825E-06    .46838E-04
  32  Prefactor     .10000E-03    2.8896       -.11230E-06** at limit **
  33  Normalizat    1.2815        .22561        .17281E-05    .58389E-03
  34  Prefactor     .54253        .21857       -.33980E-05    .20973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.3366
  Prefactor  = 10.0857
  Prefactor  = 0.000100871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.7595
  norm       = 0.0001
  Prefactor  = 5.95821
  Prefactor  = 0.0001
  Prefactor  = 4.04314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87555
  Prefactor  = 0.0001
  Prefactor  = 12.4402
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.3793
  Prefactor  = 0.0001
  Prefactor  = 23.1861
  norm       = 13.7486
  Prefactor  = 0.0001
  norm       = 0.304293
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 6.85705
  Prefactor  = 6.84507
  norm       = 0.0001
  Prefactor  = 1.6792
  Prefactor  = 0.0001
  Normalizat = 1.28154
  Prefactor  = 0.542526
 **********
 **   18 **HESSE 
 **********

 FCN=   4149.780     FROM HESSE     STATUS=OK           736 CALLS     6845 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.337        18.967        .96191E-04   -1.4875    
   3  Prefactor     10.086        38.766        .12608E-03   -1.5073    
   4  Prefactor     .10087E-03    17.244        .59236E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.489        .28765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7830        .10486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     76.759        159.69        .45837E-04   -1.3953    
   8  norm          .10000E-03    3.6702        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9582        5.4217        .13618E-03   -1.5220    
  10  Prefactor     .10000E-03    49.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0431        4.2235        .13097E-03   -1.5306    
  12  Prefactor     .10000E-03    8.1915        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4872        .14661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8756        8.7346        .15208E-02   -1.5434    
  16  Prefactor     .10000E-03    9.3633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.440        15.831        .11359E-03   -1.5002    
  18  norm          .10000E-03    4.8344        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6293        .13496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3793        8.4313        .86645E-03   -1.5244    
  21  Prefactor     .10000E-03    4.4610        .13231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.186        69.797        .83133E-04   -1.4745    
  23  norm          13.749        9.7379        .10802E-03   -1.4966    
  24  Prefactor     .10000E-03    15.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .30429        1.1463        .12229E-03   -1.5598    
  26  norm          .10002E-03    36.697        .22549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.8196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.8570        5.4593        .11092E-03   -1.5184    
  29  Prefactor     6.8451        26.909        .15337E-03   -1.5185    
  30  norm          .10000E-03    18.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.6792        7.6503        .30858E-03   -1.5449    
  32  Prefactor     .10000E-03    2.9121        .10690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2815        .26587        .20716E-03   -.84119    
  34  Prefactor     .54253        .25117        .31016E-03   -1.1006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5906e-09
Minuit parameter uncertainties:
  1  0.00014825
  2  18.9734
  3  38.8633
  4  0.00775409
  5  2.76963e-05
  6  4.65368e-06
  7  160.593
  8  1.21324e-05
  9  5.42211
  10  8.38314e-05
  11  4.22386
  12  5.30571e-06
  13  9.19575e-06
  14  6.17536e-05
  15  8.09671
  16  1.55283e-05
  17  15.836
  18  1.08335e-05
  19  8.95124e-06
  20  8.43317
  21  1.1037e-05
  22  70.0441
  23  9.739
  24  7.4314e-05
  25  1.14643
  26  0.00166914
  27  2.97858e-05
  28  5.45973
  29  26.9567
  30  6.42593e-05
  31  7.16969
  32  1.50823e-05
  33  0.266148
  34  0.251687
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  8.951e-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:  5.425e-01  2.517e-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.282e+00  2.661e-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: 2.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802571/likelihoodResults_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.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) = 4149.780895
delta logL = -0.00101560080202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4149.77987937
delta logL = 3.33729985869e-08

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.6209       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54254       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=   4149.780     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      231 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    111.74        .13538E-01** at limit **
   2  alpha         1.9775        3.7459        .17979        .85999E-08
   3  Normalizat    1.2815        .24312E-01    .20716E-03   -.81189E-04
   4  Prefactor     .54253        .24714E-01    .31016E-03   -.58170E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97754
  Normalizat = 1.28154
  Prefactor  = 0.542529
 **********
 **   18 **HESSE 
 **********

 FCN=   4149.780     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9432        .27529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9775        3.9897        .71914E-02   -.21054    
   3  Normalizat    1.2815        .24163        .41431E-04   -.84119    
   4  Prefactor     .54253        .24533        .12406E-04   -1.1006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34794e-11
Minuit parameter uncertainties:
  1  3.70385e-05
  2  317.774
  3  0.241843
  4  0.245813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802571': 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) = 4149.77987872
delta logL = 6.8507688411e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  3.704e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.978e+00  3.178e+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:  5.425e-01  2.458e-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.282e+00  2.418e-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/802571/cmap_HighResolution_491011201_491270401_4FGL_J2322.8-4916_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-05', job_status='DONE', photon_flux_upper_limit='2.94e-08', time_completed='2021-09-29 14:26:47.590038', job_id='802571', GAL2='0.54', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632950807.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='6.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='971' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 802571: <4FGL_J2322.8-4916_daily_bin971> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin971> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:10:35 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:10:36 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:10:36 2021
Terminated at Wed Sep 29 14:26:48 2021
Results reported at Wed Sep 29 14:26:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin971 350.708 -49.2725 491011201 491270401 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 :                                   815.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

