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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1279
RA = 350.708, Dec = -49.2725
tmin = 570844801, tmax = 571104001
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='805337', job_status='RUN', time_executed='2021-09-29 14:18:16.227348', time_epoch_executed='1632950296.23' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805337

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805337/ft1_4FGL_J2322.8-4916_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805337/ft2_4FGL_J2322.8-4916_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805337/ft1_4FGL_J2322.8-4916_daily_bin1279.fits outfile=/scratch/kocevski/805337/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1279.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=570844801.0 tmax=571104001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.03
user 2.84
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805337/ft1_filtered_4FGL_J2322.8-4916_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/805337/ft2_4FGL_J2322.8-4916_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/805337/ltcube_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.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/805337/ft2_4FGL_J2322.8-4916_daily_bin1279.fits
.....................!
real 12.80
user 12.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805337/ft1_filtered_4FGL_J2322.8-4916_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/805337/ft2_4FGL_J2322.8-4916_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/805337/ltcube_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.fits outfile=/scratch/kocevski/805337/expmap_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.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/805337/ltcube_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.fits
.....................!
real 189.88
user 185.10
sys 4.45

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/805337/ft1_filtered_4FGL_J2322.8-4916_daily_bin1279.fits scfile=/scratch/kocevski/805337/ft2_4FGL_J2322.8-4916_daily_bin1279.fits outfile=/scratch/kocevski/805337/cmap_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.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/805337/ft1_filtered_4FGL_J2322.8-4916_daily_bin1279.fits scfile=/scratch/kocevski/805337/ft2_4FGL_J2322.8-4916_daily_bin1279.fits outfile=/scratch/kocevski/805337/cmap_HighResolution_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805337/ft1_filtered_4FGL_J2322.8-4916_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/805337/ft2_4FGL_J2322.8-4916_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805337/Model_4FGL_J2322.8-4916_daily_bin1279.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/805337/ft1_filtered_4FGL_J2322.8-4916_daily_bin1279.fits......................!
real 26.09
user 24.80
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18641E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.894       1.0000         .10000E-03   10000.    
     8 'norm      '    2645.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    102.59       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    95.739       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18067       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    80.882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6148       1.0000         .10000E-03   10000.    
    18 'norm      '    17.598       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3939       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10749E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.3581       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5524       1.0000         .10000E-03   10000.    
    26 'norm      '    10.324       1.0000         .10000E-03   10000.    
    27 'Prefactor '    42.120       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.487       1.0000         .10000E-03   10000.    
    30 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .60803       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1919       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2515.906     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     3966 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.300        72.622       -.33253E-06   -.87845E-04
   2  Prefactor     .10000E-03    9.4185        .17490E-06** at limit **
   3  Prefactor     .10000E-03    51.563        .82966E-06** at limit **
   4  Prefactor     .10000E-03    4.4724       -.60163E-08** at limit **
   5  Prefactor     11.988        9.9104       -.13091E-07   -.16242E-04
   6  Prefactor     .10000E-03    12.191       -.11083E-05** at limit **
   7  Prefactor    10000.0        6181.9        .25634E-05** at limit **
   8  norm          2182.9        1933.6       -.12191E-05    .88544E-05
   9  Prefactor     102.07        88.258       -.68741E-06    .46184E-04
  10  Prefactor     .10000E-03    1788.6        .19564E-05** at limit **
  11  Prefactor     84.305        104.60        .14053E-05    .71326E-04
  12  Prefactor     .10000E-03    120.18       -.23081E-05** at limit **
  13  Prefactor     .10000E-03    70.354        .11051E-05** at limit **
  14  Prefactor     .10000E-03    215.56       -.19802E-06** at limit **
  15  Prefactor     .10000E-03    10.567        .99301E-06** at limit **
  16  Prefactor     111.12        181.72       -.35964E-05    .88867E-05
  17  Prefactor     .67743        227.12        .29019E-05   -.52954E-05
  18  norm          17.558        17.679       -.43510E-06    .68895E-05
  19  norm          .10000E-03    4.7414        .49833E-06** at limit **
  20  norm          .10000E-03    3.3253       -.30448E-06** at limit **
  21  Prefactor     2.2282        8.1475        .18075E-05   -.25223E-04
  22  Prefactor     .10000E-03    32.650       -.20845E-06** at limit **
  23  norm          5.4038        7.3569        .99808E-08   -.12151E-03
  24  Prefactor     .10000E-03    24.223        .37497E-05** at limit **
  25  norm          1.5415        1.4170        .23396E-06   -.15604E-03
  26  norm          10.432        8.8769        .75647E-07   -.62494E-04
  27  Prefactor     42.205        25.898       -.20015E-06   -.25625E-04
  28  Prefactor     .10000E-03    3.5160       -.21464E-07** at limit **
  29  Prefactor     14.725        27.763        .26967E-05    .46541E-04
  30  norm          .10000E-03    11.054        .12434E-05** at limit **
  31  Prefactor     .10000E-03    1.7936       -.13264E-06** at limit **
  32  Prefactor     .10000E-03    2.9273       -.18748E-06** at limit **
  33  Normalizat    .57450        .36874       -.32540E-05   -.22145E-04
  34  Prefactor     1.2156        .39933        .31556E-05   -.14698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9879
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 2182.9
  Prefactor  = 102.069
  Prefactor  = 0.000100003
  Prefactor  = 84.3048
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.117
  Prefactor  = 0.677426
  norm       = 17.5583
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.22815
  Prefactor  = 0.0001
  norm       = 5.40382
  Prefactor  = 0.000100001
  norm       = 1.54154
  norm       = 10.4321
  Prefactor  = 42.2054
  Prefactor  = 0.0001
  Prefactor  = 14.725
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.574502
  Prefactor  = 1.21557
 **********
 **   18 **HESSE 
 **********

 FCN=   2515.906     FROM HESSE     STATUS=OK           810 CALLS     4776 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.300        76.565        .16909E-02   -1.4536    
   2  Prefactor     .10000E-03    9.6800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.988        9.9265        .29208E-02   -1.5015    
   6  Prefactor     .10000E-03    12.762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        6180.1        .16277E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2182.9        1959.8        .22672E-03   -.59852    
   9  Prefactor     102.07        86.272        .99240E-03   -1.3684    
  10  Prefactor     .10000E-03    1820.7        .11559E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     84.305        108.60        .10270E-02   -1.3869    
  12  Prefactor     .10000E-03    122.56        .10475E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    71.416        .56094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    216.99        .98890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.478        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     111.12        181.86        .11165E-02   -1.3596    
  17  Prefactor     .67743        31.425        .98119E-01   -1.5873    
  18  norm          17.558        17.647        .23868E-02   -1.4870    
  19  norm          .10000E-03    4.7691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2282        8.5572        .66170E-02   -1.5409    
  22  Prefactor     .10000E-03    32.849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.4038        7.4861        .43404E-02   -1.5243    
  24  Prefactor     .10000E-03    30.499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5415        1.5063        .85447E-02   -1.5460    
  26  norm          10.432        8.8540        .31175E-02   -1.5062    
  27  Prefactor     42.205        26.396        .15442E-02   -1.4408    
  28  Prefactor     .10000E-03    2.0340        .39450E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.725        28.257        .26308E-02   -1.4940    
  30  norm          .10000E-03    11.103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.8037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.8757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .57450        .29835        .67043E-01   -1.0908    
  34  Prefactor     1.2156        .31891        .54143E-01   -.85854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83918e-07
