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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1165
RA = 350.708, Dec = -49.2725
tmin = 541296001, tmax = 541555201
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='805172', job_status='RUN', time_executed='2021-09-29 14:16:20.946720', time_epoch_executed='1632950180.95' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805172/ft1_4FGL_J2322.8-4916_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805172/ft1_4FGL_J2322.8-4916_daily_bin1165.fits outfile=/scratch/kocevski/805172/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1165.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=541296001.0 tmax=541555201.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.74
user 3.53
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.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/805172/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/805172/ft1_filtered_4FGL_J2322.8-4916_daily_bin1165.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.65
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805172/ft1_filtered_4FGL_J2322.8-4916_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/805172/ltcube_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.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/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.fits
.....................!
real 13.30
user 12.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805172/ft1_filtered_4FGL_J2322.8-4916_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/805172/ltcube_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.fits outfile=/scratch/kocevski/805172/expmap_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.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/805172/ltcube_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.fits
.....................!
real 191.23
user 186.27
sys 4.46

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/805172/ft1_filtered_4FGL_J2322.8-4916_daily_bin1165.fits scfile=/scratch/kocevski/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.fits outfile=/scratch/kocevski/805172/cmap_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.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/805172/ft1_filtered_4FGL_J2322.8-4916_daily_bin1165.fits scfile=/scratch/kocevski/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.fits outfile=/scratch/kocevski/805172/cmap_HighResolution_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805172/ft1_filtered_4FGL_J2322.8-4916_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/805172/ft2_4FGL_J2322.8-4916_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805172/Model_4FGL_J2322.8-4916_daily_bin1165.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/805172/ft1_filtered_4FGL_J2322.8-4916_daily_bin1165.fits.....................!
real 36.94
user 35.67
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2680       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0045       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9692       1.0000         .10000E-03   10000.    
    14 'Prefactor '    106.61       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.363       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7589       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.738       1.0000         .10000E-03   10000.    
    25 'norm      '    2.9918       1.0000         .10000E-03   10000.    
    26 'norm      '    13.089       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12298E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    26.135       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.3561       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .87578       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1092       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=   4515.265     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     4792 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.013        96.604        .11073E-05    .57720E-04
   2  Prefactor     19.114        32.401        .21437E-05    .27688E-03
   3  Prefactor     .10000E-03    79.184       -.17068E-05** at limit **
   4  Prefactor     10.059        10.811        .33726E-06    .17181E-03
   5  Prefactor     .62158        7.3357        .66304E-06   -.54749E-04
   6  Prefactor     .10000E-03    4.5023        .82551E-06** at limit **
   7  Prefactor     .10000E-03    126.96       -.49638E-06** at limit **
   8  norm          .10000E-03    4.0663       -.84382E-07** at limit **
   9  Prefactor     6.2682        5.2284       -.13777E-06   -.80711E-04
  10  Prefactor     .10000E-03    14.830       -.89240E-06** at limit **
  11  Prefactor     1.0059        7.0180        .48718E-06   -.85214E-04
  12  Prefactor     .10000E-03    14.794        .94881E-06** at limit **
  13  Prefactor     5.9693        10.728        .44461E-06    .18951E-03
  14  Prefactor     106.65        119.16        .61766E-05    .20919E-03
  15  Prefactor     6.9055        6.5730       -.58043E-07   -.24141E-04
  16  Prefactor     13.361        40.163       -.15102E-05   -.27265E-04
  17  Prefactor     .10000E-03    5.4997        .48493E-06** at limit **
  18  norm          .10000E-03    4.8018       -.56336E-06** at limit **
  19  norm          .10000E-03    5.0913        .10806E-05** at limit **
  20  norm          .10000E-03    3.6692       -.14866E-07** at limit **
  21  Prefactor     1.7568        14.883        .40917E-05    .28759E-03
  22  Prefactor     .10001E-03    120.07        .38414E-05** at limit **
  23  norm          .10000E-03    4.6830       -.63747E-06** at limit **
  24  Prefactor     33.753        32.467       -.16492E-05    .32438E-03
  25  norm          2.9915        1.7659        .15269E-06    .15479E-02
  26  norm          13.090        7.6665       -.18488E-06   -.13998E-03
  27  Prefactor     .10000E-03    4.8621       -.42445E-06** at limit **
  28  Prefactor     .10001E-03    4.8556       -.47647E-05** at limit **
  29  Prefactor     26.074        34.183       -.21379E-06    .39160E-03
  30  norm          .10000E-03    8.4295       -.29027E-07** at limit **
  31  Prefactor     .10000E-03    2.2418       -.77042E-07** at limit **
  32  Prefactor     7.3570        6.2418        .22852E-08    .35382E-03
  33  Normalizat    .87557        .23114        .14667E-05    .45570E-03
  34  Prefactor     1.1093        .23132       -.12112E-05    .41511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.0128
  Prefactor  = 19.1144
  Prefactor  = 0.000100001
  Prefactor  = 10.0588
  Prefactor  = 0.621577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.2682
  Prefactor  = 0.0001
  Prefactor  = 1.0059
  Prefactor  = 0.0001
  Prefactor  = 5.9693
  Prefactor  = 106.65
  Prefactor  = 6.90546
  Prefactor  = 13.3612
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.75681
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 33.7534
  norm       = 2.9915
  norm       = 13.0904
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 26.0742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.35704
  Normalizat = 0.875568
  Prefactor  = 1.10933
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.265     FROM HESSE     STATUS=OK           726 CALLS     5518 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.013        96.677        .40401E-04   -1.3715    
   2  Prefactor     19.114        32.527        .91615E-04   -1.4833    
   3  Prefactor     .10000E-03    79.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.059        10.817        .12634E-03   -1.5074    
   5  Prefactor     .62158        16.563        .34766E-02   -1.5550    
   6  Prefactor     .10000E-03    4.5439        .13953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    127.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.0793        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2682        5.2031        .13284E-03   -1.5207    
  10  Prefactor     .10000E-03    14.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0059        12.581        .31938E-02   -1.5507    
  12  Prefactor     .10000E-03    14.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9693        10.699        .16435E-03   -1.5219    
  14  Prefactor     106.65        121.58        .19474E-03   -1.3639    
  15  Prefactor     6.9055        6.5770        .15268E-03   -1.5182    
  16  Prefactor     13.361        40.057        .10957E-03   -1.4977    
  17  Prefactor     .10000E-03    5.5082        .15399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8166        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.1400        .14835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6823        .12570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7568        14.061        .31597E-03   -1.5443    
  22  Prefactor     .10001E-03    121.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.7411        .14201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.753        31.545        .68989E-04   -1.4545    
  25  norm          2.9915        1.7568        .62611E-04   -1.5362    
  26  norm          13.090        7.6626        .11071E-03   -1.4984    
  27  Prefactor     .10000E-03    4.8725        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    5.6039        .22151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     26.074        33.844        .78361E-04   -1.4686    
  30  norm          .10000E-03    8.4310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.2546        .98204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     7.3570        6.2344        .13963E-03   -1.5165    
  33  Normalizat    .87557        .27916        .26769E-03   -.97324    
  34  Prefactor     1.1093        .28146        .25495E-03   -.89169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0966e-08
