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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1471
RA = 350.708, Dec = -49.2725
tmin = 620611201, tmax = 620870401
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='806633', job_status='RUN', time_executed='2021-09-29 14:24:19.758468', time_epoch_executed='1632950659.76' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806633/ft1_4FGL_J2322.8-4916_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806633/ft2_4FGL_J2322.8-4916_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806633/ft1_4FGL_J2322.8-4916_daily_bin1471.fits outfile=/scratch/kocevski/806633/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1471.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=620611201.0 tmax=620870401.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.79
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806633/ft1_filtered_4FGL_J2322.8-4916_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/806633/ft2_4FGL_J2322.8-4916_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/806633/ltcube_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.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/806633/ft2_4FGL_J2322.8-4916_daily_bin1471.fits
.....................!
real 12.51
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806633/ft1_filtered_4FGL_J2322.8-4916_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/806633/ft2_4FGL_J2322.8-4916_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/806633/ltcube_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.fits outfile=/scratch/kocevski/806633/expmap_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.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/806633/ltcube_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.fits
.....................!
real 192.73
user 187.19
sys 5.16

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/806633/ft1_filtered_4FGL_J2322.8-4916_daily_bin1471.fits scfile=/scratch/kocevski/806633/ft2_4FGL_J2322.8-4916_daily_bin1471.fits outfile=/scratch/kocevski/806633/cmap_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806633/ft1_filtered_4FGL_J2322.8-4916_daily_bin1471.fits scfile=/scratch/kocevski/806633/ft2_4FGL_J2322.8-4916_daily_bin1471.fits outfile=/scratch/kocevski/806633/cmap_HighResolution_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    25.152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13739E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6188       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.774       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.553       1.0000         .10000E-03   10000.    
    22 'Prefactor '    97.063       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.246       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.1330       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.0005       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.6161       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.1094       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .58715       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=   2078.580     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     4855 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.699        .98548E-06** at limit **
   2  Prefactor     25.162        35.122       -.92293E-06    .10287E-04
   3  Prefactor     62.722        95.104        .11391E-06    .25234E-05
   4  Prefactor     .10000E-03    9.5606       -.42380E-07** at limit **
   5  Prefactor     25.121        27.164       -.80939E-06    .68237E-04
   6  Prefactor     .10000E-03    215.15       -.10219E-04** at limit **
   7  Prefactor     .10000E-03    54.429       -.70667E-06** at limit **
   8  norm          .10000E-03    5.9252        .89474E-07** at limit **
   9  Prefactor     .10000E-03    1.8428        .62907E-07** at limit **
  10  Prefactor     13.171        52.575       -.15106E-06   -.14074E-06
  11  Prefactor     7.6189        8.4067        .11486E-07   -.18152E-04
  12  Prefactor     .10000E-03    15.978        .82611E-07** at limit **
  13  Prefactor     .10000E-03    8.5146        .26596E-06** at limit **
  14  Prefactor     .10000E-03    56.082       -.68713E-06** at limit **
  15  Prefactor     .10000E-03    4.0284        .80697E-07** at limit **
  16  Prefactor     .10000E-03    46.131        .25654E-06** at limit **
  17  Prefactor     .10000E-03    12.379        .18757E-06** at limit **
  18  norm          16.772        29.652        .26403E-06   -.42819E-05
  19  norm          .10000E-03    4.8652        .80585E-08** at limit **
  20  norm          .10000E-03    4.1637       -.60821E-08** at limit **
  21  Prefactor     22.553        14.357       -.12843E-06   -.38733E-04
  22  Prefactor     97.068        61.230       -.15349E-06    .83093E-05
  23  norm          .10000E-03    7.2837       -.10884E-06** at limit **
  24  Prefactor     16.246        23.099       -.34038E-06   -.26964E-04
  25  norm          .10000E-03    1.2238        .10448E-08** at limit **
  26  norm          6.1345        9.6799       -.43389E-07   -.26075E-04
  27  Prefactor     7.0215        35.158       -.15184E-05    .43749E-05
  28  Prefactor     4.6154        6.7775       -.20557E-05   -.29923E-03
  29  Prefactor     .10000E-03    92.224        .42295E-06** at limit **
  30  norm          .10000E-03    54.438       -.30448E-05** at limit **
  31  Prefactor     1.1082        25.154        .87657E-07    .22866E-05
  32  Prefactor     .10000E-03    2.2758       -.15127E-07** at limit **
  33  Normalizat    1.0185        .30275        .24720E-05   -.97609E-04
  34  Prefactor     .58729        .29548       -.44066E-05    .41534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.1619
  Prefactor  = 62.7223
  Prefactor  = 0.0001
  Prefactor  = 25.1215
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.171
  Prefactor  = 7.61886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.7718
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5532
  Prefactor  = 97.0677
  norm       = 0.0001
  Prefactor  = 16.2464
  norm       = 0.0001
  norm       = 6.13451
  Prefactor  = 7.02153
  Prefactor  = 4.61536
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.10823
  Prefactor  = 0.0001
  Normalizat = 1.01855
  Prefactor  = 0.587286
 **********
 **   18 **HESSE 
 **********

 FCN=   2078.580     FROM HESSE     STATUS=OK           726 CALLS     5581 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.162        34.893        .79874E-04   -1.4704    
   3  Prefactor     62.722        94.936        .50697E-04   -1.4122    
   4  Prefactor     .10000E-03    9.5674        .13768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.121        27.096        .79924E-04   -1.4705    
   6  Prefactor     .10000E-03    211.06        .38483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.9421        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8467        .60438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.171        52.632        .11037E-03   -1.4982    
  11  Prefactor     7.6189        8.4063        .13211E-03   -1.5156    
  12  Prefactor     .10000E-03    15.993        .17803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5619        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0320        .89376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.400        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.772        29.655        .97793E-04   -1.4889    
  19  norm          .10000E-03    4.8658        .98223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.1661        .90854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.553        14.348        .84345E-04   -1.4758    
  22  Prefactor     97.068        61.215        .40800E-04   -1.3734    
  23  norm          .10000E-03    7.3464        .11961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.246        23.085        .99367E-04   -1.4902    
  25  norm          .10000E-03    1.2574        .98194E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.1345        9.6619        .15916E-03   -1.5213    
  27  Prefactor     7.0215        34.940        .15162E-03   -1.5178    
  28  Prefactor     4.6154        6.7551        .12748E-03   -1.5278    
  29  Prefactor     .10000E-03    92.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    54.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1082        24.766        .39236E-03   -1.5497    
  32  Prefactor     .10000E-03    2.2798        .67176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0185        .34457        .21416E-03   -.92412    
  34  Prefactor     .58729        .33142        .28357E-03   -1.0812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83924e-10
