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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1505
RA = 350.708, Dec = -49.2725
tmin = 629424001, tmax = 629683201
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='806687', job_status='RUN', time_executed='2021-09-29 14:21:07.027950', time_epoch_executed='1632950467.03' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806687/ft1_4FGL_J2322.8-4916_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806687/ft2_4FGL_J2322.8-4916_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806687/ft1_4FGL_J2322.8-4916_daily_bin1505.fits outfile=/scratch/kocevski/806687/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1505.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=629424001.0 tmax=629683201.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.58
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806687/ft2_4FGL_J2322.8-4916_daily_bin1505.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/806687/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1505.fits evtable="EVENTS" outfile="/scratch/kocevski/806687/ft1_filtered_4FGL_J2322.8-4916_daily_bin1505.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806687/ft1_filtered_4FGL_J2322.8-4916_daily_bin1505.fits" evtable="EVENTS" scfile=/scratch/kocevski/806687/ft2_4FGL_J2322.8-4916_daily_bin1505.fits sctable="SC_DATA" outfile=/scratch/kocevski/806687/ltcube_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.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/806687/ft2_4FGL_J2322.8-4916_daily_bin1505.fits
.....................!
real 12.27
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806687/ft1_filtered_4FGL_J2322.8-4916_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/806687/ft2_4FGL_J2322.8-4916_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/806687/ltcube_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.fits outfile=/scratch/kocevski/806687/expmap_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.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/806687/ltcube_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.fits
.....................!
real 191.09
user 185.26
sys 5.39

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/806687/ft1_filtered_4FGL_J2322.8-4916_daily_bin1505.fits scfile=/scratch/kocevski/806687/ft2_4FGL_J2322.8-4916_daily_bin1505.fits outfile=/scratch/kocevski/806687/cmap_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806687/ft1_filtered_4FGL_J2322.8-4916_daily_bin1505.fits scfile=/scratch/kocevski/806687/ft2_4FGL_J2322.8-4916_daily_bin1505.fits outfile=/scratch/kocevski/806687/cmap_HighResolution_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    98.336       1.0000         .10000E-03   10000.    
     8 'norm      '    4.7143       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .86983       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-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 '    .25601E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.015       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.206       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3610       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9780       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8015       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.933       1.0000         .10000E-03   10000.    
    25 'norm      '    .25470       1.0000         .10000E-03   10000.    
    26 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4744       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.4559       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1355       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .56173       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=   5755.371     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4802 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.476       -.48768E-05** at limit **
   2  Prefactor     12.830        16.897        .91944E-07    .86146E-05
   3  Prefactor     .10000E-03    17.106        .37829E-05** at limit **
   4  Prefactor     .10000E-03    4.1698        .11668E-05** at limit **
   5  Prefactor     9.5971        7.3151        .10812E-07   -.74775E-05
   6  Prefactor     .10000E-03    3.4768        .22448E-07** at limit **
   7  Prefactor     98.338        137.66        .20802E-05    .44745E-04
   8  norm          4.7134        5.9390        .75765E-07   -.50723E-03
   9  Prefactor     .10000E-03    1.5601        .21963E-07** at limit **
  10  Prefactor     .10000E-03    16.017       -.97534E-06** at limit **
  11  Prefactor     .87694        3.5749       -.23931E-05    .54139E-03
  12  Prefactor     .10000E-03    8.2479        .79266E-05** at limit **
  13  Prefactor     .10000E-03    9.8793       -.51446E-05** at limit **
  14  Prefactor     .10000E-03    25.817       -.75499E-06** at limit **
  15  Prefactor     .10000E-03    3.3639       -.24233E-06** at limit **
  16  Prefactor     10.018        27.305        .38804E-05    .60851E-04
  17  Prefactor     .10000E-03    3.2657       -.87787E-07** at limit **
  18  norm          19.206        11.854        .73253E-07    .19901E-04
  19  norm          .10000E-03    1.8716       -.16553E-07** at limit **
  20  norm          5.3611        4.1328        .12545E-07    .87923E-05
  21  Prefactor     3.9783        4.0147        .29160E-06    .10061E-03
  22  Prefactor     .10000E-03    17.011        .36941E-05** at limit **
  23  norm          2.8018        2.4064       -.27132E-07    .52226E-04
  24  Prefactor     23.928        14.162       -.59872E-06    .69484E-04
  25  norm          .25477        .70108       -.18910E-07   -.27824E-04
  26  norm          .10000E-03    2.3177       -.30988E-06** at limit **
  27  Prefactor     2.4733        6.4243        .46387E-06   -.12104E-02
  28  Prefactor     .10000E-03    1.2232       -.21593E-06** at limit **
  29  Prefactor     .10000E-03    5.4403       -.18653E-05** at limit **
  30  norm          .10000E-03    9.8164       -.34098E-05** at limit **
  31  Prefactor     3.4548        3.8501        .51190E-06   -.22593E-02
  32  Prefactor     .10001E-03    2.1073       -.35937E-06** at limit **
  33  Normalizat    1.1354        .16069        .17661E-06    .47991E-03
  34  Prefactor     .56187        .16329       -.24992E-06    .31170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.8304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.59713
  Prefactor  = 0.0001
  Prefactor  = 98.3381
  norm       = 4.71344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.876941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 10.0182
  Prefactor  = 0.0001
  norm       = 19.2059
  norm       = 0.0001
  norm       = 5.36115
  Prefactor  = 3.97829
  Prefactor  = 0.0001
  norm       = 2.80183
  Prefactor  = 23.9284
  norm       = 0.254766
  norm       = 0.0001
  Prefactor  = 2.47333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.45484
  Prefactor  = 0.000100006
  Normalizat = 1.13539
  Prefactor  = 0.561875
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.371     FROM HESSE     STATUS=OK           736 CALLS     5538 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.830        16.528        .55909E-03   -1.4991    
   3  Prefactor     .10000E-03    17.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1978        .15129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5971        7.3086        .12936E-03   -1.5088    
   6  Prefactor     .10000E-03    3.4984        .13812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     98.338        136.98        .40537E-04   -1.3721    
   8  norm          4.7134        6.0279        .92665E-03   -1.5274    
   9  Prefactor     .10000E-03    1.5872        .92486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .87694        5.7979        .25842E-02   -1.5521    
  12  Prefactor     .10000E-03    8.3956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.776        .26802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.018        27.256        .12662E-03   -1.5075    
  17  Prefactor     .10000E-03    3.2680        .13388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.206        11.856        .91391E-04   -1.4831    
  19  norm          .10000E-03    1.8751        .10133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3611        4.1396        .12987E-03   -1.5245    
  21  Prefactor     3.9783        4.0083        .14205E-03   -1.5309    
  22  Prefactor     .10000E-03    17.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8018        2.4031        .10385E-03   -1.5373    
  24  Prefactor     23.928        14.083        .81881E-04   -1.4729    
  25  norm          .25477        .84749        .97107E-03   -1.5607    
  26  norm          .10000E-03    4.3722        .22207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.4733        8.2041        .12996E-02   -1.5393    
  28  Prefactor     .10000E-03    1.2389        .81831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.4522        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    9.8499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.4548        4.7728        .91200E-03   -1.5336    
  32  Prefactor     .10001E-03    9.5956        .20375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1354        .18995        .19272E-03   -.88623    
  34  Prefactor     .56187        .19166        .28007E-03   -1.0922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9117e-08
