/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 123 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 = 7260
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin338
RA = 351.19, Dec = 8.0282
tmin = 326937601, tmax = 327196801
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='838127', job_status='RUN', time_executed='2021-09-29 16:08:07.705210', time_epoch_executed='1632956887.71' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838127

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838127/ft1_4FGL_J2324.7+0801_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838127/ft1_4FGL_J2324.7+0801_daily_bin338.fits outfile=/scratch/kocevski/838127/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin338.fits ra=351.19 dec=8.0282 rad=12.0 tmin=326937601.0 tmax=327196801.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.32
user 3.11
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/838127/ltcube_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.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/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits
.....................!
real 12.79
user 12.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/838127/ltcube_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.fits outfile=/scratch/kocevski/838127/expmap_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.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/838127/ltcube_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.fits
.....................!
real 190.65
user 185.75
sys 4.60

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/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits scfile=/scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits outfile=/scratch/kocevski/838127/cmap_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits scfile=/scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits outfile=/scratch/kocevski/838127/cmap_HighResolution_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838127/Model_4FGL_J2324.7+0801_daily_bin338.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/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits.....................!
real 89.61
user 88.34
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits', '/scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits', expMap='/scratch/kocevski/838127/expmap_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.fits', expCube='/scratch/kocevski/838127/ltcube_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838127/Model_4FGL_J2324.7+0801_daily_bin338.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/838127/ft1_filtered_4FGL_J2324.7+0801_daily_bin338.fits
Spacecraft file(s): /scratch/kocevski/838127/ft2_4FGL_J2324.7+0801_daily_bin338.fits
Exposure map: /scratch/kocevski/838127/expmap_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.fits
Exposure cube: /scratch/kocevski/838127/ltcube_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838127/Model_4FGL_J2324.7+0801_daily_bin338.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) = 8479.52140187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1495       1.0000         .10000E-03   10000.    
     3 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58860       1.0000         .10000E-03   10000.    
     9 'norm      '    .55894       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4479       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.562       1.0000         .10000E-03   10000.    
    18 'norm      '    20.906       1.0000         .10000E-03   10000.    
    19 'norm      '    .29011E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.493       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6726       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96812       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95767       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=   8479.512     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3413 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.196        13.187       -.34084E-06    .25175E-04
   2  Prefactor     2.1494        .27078        .16980E-08    .10942E-02
   3  norm          .10000E-03    11.279        .28541E-06** at limit **
   4  Prefactor     .10000E-03    22.930       -.98204E-05** at limit **
   5  Prefactor     .49013        5.1981       -.27268E-06   -.47767E-03
   6  Prefactor     10.300        11.435       -.18789E-05    .69329E-04
   7  Prefactor     .10000E-03    9.4575        .28303E-06** at limit **
   8  Prefactor     .58410        2.6663       -.64561E-06   -.18746E-03
   9  norm          .56072        .83595       -.25503E-06   -.20750E-02
  10  Prefactor     4.1981        8.8579       -.81440E-06   -.11639E-03
  11  Prefactor     .10000E-03    5.5145        .24739E-07** at limit **
  12  Prefactor     .10000E-03    22.351        .10289E-04** at limit **
  13  norm          5.1243        7.2640        .22942E-06   -.17377E-03
  14  Prefactor     .10000E-03    3.0090        .76437E-08** at limit **
  15  Prefactor     .10000E-03    61.053        .11122E-05** at limit **
  16  Prefactor     2.4415        7.6531        .10042E-05   -.18222E-03
  17  Prefactor     40.570        27.931       -.20204E-05    .97283E-04
  18  norm          20.908        13.033        .74241E-06   -.39968E-04
  19  norm          .10013E-03    15.908       -.11553E-05** at limit **
  20  Prefactor     3.4818        3.2021       -.18166E-06   -.20787E-04
  21  Prefactor     .10000E-03    9.4324       -.53863E-06** at limit **
  22  Prefactor     12.500        18.776       -.21935E-05    .33280E-04
  23  Prefactor     3.6737        5.3186       -.16182E-05   -.58672E-04
  24  Normalizat    .96805        .18651        .92924E-06    .13674E-03
  25  Prefactor     .95754        .11648        .43132E-06    .20618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1965
  Prefactor  = 2.14944
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.490127
  Prefactor  = 10.2996
  Prefactor  = 0.0001
  Prefactor  = 0.584097
  norm       = 0.560716
  Prefactor  = 4.19808
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.12427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.4415
  Prefactor  = 40.5696
  norm       = 20.9081
  norm       = 0.000100131
  Prefactor  = 3.48181
  Prefactor  = 0.0001
  Prefactor  = 12.4999
  Prefactor  = 3.67367
  Normalizat = 0.968049
  Prefactor  = 0.957538
 **********
 **   18 **HESSE 
 **********

 FCN=   8479.512     FROM HESSE     STATUS=OK           441 CALLS     3854 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.196        13.194        .11470E-03   -1.5009    
   2  Prefactor     2.1494        .27029        .16064E-04   -1.5415    
   3  norm          .10000E-03    11.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .49013        22.884        .39521E-02   -1.5568    
   6  Prefactor     10.300        11.388        .12485E-03   -1.5066    
   7  Prefactor     .10000E-03    9.5188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58410        10.388        .29111E-02   -1.5555    
   9  norm          .56072        .72626        .99659E-03   -1.5558    
  10  Prefactor     4.1981        8.8181        .19681E-03   -1.5298    
  11  Prefactor     .10000E-03    5.5254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1243        7.2094        .17757E-03   -1.5255    
  14  Prefactor     .10000E-03    3.0217        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    61.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4415        7.4674        .26146E-03   -1.5395    
  17  Prefactor     40.570        27.762        .62938E-04   -1.4433    
  18  norm          20.908        13.021        .87600E-04   -1.4793    
  19  norm          .10013E-03    15.219        .10105       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4818        3.1871        .14920E-03   -1.5335    
  21  Prefactor     .10000E-03    9.4393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.500        18.837        .11333E-03   -1.5001    
  23  Prefactor     3.6737        5.3439        .21076E-03   -1.5325    
  24  Normalizat    .96805        .21700        .32579E-03   -.94109    
  25  Prefactor     .95754        .13693        .20837E-03   -.94159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4729e-08
