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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1085
RA = 350.708, Dec = -49.2725
tmin = 520560001, tmax = 520819201
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='805053', job_status='RUN', time_executed='2021-09-29 14:16:10.586557', time_epoch_executed='1632950170.59' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805053/ft1_4FGL_J2322.8-4916_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805053/ft1_4FGL_J2322.8-4916_daily_bin1085.fits outfile=/scratch/kocevski/805053/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1085.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.27
user 4.97
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.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/805053/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/805053/ft1_filtered_4FGL_J2322.8-4916_daily_bin1085.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805053/ft1_filtered_4FGL_J2322.8-4916_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/805053/ltcube_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.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/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.fits
.....................!
real 12.66
user 12.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805053/ft1_filtered_4FGL_J2322.8-4916_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/805053/ltcube_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.fits outfile=/scratch/kocevski/805053/expmap_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.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/805053/ltcube_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.fits
.....................!
real 191.83
user 185.88
sys 5.33

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/805053/ft1_filtered_4FGL_J2322.8-4916_daily_bin1085.fits scfile=/scratch/kocevski/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.fits outfile=/scratch/kocevski/805053/cmap_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.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/805053/ft1_filtered_4FGL_J2322.8-4916_daily_bin1085.fits scfile=/scratch/kocevski/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.fits outfile=/scratch/kocevski/805053/cmap_HighResolution_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.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.60
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805053/ft1_filtered_4FGL_J2322.8-4916_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/805053/ft2_4FGL_J2322.8-4916_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805053/Model_4FGL_J2322.8-4916_daily_bin1085.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/805053/ft1_filtered_4FGL_J2322.8-4916_daily_bin1085.fits....................!
real 42.17
user 40.74
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9002       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7701       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.826       1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6990       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.090       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5008       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .26898E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9033       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.036       1.0000         .10000E-03   10000.    
    23 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .50640       1.0000         .10000E-03   10000.    
    29 'Prefactor '    38.880       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .72330       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89491       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=   5659.863     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     4924 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.337        36.538        .31676E-07    .55660E-05
   2  Prefactor     .10000E-03    20.336       -.26490E-05** at limit **
   3  Prefactor     8.9028        32.827       -.79768E-05   -.14517E-04
   4  Prefactor     .10000E-03    5.3565       -.44422E-06** at limit **
   5  Prefactor     14.100        10.281       -.51897E-06   -.71763E-05
   6  Prefactor     3.7698        6.6645       -.10338E-05   -.22150E-03
   7  Prefactor     74.626        91.082       -.19776E-03    .94754E-05
   8  norm          .10000E-03    1.4134        .13688E-06** at limit **
   9  Prefactor     .38553        2.3387       -.58555E-06   -.87859E-03
  10  Prefactor     .10000E-03    14.688       -.49023E-05** at limit **
  11  Prefactor     3.6996        4.6690        .21994E-05   -.12485E-03
  12  Prefactor     27.109        25.647        .15282E-04    .42441E-04
  13  Prefactor     .10000E-03    8.4115       -.22520E-06** at limit **
  14  Prefactor     84.075        67.403       -.10645E-04    .31542E-06
  15  Prefactor     1.5003        3.0871       -.93410E-06   -.64601E-03
  16  Prefactor     .10000E-03    17.638        .64190E-05** at limit **
  17  Prefactor     .10000E-03    17.603        .47312E-05** at limit **
  18  norm          .10000E-03    5.9870       -.86925E-06** at limit **
  19  norm          .10000E-03    1.8558        .33702E-07** at limit **
  20  norm          3.9034        3.8811        .25827E-06    .97941E-04
  21  Prefactor     .10000E-03    2.7535        .46322E-08** at limit **
  22  Prefactor     26.035        28.848       -.36898E-05    .33442E-04
  23  norm          .10000E-03    1.5469       -.74106E-07** at limit **
  24  Prefactor     .10000E-03    5.8491       -.18100E-06** at limit **
  25  norm          .10000E-03    .21834        .50196E-07** at limit **
  26  norm          .10000E-03    1.0332       -.30431E-07** at limit **
  27  Prefactor     .10000E-03    21.307       -.65906E-05** at limit **
  28  Prefactor     .50296        1.6842        .99409E-06    .24603E-03
  29  Prefactor     38.910        22.133       -.12452E-04   -.91371E-04
  30  norm          .10000E-03    5.4839       -.57110E-07** at limit **
  31  Prefactor     .10000E-03    2.0809        .12233E-06** at limit **
  32  Prefactor     .10000E-03    3.0450        .19620E-06** at limit **
  33  Normalizat    .72352        .15960        .53193E-05    .81613E-04
  34  Prefactor     .89482        .15760        .40336E-05    .14315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.337
  Prefactor  = 0.0001
  Prefactor  = 8.90276
  Prefactor  = 0.0001
  Prefactor  = 14.1001
  Prefactor  = 3.76983
  Prefactor  = 74.6256
  norm       = 0.0001
  Prefactor  = 0.385531
  Prefactor  = 0.0001
  Prefactor  = 3.69958
  Prefactor  = 27.1092
  Prefactor  = 0.0001
  Prefactor  = 84.0753
  Prefactor  = 1.50034
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 3.90341
  Prefactor  = 0.0001
  Prefactor  = 26.0354
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.502957
  Prefactor  = 38.9098
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.723518
  Prefactor  = 0.894815
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.863     FROM HESSE     STATUS=OK           734 CALLS     5658 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.337        36.541        .69403E-04   -1.4553    
   2  Prefactor     .10000E-03    20.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9028        32.764        .13435E-03   -1.5111    
   4  Prefactor     .10000E-03    5.4282        .17004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.100        10.267        .10667E-03   -1.4957    
   6  Prefactor     3.7698        6.6469        .20792E-03   -1.5320    
   7  Prefactor     74.626        91.069        .23208E-03   -1.3978    
   8  norm          .10000E-03    1.4138        .87350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38553        4.7859        .21484E-02   -1.5584    
  10  Prefactor     .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6996        4.6293        .16548E-03   -1.5323    
  12  Prefactor     27.109        25.672        .76913E-04   -1.4666    
  13  Prefactor     .10000E-03    8.6164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     84.075        67.402        .21903E-03   -1.3872    
  15  Prefactor     1.5003        3.0530        .18400E-03   -1.5463    
  16  Prefactor     .10000E-03    17.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    33.336        .35829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8583        .10009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9034        3.8805        .14194E-03   -1.5313    
  21  Prefactor     .10000E-03    2.7729        .12171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.035        28.861        .78509E-04   -1.4687    
  23  norm          .10000E-03    1.5518        .91095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.791        .34738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .21985        .34288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.0389        .74642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .50296        1.6028        .16527E-03   -1.5566    
  29  Prefactor     38.910        21.699        .64280E-04   -1.4460    
  30  norm          .10000E-03    5.4841        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.1028        .10591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.1622        .25603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .72352        .19008        .22991E-03   -1.0297    
  34  Prefactor     .89482        .18953        .21993E-03   -.96323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79533e-09