Minuit parameter uncertainties:
  1  8.87291e-05
  2  16.5336
  3  5.31716e-05
  4  5.70422e-06
  5  7.30928
  6  5.19284e-07
  7  137.427
  8  6.02863
  9  4.27495e-06
  10  1.0997e-05
  11  4.51012
  12  9.73586e-05
  13  6.54138e-06
  14  1.10406e-05
  15  0.000595783
  16  27.2896
  17  1.82179e-07
  18  11.857
  19  1.71899e-07
  20  4.13982
  21  4.00857
  22  5.55781e-05
  23  2.40317
  24  14.085
  25  0.847529
  26  6.07178e-05
  27  8.2078
  28  1.1483e-06
  29  1.41322e-05
  30  4.13596e-05
  31  4.77331
  32  0.000464485
  33  0.190061
  34  0.191885
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.719e-07  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.619e-01  1.919e-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.135e+00  1.901e-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: 1.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806687/likelihoodResults_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.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) = 5755.3728591
delta logL = -0.00230174469925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5755.3705574
delta logL = -4.5156411943e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6082       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56185       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=   5755.371     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      237 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.046        .10139E-02** at limit **
   2  alpha         1.4872        2.9127        .18031        .12547E-07
   3  Normalizat    1.1354        .17736        .19272E-03    .21354E-04
   4  Prefactor     .56187        .18749        .28007E-03    .14613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48725
  Normalizat = 1.13539
  Prefactor  = 0.561875
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.371     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8933        .20279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4872        3.1984        .72126E-02   -.41709    
   3  Normalizat    1.1354        .17754        .77090E-05   -.88623    
   4  Prefactor     .56187        .18768        .11203E-04   -1.0922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44073e-11
Minuit parameter uncertainties:
  1  1.38717e-05
  2  174.357
  3  0.17763
  4  0.187885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806687': 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) = 5755.3705571
delta logL = 2.55455233855e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.387e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.487e+00  1.744e+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.619e-01  1.879e-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.135e+00  1.776e-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/806687/cmap_HighResolution_629424001_629683201_4FGL_J2322.8-4916_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', job_status='DONE', photon_flux_upper_limit='1.57e-08', time_completed='2021-09-29 14:36:27.976237', job_id='806687', GAL2='0.56', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632951387.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1505' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 806687: <4FGL_J2322.8-4916_daily_bin1505> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1505> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:29 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:31 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:31 2021
Terminated at Wed Sep 29 14:36:28 2021
Results reported at Wed Sep 29 14:36:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1505 350.708 -49.2725 629424001 629683201 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 :                                   915.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

