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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1624
RA = 351.19, Dec = 8.0282
tmin = 660268801, tmax = 660528001
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='500251', job_status='RUN', time_executed='2021-12-08 09:30:51.114944', time_epoch_executed='1638984651.11' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500251/ft1_4FGL_J2324.7+0801_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500251/ft1_4FGL_J2324.7+0801_daily_bin1624.fits outfile=/scratch/kocevski/500251/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1624.fits ra=351.19 dec=8.0282 rad=12.0 tmin=660268801.0 tmax=660528001.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.98
user 3.65
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.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/500251/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1624.fits evtable="EVENTS" outfile="/scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/500251/ltcube_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.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/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits
.....................!
real 13.17
user 12.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/500251/ltcube_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.fits outfile=/scratch/kocevski/500251/expmap_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.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/500251/ltcube_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.fits
.....................!
real 191.06
user 186.35
sys 4.37

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

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits scfile=/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits outfile=/scratch/kocevski/500251/cmap_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.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=351.19 yref=8.0282 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits scfile=/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits outfile=/scratch/kocevski/500251/cmap_HighResolution_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.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=351.19 yref=8.0282 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500251/Model_4FGL_J2324.7+0801_daily_bin1624.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/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits.....................!
real 66.60
user 65.17
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits', '/scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits', expMap='/scratch/kocevski/500251/expmap_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.fits', expCube='/scratch/kocevski/500251/ltcube_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500251/Model_4FGL_J2324.7+0801_daily_bin1624.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/500251/ft1_filtered_4FGL_J2324.7+0801_daily_bin1624.fits
Spacecraft file(s): /scratch/kocevski/500251/ft2_4FGL_J2324.7+0801_daily_bin1624.fits
Exposure map: /scratch/kocevski/500251/expmap_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.fits
Exposure cube: /scratch/kocevski/500251/ltcube_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500251/Model_4FGL_J2324.7+0801_daily_bin1624.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) = 5983.80836146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .61509       1.0000         .10000E-03   10000.    
     3 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .74591       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.332       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3641       1.0000         .10000E-03   10000.    
     9 'norm      '    .51075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5010       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.101       1.0000         .10000E-03   10000.    
    19 'norm      '    26.770       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13770E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9950       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1275       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0434       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5983.795     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2969 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.731        .73557E-07** at limit **
   2  Prefactor     .61510        .17207        .16615E-08   -.65742E-03
   3  norm          .10000E-03    15.774        .10496E-06** at limit **
   4  Prefactor     .10000E-03    9.7121        .23587E-07** at limit **
   5  Prefactor     4.3687        5.9305        .27496E-06    .10155E-04
   6  Prefactor     .73594        8.4817        .15171E-05   -.33212E-03
   7  Prefactor     31.330        20.555        .14538E-06    .18092E-04
   8  Prefactor     8.3643        7.4390       -.20474E-06   -.53004E-04
   9  norm          .51202        1.0276       -.53704E-06   -.64023E-03
  10  Prefactor     17.430        12.146        .35058E-07   -.44031E-04
  11  Prefactor     6.5022        13.729        .32364E-05   -.74820E-04
  12  Prefactor     .10000E-03    52.269       -.45532E-06** at limit **
  13  norm          22.654        11.653       -.94056E-07   -.10025E-03
  14  Prefactor     4.6227        5.9014        .16114E-06   -.96344E-04
  15  Prefactor     .10000E-03    119.77        .77654E-06** at limit **
  16  Prefactor     6.4146        24.049        .33083E-05    .62817E-04
  17  Prefactor     .10000E-03    27.955       -.15782E-06** at limit **
  18  norm          16.102        13.182        .76570E-07   -.11979E-04
  19  norm          26.796        42.592       -.21451E-05    .96061E-04
  20  Prefactor     .10000E-03    3.5715       -.56453E-06** at limit **
  21  Prefactor     .10000E-03    155.89       -.36569E-05** at limit **
  22  Prefactor     5.9911        18.876        .45138E-07    .86424E-05
  23  Prefactor     3.1279        5.1618        .20950E-06   -.62074E-05
  24  Normalizat    1.0435        .20181        .33614E-06   -.75328E-04
  25  Prefactor     .74450        .12317       -.11552E-05    .13677E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.615098
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36871
  Prefactor  = 0.735945
  Prefactor  = 31.3297
  Prefactor  = 8.36434
  norm       = 0.512015
  Prefactor  = 17.4301
  Prefactor  = 6.50218
  Prefactor  = 0.0001
  norm       = 22.654
  Prefactor  = 4.62271
  Prefactor  = 0.000100003
  Prefactor  = 6.41463
  Prefactor  = 0.0001
  norm       = 16.1021
  norm       = 26.7964
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.99105
  Prefactor  = 3.1279
  Normalizat = 1.04349
  Prefactor  = 0.744505
 **********
 **   18 **HESSE 
 **********

 FCN=   5983.795     FROM HESSE     STATUS=OK           437 CALLS     3406 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .61510        .17181        .16215E-04   -1.5551    
   3  norm          .10000E-03    15.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3687        5.9023        .19271E-03   -1.5290    
   6  Prefactor     .73594        23.252        .41244E-02   -1.5536    
   7  Prefactor     31.330        20.580        .71582E-04   -1.4588    
   8  Prefactor     8.3643        7.4308        .13862E-03   -1.5129    
   9  norm          .51202        .96653        .10769E-02   -1.5565    
  10  Prefactor     17.430        12.142        .95939E-04   -1.4873    
  11  Prefactor     6.5022        13.446        .78701E-03   -1.5198    
  12  Prefactor     .10000E-03    52.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.654        11.620        .84158E-04   -1.4756    
  14  Prefactor     4.6227        5.8731        .18720E-03   -1.5278    
  15  Prefactor     .10000E-03    119.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4146        23.970        .15807E-03   -1.5201    
  17  Prefactor     .10000E-03    28.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.102        13.184        .99815E-04   -1.4905    
  19  norm          26.796        42.177        .77427E-04   -1.4672    
  20  Prefactor     .10000E-03    3.6018        .14244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    158.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.9911        18.870        .16399E-03   -1.5218    
  23  Prefactor     3.1279        5.1450        .21954E-03   -1.5354    
  24  Normalizat    1.0435        .23211        .28164E-03   -.91587    
  25  Prefactor     .74450        .14048        .20583E-03   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25606e-10
