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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1287
RA = 350.708, Dec = -49.2725
tmin = 572918401, tmax = 573177601
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='805349', job_status='RUN', time_executed='2021-09-29 14:16:24.944682', time_epoch_executed='1632950184.94' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805349/ft1_4FGL_J2322.8-4916_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805349/ft2_4FGL_J2322.8-4916_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805349/ft1_4FGL_J2322.8-4916_daily_bin1287.fits outfile=/scratch/kocevski/805349/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1287.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=572918401.0 tmax=573177601.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 4.99
user 4.71
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805349/ft2_4FGL_J2322.8-4916_daily_bin1287.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/805349/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1287.fits evtable="EVENTS" outfile="/scratch/kocevski/805349/ft1_filtered_4FGL_J2322.8-4916_daily_bin1287.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805349/ft1_filtered_4FGL_J2322.8-4916_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/805349/ft2_4FGL_J2322.8-4916_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/805349/ltcube_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.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/805349/ft2_4FGL_J2322.8-4916_daily_bin1287.fits
.....................!
real 12.40
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805349/ft1_filtered_4FGL_J2322.8-4916_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/805349/ft2_4FGL_J2322.8-4916_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/805349/ltcube_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.fits outfile=/scratch/kocevski/805349/expmap_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.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/805349/ltcube_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.fits
.....................!
real 192.03
user 186.18
sys 5.14

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/805349/ft1_filtered_4FGL_J2322.8-4916_daily_bin1287.fits scfile=/scratch/kocevski/805349/ft2_4FGL_J2322.8-4916_daily_bin1287.fits outfile=/scratch/kocevski/805349/cmap_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805349/ft1_filtered_4FGL_J2322.8-4916_daily_bin1287.fits scfile=/scratch/kocevski/805349/ft2_4FGL_J2322.8-4916_daily_bin1287.fits outfile=/scratch/kocevski/805349/cmap_HighResolution_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3160       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    77.833       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5718       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5042       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.611       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.457       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5169       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0412       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.185       1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .57902E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.3907       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.351       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.1999       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.623       1.0000         .10000E-03   10000.    
    30 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1623       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .78007       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=   4238.087     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     4818 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.712        .37388E-06** at limit **
   2  Prefactor     .10000E-03    78.188        .56911E-05** at limit **
   3  Prefactor     .10000E-03    12.236        .10551E-06** at limit **
   4  Prefactor     9.5159        11.693       -.12259E-06    .56180E-06
   5  Prefactor     9.3153        7.9720       -.42454E-07    .47167E-05
   6  Prefactor     .10000E-03    3.4101        .34440E-07** at limit **
   7  Prefactor     77.834        195.43       -.10001E-05    .10836E-04
   8  norm          4.5734        7.3931        .30778E-05   -.42090E-03
   9  Prefactor     5.5026        6.2670       -.60114E-07    .70640E-05
  10  Prefactor     9.3575        60.877        .41480E-06    .14278E-04
  11  Prefactor     13.610        9.2085        .46968E-07    .89163E-04
  12  Prefactor     42.452        33.836       -.84115E-06   -.46602E-04
  13  Prefactor     7.5166        8.1883       -.29817E-07    .25107E-04
  14  Prefactor     .10000E-03    46.480       -.20568E-05** at limit **
  15  Prefactor     .10000E-03    6.3548       -.35360E-06** at limit **
  16  Prefactor     53.269        38.661       -.24962E-05   -.37518E-03
  17  Prefactor     .10000E-03    6.7193        .34308E-07** at limit **
  18  norm          .10000E-03    6.0465        .12390E-06** at limit **
  19  norm          .10000E-03    2.6494       -.12403E-06** at limit **
  20  norm          .10000E-03    3.6491       -.64410E-06** at limit **
  21  Prefactor     3.0420        5.3326        .50118E-05   -.42688E-03
  22  Prefactor     19.119        34.723       -.75214E-05   -.47263E-03
  23  norm          .10000E-03    3.8188       -.19545E-05** at limit **
  24  Prefactor     .10003E-03    9.7977       -.24464E-05** at limit **
  25  norm          2.3907        1.5328       -.14570E-06    .56424E-03
  26  norm          .10000E-03    1.3117       -.20678E-06** at limit **
  27  Prefactor     27.344        22.731       -.62560E-06   -.25767E-04
  28  Prefactor     2.1984        5.2338        .37644E-06   -.16838E-04
  29  Prefactor     13.622        32.635       -.78118E-06    .10265E-04
  30  norm          .10000E-03    7.5293       -.18608E-06** at limit **
  31  Prefactor     .10000E-03    3.1593       -.21331E-07** at limit **
  32  Prefactor     .10001E-03    3.5570        .89995E-06** at limit **
  33  Normalizat    1.1630        .22898        .34299E-05   -.60159E-04
  34  Prefactor     .77945        .22111       -.32841E-05    .20925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 9.51588
  Prefactor  = 9.3153
  Prefactor  = 0.0001
  Prefactor  = 77.8338
  norm       = 4.57335
  Prefactor  = 5.50256
  Prefactor  = 9.35749
  Prefactor  = 13.6097
  Prefactor  = 42.4519
  Prefactor  = 7.51663
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 53.2694
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.04199
  Prefactor  = 19.1192
  norm       = 0.000100001
  Prefactor  = 0.000100032
  norm       = 2.39066
  norm       = 0.0001
  Prefactor  = 27.344
  Prefactor  = 2.19841
  Prefactor  = 13.6225
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.16296
  Prefactor  = 0.77945
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.087     FROM HESSE     STATUS=OK           732 CALLS     5550 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    81.279        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5159        11.696        .12990E-03   -1.5091    
   5  Prefactor     9.3153        7.9723        .13130E-03   -1.5097    
   6  Prefactor     .10000E-03    3.4187        .11741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     77.834        195.41        .45518E-04   -1.3941    
   8  norm          4.5734        7.4185        .94131E-03   -1.5280    
   9  Prefactor     5.5026        6.2661        .15897E-03   -1.5239    
  10  Prefactor     9.3575        60.626        .13103E-03   -1.5096    
  11  Prefactor     13.610        9.2038        .10857E-03   -1.4970    
  12  Prefactor     42.452        33.858        .61523E-04   -1.4404    
  13  Prefactor     7.5166        8.1803        .14628E-03   -1.5160    
  14  Prefactor     .10000E-03    46.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3832        .16030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     53.269        39.120        .54940E-04   -1.4247    
  17  Prefactor     .10000E-03    6.7261        .16480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.0533        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6506        .10350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6577        .12131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0420        5.4493        .97960E-03   -1.5359    
  22  Prefactor     19.119        36.259        .91441E-04   -1.4833    
  23  norm          .10000E-03    3.7962        .12294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10003E-03    71.413        .38040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3907        1.5152        .59964E-04   -1.5399    
  26  norm          .10000E-03    1.3127        .72791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     27.344        22.820        .76602E-04   -1.4662    
  28  Prefactor     2.1984        5.1062        .17989E-03   -1.5411    
  29  Prefactor     13.622        31.923        .10852E-03   -1.4970    
  30  norm          .10000E-03    7.5307        .17449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.1814        .11290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10001E-03    7.1833        .23494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1630        .27469        .23158E-03   -.87755    
  34  Prefactor     .77945        .26521        .28504E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.458e-09