Minuit parameter uncertainties:
  1  6.86112e-05
  2  34.9213
  3  95.1665
  4  1.61202e-05
  5  27.1092
  6  0.000926261
  7  7.25955e-05
  8  5.77498e-06
  9  3.8363e-07
  10  52.7391
  11  8.40765
  12  9.97175e-06
  13  4.76663e-06
  14  7.40086e-05
  15  6.94129e-07
  16  1.77432e-05
  17  9.75348e-06
  18  29.6811
  19  1.97668e-06
  20  3.66602e-08
  21  14.3503
  22  61.2551
  23  1.45176e-07
  24  23.098
  25  1.02682e-05
  26  9.66436
  27  31.3553
  28  6.75623
  29  0.000100548
  30  0.000269493
  31  10.4824
  32  1.04685e-06
  33  0.345328
  34  0.332526
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.977e-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.873e-01  3.325e-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.019e+00  3.453e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806633/likelihoodResults_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.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) = 2078.58086463
delta logL = -0.00065655247181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2078.58020813
delta logL = -4.57303030998e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6055       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58721       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=   2078.580     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.390        .98458E-03** at limit **
   2  alpha         1.3323        3.6519        .18043       -.21045E-07
   3  Normalizat    1.0186        .31164        .21417E-03   -.19112E-03
   4  Prefactor     .58728        .32145        .28357E-03   -.13932E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.33231
  Normalizat = 1.01855
  Prefactor  = 0.587281
 **********
 **   18 **HESSE 
 **********

 FCN=   2078.580     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1038        .19692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3323        3.1654        .72172E-02   -.48598    
   3  Normalizat    1.0186        .31192        .42833E-04   -.92412    
   4  Prefactor     .58728        .32175        .11343E-04   -1.0812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35706e-10
Minuit parameter uncertainties:
  1  0.00015854
  2  280.108
  3  0.312485
  4  0.322759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806633': 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) = 2078.5802076
delta logL = 4.78793026559e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.585e-04  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.332e+00  2.801e+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.873e-01  3.228e-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.019e+00  3.125e-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/806633/cmap_HighResolution_620611201_620870401_4FGL_J2322.8-4916_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-05', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-29 14:33:21.425880', job_id='806633', GAL2='0.59', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632951201.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='4.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1471' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:33:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 806633: <4FGL_J2322.8-4916_daily_bin1471> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1471> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:24 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:20:26 2021
Terminated at Wed Sep 29 14:33:21 2021
Results reported at Wed Sep 29 14:33:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1471 350.708 -49.2725 620611201 620870401 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 :                                   534.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