Minuit parameter uncertainties:
  1  36.5651
  2  0.000128403
  3  32.8301
  4  3.47927e-05
  5  10.2683
  6  6.64818
  7  91.2397
  8  1.96375e-05
  9  2.71661
  10  2.91755e-05
  11  4.62977
  12  25.6827
  13  0.000128508
  14  67.4634
  15  3.05329
  16  0.000103265
  17  0.000335392
  18  0.000279765
  19  4.83682e-06
  20  3.88077
  21  1.01224e-05
  22  28.8764
  23  3.88688e-06
  24  0.000235911
  25  5.96618e-07
  26  3.59573e-06
  27  0.000274463
  28  1.60294
  29  21.7031
  30  1.19724e-06
  31  2.00064e-06
  32  1.39347e-05
  33  0.190258
  34  0.189673
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  4.837e-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:  8.948e-01  1.897e-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:  7.235e-01  1.903e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805053/likelihoodResults_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.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) = 5659.86505036
delta logL = -0.00245722883574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5659.86259305
delta logL = 8.52960511111e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6022       1.0000          .0000       5.0000    
     3 'Normalizat'    .72350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89482       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=   5659.863     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      227 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    330.11        .10045E-02** at limit **
   2  alpha         1.3669        4.2011        .18057        .19348E-06
   3  Normalizat    .72352        .17414        .22991E-03    .15379E-04
   4  Prefactor     .89481        .18486        .21993E-03    .25949E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.36692
  Normalizat = 0.723518
  Prefactor  = 0.894815
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.863     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9515        .20090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3669        2.6968        .72227E-02   -.47039    
   3  Normalizat    .72352        .17434        .91963E-05   -1.0297    
   4  Prefactor     .89481        .18507        .87973E-05   -.96323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98572e-10
Minuit parameter uncertainties:
  1  1.89933e-05
  2  153.642
  3  0.174473
  4  0.185203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805053': 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) = 5659.86259185
delta logL = 1.28287229018e-06

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.899e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.367e+00  1.536e+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:  8.948e-01  1.852e-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:  7.235e-01  1.745e-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/805053/cmap_HighResolution_520560001_520819201_4FGL_J2322.8-4916_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-05', job_status='DONE', photon_flux_upper_limit='1.61e-08', time_completed='2021-09-29 14:31:48.347519', job_id='805053', GAL2='0.89', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632951108.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1085' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 805053: <4FGL_J2322.8-4916_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1085 350.708 -49.2725 520560001 520819201 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 :                                   901.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

