/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 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin228
RA = 351.19, Dec = 8.0282
tmin = 298425601, tmax = 298684801
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='837947', job_status='RUN', time_executed='2021-09-29 16:05:53.727129', time_epoch_executed='1632956753.73' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837947

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837947/ft1_4FGL_J2324.7+0801_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837947/ft2_4FGL_J2324.7+0801_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837947/ft1_4FGL_J2324.7+0801_daily_bin228.fits outfile=/scratch/kocevski/837947/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin228.fits ra=351.19 dec=8.0282 rad=12.0 tmin=298425601.0 tmax=298684801.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.31
user 3.10
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837947/ft2_4FGL_J2324.7+0801_daily_bin228.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/837947/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/837947/ft1_filtered_4FGL_J2324.7+0801_daily_bin228.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837947/ft1_filtered_4FGL_J2324.7+0801_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/837947/ft2_4FGL_J2324.7+0801_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/837947/ltcube_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.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/837947/ft2_4FGL_J2324.7+0801_daily_bin228.fits
.....................!
real 11.80
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837947/ft1_filtered_4FGL_J2324.7+0801_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/837947/ft2_4FGL_J2324.7+0801_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/837947/ltcube_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.fits outfile=/scratch/kocevski/837947/expmap_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.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/837947/ltcube_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.fits
.....................!
real 190.08
user 185.39
sys 4.31

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/837947/ft1_filtered_4FGL_J2324.7+0801_daily_bin228.fits scfile=/scratch/kocevski/837947/ft2_4FGL_J2324.7+0801_daily_bin228.fits outfile=/scratch/kocevski/837947/cmap_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837947/ft1_filtered_4FGL_J2324.7+0801_daily_bin228.fits scfile=/scratch/kocevski/837947/ft2_4FGL_J2324.7+0801_daily_bin228.fits outfile=/scratch/kocevski/837947/cmap_HighResolution_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837947/ft1_filtered_4FGL_J2324.7+0801_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/837947/ft2_4FGL_J2324.7+0801_daily_bin228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837947/Model_4FGL_J2324.7+0801_daily_bin228.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/837947/ft1_filtered_4FGL_J2324.7+0801_daily_bin228.fits.....................!
real 72.01
user 70.68
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.8501       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .69824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7330       1.0000         .10000E-03   10000.    
     9 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12831E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .56284E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75259       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96506       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=   6441.333     FROM MIGRAD    STATUS=CONVERGED   1070 CALLS     2973 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0895        .18142E-02** at limit **
   2  Prefactor     3.8501        .34602        .13658E-04   -.19977E-03
   3  norm          7.2016        10.670        .14947E-03    .74537E-05
   4  Prefactor     .51295        36.897        .12224        .12334E-03
   5  Prefactor     .10000E-03    9.6910        .36285E-03** at limit **
   6  Prefactor     .10000E-03    4.2840        .16206E-02** at limit **
   7  Prefactor     .10000E-03    11.086        .18142E-02** at limit **
   8  Prefactor     6.7267        8.4331        .77318E-03   -.83855E-04
   9  norm          .10000E-03    3.8856        .11875E-02** at limit **
  10  Prefactor     6.3325        10.291        .15951E-03    .25658E-05
  11  Prefactor     .48242        165.46        .54280E-02   -.12219E-03
  12  Prefactor     .10000E-03    19.782        .18142E-02** at limit **
  13  norm          .10000E-03    3.0203        .13580E-02** at limit **
  14  Prefactor     .10000E-03    2.2151        .11632E-02** at limit **
  15  Prefactor     .10000E-03    455.98        .18142E-02** at limit **
  16  Prefactor     .10000E-03    17.171        .18142E-02** at limit **
  17  Prefactor     .10000E-03    8.1232        .18142E-02** at limit **
  18  norm          .10000E-03    6.3896        .18142E-02** at limit **
  19  norm          .10000E-03    12.128        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.5269        .12394E-02** at limit **
  21  Prefactor     .10000E-03    61.436        .18142E-02** at limit **
  22  Prefactor     .10000E-03    70.771        .59653E-02** at limit **
  23  Prefactor     .10000E-03    8.0455        .18142E-02** at limit **
  24  Normalizat    .75270        .22948        .33954E-03    .42188E-05
  25  Prefactor     .96495        .14658        .19714E-03   -.71322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.85011
  norm       = 7.20162
  Prefactor  = 0.512953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72665
  norm       = 0.0001
  Prefactor  = 6.33249
  Prefactor  = 0.482419
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.752704
  Prefactor  = 0.964954
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.333     FROM HESSE     STATUS=OK           415 CALLS     3388 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8501        .34600        .54633E-06   -1.5316    
   3  norm          7.2016        10.669        .59789E-05   -1.5171    
   4  Prefactor     .51295        34.377        .12813       -1.5565    
   5  Prefactor     .10000E-03    9.6914        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2843        .32411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7267        8.2146        .30927E-04   -1.5189    
   9  norm          .10000E-03    3.9404        .23750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3325        10.289        .63804E-05   -1.5205    
  11  Prefactor     .48242        159.59        .21712E-03   -1.5569    
  12  Prefactor     .10000E-03    19.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0207        .27159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2153        .23264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    456.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.3900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.128        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5273        .24787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    71.853        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.0498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .75270        .22889        .13582E-04   -1.0185    
  25  Prefactor     .96495        .14666        .39429E-04   -.93907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60986e-09