Minuit parameter uncertainties:
  1  96.8316
  2  32.5572
  3  0.00050422
  4  10.8186
  5  6.41873
  6  7.24725e-05
  7  0.000261897
  8  8.67723e-06
  9  5.20343
  10  0.000150085
  11  7.1162
  12  0.000131224
  13  10.7025
  14  121.867
  15  6.5777
  16  40.1375
  17  4.7444e-05
  18  5.50408e-05
  19  9.82109e-05
  20  2.0462e-07
  21  9.9433
  22  0.00185379
  23  5.71932e-05
  24  31.5605
  25  1.75683
  26  7.66314
  27  3.95862e-05
  28  0.000441844
  29  33.8692
  30  1.22893e-06
  31  5.94766e-06
  32  6.23499
  33  0.27962
  34  0.281834
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  9.821e-05  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.109e+00  2.818e-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:  8.756e-01  2.796e-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: 3.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805172/likelihoodResults_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.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) = 4515.26559134
delta logL = -0.00091364653963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4515.09797588
delta logL = 0.166701808614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62637E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .82363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1452       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.

 FCN=   4515.098     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      312 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62666E-02    .53309        .20088E-02    .56625E-02
   2  alpha         5.0000        2.5061        .46267    ** at limit **
   3  Normalizat    .82370        .85603E-01    .43918E-01   -.46033E-04
   4  Prefactor     1.1451        .77591E-01    .56829E-01   -.35199E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00626658
  alpha      = 5
  Normalizat = 0.823697
  Prefactor  = 1.14507
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.098     FROM HESSE     STATUS=OK            35 CALLS      347 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62666E-02    .11668E-01    .86628E-04   -1.5692    
   2  alpha         5.0000        3.5152        .75533E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .82370        .27648        .27479E-03   -.99196    
   4  Prefactor     1.1451        .28551        .25129E-03   -.88039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10873e-11
Minuit parameter uncertainties:
  1  0.0116676
  2  1.54074e-07
  3  0.276951
  4  0.285896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805172': 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) = 4515.09797576
delta logL = 0.166701930455

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  6.267e-03  1.167e-02  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  5.000e+00  1.541e-07  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.145e+00  2.859e-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:  8.237e-01  2.770e-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/805172/cmap_HighResolution_541296001_541555201_4FGL_J2322.8-4916_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-05', job_status='DONE', photon_flux_upper_limit='3.16e-08', time_completed='2021-09-29 14:30:17.099062', job_id='805172', GAL2='1.15', fit_tolerance='1e-08', EG2='0.82', EG='0.88', time_epoch_completed='1632951017.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.67e-01', ts2='0.37', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1165' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 805172: <4FGL_J2322.8-4916_daily_bin1165> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1165 350.708 -49.2725 541296001 541555201 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 :                                   793.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