Minuit parameter uncertainties:
  1  8.54287e-05
  2  0.00102191
  3  3.87402e-06
  4  11.6993
  5  7.97321
  6  4.9126e-06
  7  197.057
  8  7.41996
  9  6.26686
  10  47.7068
  11  9.20472
  12  33.873
  13  8.18153
  14  0.000638979
  15  4.76699e-05
  16  39.1389
  17  1.65769e-06
  18  1.55931e-05
  19  9.83412e-06
  20  4.39397e-05
  21  5.45019
  22  36.3008
  23  0.000109546
  24  0.0030423
  25  1.51519
  26  4.99103e-06
  27  22.8276
  28  5.10716
  29  31.9634
  30  2.46852e-05
  31  1.13009e-05
  32  0.000384395
  33  0.275026
  34  0.265644
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  9.834e-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:  7.795e-01  2.656e-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.163e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 2.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805349/likelihoodResults_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.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) = 4238.0881907
delta logL = -0.00135835310357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4238.08683237
delta logL = -2.25854819291e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6055       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77942       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=   4238.087     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      241 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.774        .10373E-02** at limit **
   2  alpha         1.3736        3.0355        .18043       -.18525E-07
   3  Normalizat    1.1630        .25228        .23158E-03    .53019E-05
   4  Prefactor     .77944        .26042        .28504E-03    .43075E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.3736
  Normalizat = 1.16297
  Prefactor  = 0.779444
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.087     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7543        .20745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3736        3.0522        .72171E-02   -.46739    
   3  Normalizat    1.1630        .25256        .92632E-05   -.87755    
   4  Prefactor     .77944        .26071        .11402E-04   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44479e-10
Minuit parameter uncertainties:
  1  8.55694e-05
  2  197.742
  3  0.252821
  4  0.261122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805349': 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) = 4238.08683163
delta logL = 7.0907844929e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  8.557e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.374e+00  1.977e+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:  7.794e-01  2.611e-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.163e+00  2.528e-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/805349/cmap_HighResolution_572918401_573177601_4FGL_J2322.8-4916_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-05', job_status='DONE', photon_flux_upper_limit='2.42e-08', time_completed='2021-09-29 14:29:32.012290', job_id='805349', GAL2='0.78', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632950972.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1287' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:29:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 805349: <4FGL_J2322.8-4916_daily_bin1287> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1287> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:44 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:46 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:46 2021
Terminated at Wed Sep 29 14:29:32 2021
Results reported at Wed Sep 29 14:29:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1287 350.708 -49.2725 572918401 573177601 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 :                                   768.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

