/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 126 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2322.6-0735_daily_bin99
RA = 350.658, Dec = -7.5907
tmin = 264988801, tmax = 265248001
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='790418', job_status='RUN', time_executed='2021-09-29 13:32:46.086196', time_epoch_executed='1632947566.09' WHERE source_name='4FGL J2322.6-0735' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790418/ft1_4FGL_J2322.6-0735_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790418/ft1_4FGL_J2322.6-0735_daily_bin99.fits outfile=/scratch/kocevski/790418/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin99.fits ra=350.658 dec=-7.5907 rad=12.0 tmin=264988801.0 tmax=265248001.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 1.45
user 1.26
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.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/790418/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin99.fits evtable="EVENTS" outfile="/scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/790418/ltcube_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.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/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits
.....................!
real 12.43
user 12.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/790418/ltcube_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.fits outfile=/scratch/kocevski/790418/expmap_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.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/790418/ltcube_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.fits
.....................!
real 190.11
user 185.26
sys 4.53

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2322.6-0735 @ 350.658 -7.5907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits scfile=/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits outfile=/scratch/kocevski/790418/cmap_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.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.658 yref=-7.5907 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits scfile=/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits outfile=/scratch/kocevski/790418/cmap_HighResolution_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.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.658 yref=-7.5907 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790418/Model_4FGL_J2322.6-0735_daily_bin99.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/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits.....................!
real 61.18
user 59.90
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits', '/scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits', expMap='/scratch/kocevski/790418/expmap_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.fits', expCube='/scratch/kocevski/790418/ltcube_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790418/Model_4FGL_J2322.6-0735_daily_bin99.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.6-0735'

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.363e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790418/ft1_filtered_4FGL_J2322.6-0735_daily_bin99.fits
Spacecraft file(s): /scratch/kocevski/790418/ft2_4FGL_J2322.6-0735_daily_bin99.fits
Exposure map: /scratch/kocevski/790418/expmap_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.fits
Exposure cube: /scratch/kocevski/790418/ltcube_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790418/Model_4FGL_J2322.6-0735_daily_bin99.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) = 6821.23377719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3519       1.0000         .10000E-03   10000.    
     5 'norm      '    .10431E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.5096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5580       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11116E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5967       1.0000         .10000E-03   10000.    
    15 'norm      '    .63275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12094E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .96863       1.0000         .10000E-03   10000.    
    21 'norm      '    .11204E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31251E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.038       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6551       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.6576       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87564       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1190       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6821.202     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3957 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1507        .39415E-07** at limit **
   2  Prefactor     .10000E-03    15.379        .71270E-06** at limit **
   3  Prefactor     .10000E-03    43.019        .15934E-06** at limit **
   4  Prefactor     2.3759        22.128       -.12568E-05   -.28907E-03
   5  norm          .10000E-03    .85739        .29256E-06** at limit **
   6  Prefactor     15.816        23.645        .81585E-07   -.26412E-03
   7  Prefactor     .10000E-03    3.0699        .24262E-07** at limit **
   8  Prefactor     .10000E-03    4.0922        .22021E-07** at limit **
   9  norm          8.5078        10.097        .66086E-06   -.27556E-04
  10  Prefactor     9.5586        13.324        .21693E-06   -.45021E-05
  11  Prefactor     .10000E-03    56.501       -.67757E-06** at limit **
  12  Prefactor     .10000E-03    35.417        .43182E-06** at limit **
  13  Prefactor     .10000E-03    5.2058        .10823E-05** at limit **
  14  norm          2.5966        1.0638        .17568E-07   -.29967E-03
  15  norm          .64246        4.0265       -.21529E-06   -.81479E-04
  16  Prefactor     .10000E-03    18.461       -.67879E-06** at limit **
  17  Prefactor     70.353        48.660        .52091E-05   -.12075E-03
  18  Prefactor     .10000E-03    12.304       -.32619E-05** at limit **
  19  Prefactor     .10000E-03    50.781       -.10053E-05** at limit **
  20  Prefactor     .96089        5.5716       -.62037E-06    .27648E-04
  21  norm          .10000E-03    45.240       -.51682E-06** at limit **
  22  Prefactor     .10000E-03    62.020        .24300E-06** at limit **
  23  Prefactor     .10000E-03    2.1018        .34049E-07** at limit **
  24  Prefactor     46.011        41.277        .24335E-05   -.62237E-04
  25  norm          .10000E-03    .10871       -.67876E-07** at limit **
  26  norm          1.6568        2.6264       -.74530E-07   -.70000E-04
  27  Prefactor     1.6566        17.601        .12775E-04   -.54063E-04
  28  Prefactor     .10000E-03    1.9353        .45272E-07** at limit **
  29  Normalizat    .87547        .18051       -.21965E-06   -.13638E-03
  30  Prefactor     1.1191        .14292       -.12674E-05   -.29998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37586
  norm       = 0.0001
  Prefactor  = 15.8162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.50779
  Prefactor  = 9.55865
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 2.59656
  norm       = 0.642464
  Prefactor  = 0.0001
  Prefactor  = 70.3527
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.960892
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.0115
  norm       = 0.0001
  norm       = 1.65679
  Prefactor  = 1.65665
  Prefactor  = 0.0001
  Normalizat = 0.875469
  Prefactor  = 1.11913
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.202     FROM HESSE     STATUS=OK           586 CALLS     4543 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1531        .11829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3759        16.369        .26728E-03   -1.5400    
   5  norm          .10000E-03    1.2339        .11965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.816        22.734        .10071E-03   -1.4912    
   7  Prefactor     .10000E-03    3.0735        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1043        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.5078        10.099        .68709E-03   -1.5125    
  10  Prefactor     9.5586        13.321        .12962E-03   -1.5090    
  11  Prefactor     .10000E-03    56.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.013        .32720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5966        1.0559        .25319E-04   -1.5386    
  15  norm          .64246        15.365        .27882E-02   -1.5548    
  16  Prefactor     .10000E-03    18.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.353        48.508        .23919E-03   -1.4028    
  18  Prefactor     .10000E-03    12.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .96089        17.219        .34101E-02   -1.5512    
  21  norm          .10000E-03    45.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    62.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6963        .21513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     46.011        41.111        .59092E-04   -1.4350    
  25  norm          .10000E-03    .11133        .52731E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6568        2.5811        .16173E-03   -1.5451    
  27  Prefactor     1.6566        17.676        .16388E-02   -1.5451    
  28  Prefactor     .10000E-03    1.9436        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .87547        .20572        .28361E-03   -.97328    
  30  Prefactor     1.1191        .16498        .20831E-03   -.88857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71423e-08