Minuit parameter uncertainties:
  1  1.553e-07
  2  0.345998
  3  10.6716
  4  8.40272
  5  8.7331e-06
  6  1.79626e-06
  7  5.77342e-06
  8  8.21593
  9  1.8105e-06
  10  10.2923
  11  17.5945
  12  3.09001e-06
  13  3.73339e-06
  14  1.73955e-06
  15  0.000578079
  16  3.21209e-05
  17  3.69416e-06
  18  2.51833e-06
  19  5.52304e-06
  20  2.44248e-06
  21  5.06823e-05
  22  0.000624928
  23  3.90953e-07
  24  0.229184
  25  0.146718
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.332e+00  1.029e+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:  9.650e-01  1.467e-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:  7.527e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837947/likelihoodResults_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.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) = 6441.32415652
delta logL = 0.00917089886207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6441.3212285
delta logL = 0.0120989270254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5191       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3556       1.0000          .0000       10.000    
     3 'Normalizat'    .75010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96571       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=   6441.321     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      246 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5180        11.735        .17102E-03    .53000E-03
   2  Index         2.3554        .90843        .94613E-02    .15100E-03
   3  Normalizat    .75005        .22375        .34010E-03   -.27294E-03
   4  Prefactor     .96575        .14653        .19707E-03   -.55457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.51801
  Index      = 2.35537
  Normalizat = 0.750047
  Prefactor  = 0.965749
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.321     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5180        10.725        .68409E-05   -1.5238    
   2  Index         2.3554        .83105        .37845E-03   -.55733    
   3  Normalizat    .75005        .22380        .13604E-04   -1.0195    
   4  Prefactor     .96575        .14654        .39414E-04   -.93880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74373e-10
Minuit parameter uncertainties:
  1  10.7283
  2  0.83646
  3  0.224077
  4  0.146599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837947': 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) = 6441.32122835
delta logL = 0.0120990720898

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.518e+00  1.073e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.355e+00  8.365e-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:  9.657e-01  1.466e-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:  7.500e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 351.190 8.028

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/837947/cmap_HighResolution_298425601_298684801_4FGL_J2324.7+0801_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-29 16:17:46.215672', job_id='837947', GAL2='0.97', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632957466.22', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.21e-02', ts2='0.48', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='228' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:17:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 837947: <4FGL_J2324.7+0801_daily_bin228> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin228> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:41 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:42 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:42 2021
Terminated at Wed Sep 29 16:17:47 2021
Results reported at Wed Sep 29 16:17:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin228 351.19 8.0282 298425601 298684801 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 :                                   708.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