Minuit parameter uncertainties:
  1  13.1975
  2  0.270287
  3  2.03793e-05
  4  0.000288923
  5  6.70017
  6  11.3904
  7  1.42686e-05
  8  4.92698
  9  0.726274
  10  8.82087
  11  9.4369e-07
  12  0.000301674
  13  7.21065
  14  4.02103e-06
  15  5.17055e-05
  16  7.47022
  17  27.7705
  18  13.0224
  19  0.00282564
  20  3.18726
  21  1.19603e-05
  22  18.8462
  23  5.34461
  24  0.217197
  25  0.136975
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.198e+00  8.821e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.575e-01  1.370e-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:  9.680e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838127/likelihoodResults_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.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): 0
logL (Free Index) = 8479.15198088
delta logL = 0.359960690415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8479.11340621
delta logL = 0.398535362772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2222       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3832       1.0000          .0000       10.000    
     3 'Normalizat'    .92828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97135       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.

 FCN=   8479.113     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      264 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2222        18.228        .10195E-01    .15216E-02
   2  Index         3.3832        2.0977        .15530        .14637E-03
   3  Normalizat    .92830        .39343E-01    .74930E-01   -.47971E-04
   4  Prefactor     .97136        .24973E-01    .45908E-01   -.12010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22216
  Index      = 3.38318
  Normalizat = 0.928302
  Prefactor  = 0.971358
 **********
 **   18 **HESSE 
 **********

 FCN=   8479.113     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2222        63.020        .10054E-03   -1.5487    
   2  Index         3.3832        6.6647        .54046E-02   -.32928    
   3  Normalizat    .92830        .21666        .33160E-03   -.95473    
   4  Prefactor     .97136        .13504        .20692E-03   -.93690    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.2276e-07
Minuit parameter uncertainties:
  1  17.5712
  2  6.56893
  3  0.216861
  4  0.13509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838127': 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) = 8479.11340617
delta logL = 0.39853540347

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.222e+00  1.757e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.383e+00  6.569e+00  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:  9.714e-01  1.351e-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:  9.283e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.38 +/- 6.57
Photon Flux (Free Index): 5.34e-08 +/- 7.10e-08
Energy Flux (Free Index): 9.19e-06 +/- 1.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/838127/cmap_HighResolution_326937601_327196801_4FGL_J2324.7+0801_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', comment='SUCCESS', energy_flux2='9.19e-06', dlogl='3.99e-01', photon_flux2='5.34e-08', job_status='DONE', time_completed='2021-09-29 16:22:18.611441', photon_index_error2='6.57', photon_index2='3.38', ts='0.32', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.09e-08', energy_flux_error2='1.40e-05', EG='0.97', time_epoch_completed='1632957738.61', return_code='0', job_id='838127', GAL2='0.97', EG2='0.93', return_code2='102', photon_flux_error2='7.10e-08', ts2='1.16', photon_index='2.23' WHERE bin_id='338' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:22:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 838127: <4FGL_J2324.7+0801_daily_bin338> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin338> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:57 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:05:58 2021
Terminated at Wed Sep 29 16:22:19 2021
Results reported at Wed Sep 29 16:22:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin338 351.19 8.0282 326937601 327196801 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 :                                   848.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