Minuit parameter uncertainties:
  1  5.04663e-07
  2  0.171815
  3  1.92264e-05
  4  2.15785e-06
  5  5.90307
  6  8.27625
  7  20.5844
  8  7.43164
  9  0.966559
  10  12.1434
  11  13.4518
  12  4.16405e-05
  13  11.6209
  14  5.87384
  15  0.00128233
  16  24.0062
  17  3.91336e-05
  18  13.1868
  19  42.2244
  20  2.4939e-06
  21  0.00128801
  22  18.8887
  23  5.14572
  24  0.232334
  25  0.140549
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.743e+01  1.214e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.445e-01  1.405e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.043e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.27e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.87e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5983.74852582
delta logL = 0.0463759984168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5983.74635546
delta logL = 0.0485463597824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.820       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0527       1.0000          .0000       10.000    
     3 'Normalizat'    1.0502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74234       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   5983.746     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      302 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.813        16.999        .87781E-04    .10322E-03
   2  Index         2.0523        .56370        .69563E-02    .37965E-03
   3  Normalizat    1.0503        .22027        .28088E-03    .62656E-04
   4  Prefactor     .74237        .13827        .20612E-03    .74846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8134
  Index      = 2.0523
  Normalizat = 1.05026
  Prefactor  = 0.742368
 **********
 **   18 **HESSE 
 **********

 FCN=   5983.746     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.813        16.476        .35112E-05   -1.4795    
   2  Index         2.0523        .54633        .13913E-02   -.63049    
   3  Normalizat    1.0503        .22033        .11235E-04   -.91365    
   4  Prefactor     .74237        .13835        .82448E-05   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09281e-11
Minuit parameter uncertainties:
  1  16.4795
  2  0.548012
  3  0.220525
  4  0.138412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500251': 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) = 5983.7463547
delta logL = 0.0485471170123

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.081e+01  1.648e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  5.480e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.424e-01  1.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.050e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.05 +/- 0.55
Photon Flux (Free Index): 5.40e-08 +/- 4.64e-08
Energy Flux (Free Index): 3.30e-05 +/- 3.21e-05

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/500251/cmap_HighResolution_660268801_660528001_4FGL_J2324.7+0801_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.27e-08', energy_flux2='3.30e-05', photon_flux_error='4.37e-08', dlogl='4.85e-02', energy_flux='2.68e-05', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-12-08 09:41:07.578265', photon_index_error2='0.55', photon_index2='2.05', ts='4.12', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.21e-05', EG='1.04', time_epoch_completed='1638985267.58', return_code='0', job_id='500251', GAL2='0.74', EG2='1.05', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='4.64e-08', ts2='4.23', photon_index='2.23' WHERE bin_id='1624' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:41:07 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 500251: <4FGL_J2324.7+0801_daily_bin1624> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1624> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:35 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:27:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:27:10 2021
Terminated at Wed Dec  8 09:41:08 2021
Results reported at Wed Dec  8 09:41:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1624 351.19 8.0282 660268801 660528001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            933 sec.

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