Minuit parameter uncertainties:
  1  76.7857
  2  6.26956e-05
  3  2.43787e-05
  4  1.42779e-05
  5  9.92783
  6  7.7562e-05
  7  0.00884105
  8  2041.95
  9  86.378
  10  0.00520672
  11  108.856
  12  0.000537847
  13  0.000222246
  14  0.000410669
  15  2.98941e-05
  16  182.784
  17  9.23235
  18  17.6521
  19  7.36834e-06
  20  4.80467e-06
  21  8.56193
  22  5.88501e-05
  23  7.48736
  24  0.000384346
  25  1.50634
  26  8.8551
  27  26.4033
  28  4.04779e-06
  29  28.2824
  30  9.90896e-07
  31  5.6425e-06
  32  5.15737e-06
  33  0.299184
  34  0.319423
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  7.368e-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:  1.216e+00  3.194e-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:  5.745e-01  2.992e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805337/likelihoodResults_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.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) = 2515.90639729
delta logL = -0.000731987720883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2515.90566532
delta logL = -1.22631718114e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6075       1.0000          .0000       5.0000    
     3 'Normalizat'    .57445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2156       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=   2515.906     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      243 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.027        .10708E-02** at limit **
   2  alpha         1.4373        3.0222        .18034        .72494E-09
   3  Normalizat    .57450        .34142        .29670E-03    .12741E-04
   4  Prefactor     1.2156        .39130        .23939E-03    .16645E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.43727
  Normalizat = 0.574503
  Prefactor  = 1.21557
 **********
 **   18 **HESSE 
 **********

 FCN=   2515.906     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8625        .21416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4373        2.5527        .72138E-02   -.43906    
   3  Normalizat    .57450        .34179        .11868E-04   -1.0908    
   4  Prefactor     1.2156        .39172        .95756E-05   -.85854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37979e-11
Minuit parameter uncertainties:
  1  5.59863e-05
  2  275.369
  3  0.343053
  4  0.392669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805337': 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) = 2515.90566511
delta logL = 1.99006990442e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  5.599e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.437e+00  2.754e+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:  1.216e+00  3.927e-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:  5.745e-01  3.431e-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/805337/cmap_HighResolution_570844801_571104001_4FGL_J2322.8-4916_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-05', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-29 14:27:41.246418', job_id='805337', GAL2='1.22', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1632950861.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1279' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:27:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 805337: <4FGL_J2322.8-4916_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1279 350.708 -49.2725 570844801 571104001 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 :                                   554.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