Minuit parameter uncertainties:
  1  1.70579e-06
  2  2.09582e-05
  3  1.58381e-05
  4  12.477
  5  2.78993e-05
  6  22.7466
  7  2.96164e-06
  8  3.81433e-06
  9  10.1013
  10  13.3253
  11  0.00011583
  12  0.000391804
  13  0.000529367
  14  1.0559
  15  6.28511
  16  2.02631e-05
  17  48.5357
  18  0.000414879
  19  8.02093e-05
  20  8.13748
  21  0.000114129
  22  5.33408e-05
  23  9.50983e-06
  24  41.1364
  25  7.73935e-07
  26  2.58126
  27  10.8266
  28  2.22615e-06
  29  0.205908
  30  0.165059
Done.

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

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.000e-04  5.294e-04  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.119e+00  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.755e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.658 -7.591
Photon Flux Upper Limit: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790418/likelihoodResults_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.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) = 6821.2024267
delta logL = -0.000226463617764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6821.20220028
delta logL = -3.97367330152e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3386       1.0000          .0000       10.000    
     3 'Normalizat'    .87548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6821.202     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .58779E-01    .90712E-01** at limit **
   2  Index         2.3322        7.0850        .50000        .22935E-05
   3  Normalizat    .87547        .52188E-03    .64118E-01    .77619E-04
   4  Prefactor     1.1191        .43002E-03    .36901E-01    .66739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33224
  Normalizat = 0.875469
  Prefactor  = 1.11914
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.202     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.766        .33092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3322        7.0520        .50000       -.56280    
   3  Normalizat    .87547        .66714E-02    .28361E-03   -.97328    
   4  Prefactor     1.1191        .55044E-02    .20831E-03   -.88857    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.07053e-09
Minuit parameter uncertainties:
  1  0.000279621
  2  155.811
  3  0.00667141
  4  0.00550445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790418': 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): 102
logL (Free Index) = 6821.20220023
delta logL = 8.37826519273e-09

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.000e-04  2.796e-04  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.332e+00  1.558e+02  0.000e+00  1.000e+01 (-1.000e+00)
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.119e+00  5.504e-03  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.755e-01  6.671e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.658 -7.591

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/790418/cmap_HighResolution_264988801_265248001_4FGL_J2322.6-0735_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-29 13:46:38.213857', job_id='790418', GAL2='1.12', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632948398.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.38e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='99' AND source_name='4FGL J2322.6-0735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 790418: <4FGL_J2322.6-0735_daily_bin99> in cluster <slac> Done

Job <4FGL_J2322.6-0735_daily_bin99> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:30:27 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:30:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:30:29 2021
Terminated at Wed Sep 29 13:46:39 2021
Results reported at Wed Sep 29 13:46:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.6-0735_daily_bin99 350.658 -7.5907 264988801 265248001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.6-0735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   833.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

