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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin238
RA = 351.19, Dec = 8.0282
tmin = 301017601, tmax = 301276801
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='837962', job_status='RUN', time_executed='2021-09-29 16:06:16.776988', time_epoch_executed='1632956776.78' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837962/ft1_4FGL_J2324.7+0801_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837962/ft2_4FGL_J2324.7+0801_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837962/ft1_4FGL_J2324.7+0801_daily_bin238.fits outfile=/scratch/kocevski/837962/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin238.fits ra=351.19 dec=8.0282 rad=12.0 tmin=301017601.0 tmax=301276801.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.56
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837962/ft1_filtered_4FGL_J2324.7+0801_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/837962/ft2_4FGL_J2324.7+0801_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/837962/ltcube_301017601_301276801_4FGL_J2324.7+0801_daily_bin238.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/837962/ft2_4FGL_J2324.7+0801_daily_bin238.fits
.....................!
real 11.88
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837962/ft1_filtered_4FGL_J2324.7+0801_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/837962/ft2_4FGL_J2324.7+0801_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/837962/ltcube_301017601_301276801_4FGL_J2324.7+0801_daily_bin238.fits outfile=/scratch/kocevski/837962/expmap_301017601_301276801_4FGL_J2324.7+0801_daily_bin238.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/837962/ltcube_301017601_301276801_4FGL_J2324.7+0801_daily_bin238.fits
.....................!
real 190.59
user 185.84
sys 4.39

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/837962/ft1_filtered_4FGL_J2324.7+0801_daily_bin238.fits scfile=/scratch/kocevski/837962/ft2_4FGL_J2324.7+0801_daily_bin238.fits outfile=/scratch/kocevski/837962/cmap_301017601_301276801_4FGL_J2324.7+0801_daily_bin238.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837962/ft1_filtered_4FGL_J2324.7+0801_daily_bin238.fits scfile=/scratch/kocevski/837962/ft2_4FGL_J2324.7+0801_daily_bin238.fits outfile=/scratch/kocevski/837962/cmap_HighResolution_301017601_301276801_4FGL_J2324.7+0801_daily_bin238.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837962/ft1_filtered_4FGL_J2324.7+0801_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/837962/ft2_4FGL_J2324.7+0801_daily_bin238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837962/Model_4FGL_J2324.7+0801_daily_bin238.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/837962/ft1_filtered_4FGL_J2324.7+0801_daily_bin238.fits.....................!
real 86.11
user 84.65
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9881       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1189       1.0000         .10000E-03   10000.    
     9 'norm      '    .28558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    154.92       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.241       1.0000         .10000E-03   10000.    
    18 'norm      '    12.152       1.0000         .10000E-03   10000.    
    19 'norm      '    11.937       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9262       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6355       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3565       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68045       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=   7878.858     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2893 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.195        30.613       -.54698E-06   -.76954E-04
   2  Prefactor     2.9881        .35845       -.21399E-08   -.13706E-03
   3  norm          .10000E-03    3.5851        .50200E-09** at limit **
   4  Prefactor     6.9022        19.929       -.10324E-06   -.19112E-04
   5  Prefactor     17.385        10.730        .32470E-06   -.26193E-03
   6  Prefactor     .10000E-03    16.090        .72100E-07** at limit **
   7  Prefactor     .10000E-03    6.4292        .50240E-08** at limit **
   8  Prefactor     7.1190        7.9904        .18514E-05   -.72752E-03
   9  norm          .28495        .92398       -.96258E-07   -.29986E-03
  10  Prefactor     8.1720        6.5295        .55822E-08    .13099E-04
  11  Prefactor     14.563        20.590       -.12940E-05   -.66547E-04
  12  Prefactor     .10000E-03    38.139        .10030E-05** at limit **
  13  norm          .10000E-03    3.4873        .10720E-07** at limit **
  14  Prefactor     .10000E-03    9.8963        .32097E-07** at limit **
  15  Prefactor     154.97        268.79        .99382E-05    .72182E-04
  16  Prefactor     .10000E-03    39.393       -.99833E-06** at limit **
  17  Prefactor     29.241        24.045        .13326E-06    .90029E-05
  18  norm          12.152        11.332        .73690E-08    .29334E-05
  19  norm          11.927        32.729       -.50572E-05   -.10882E-03
  20  Prefactor     7.9251        7.8145        .50702E-06    .72915E-04
  21  Prefactor     .10000E-03    24.438       -.12193E-06** at limit **
  22  Prefactor     .10000E-03    7.4437        .22031E-07** at limit **
  23  Prefactor     8.6353        7.8396        .16651E-07    .70070E-05
  24  Normalizat    1.3566        .20761       -.41474E-06    .51750E-04
  25  Prefactor     .68043        .12086       -.95634E-08    .21346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.1947
  Prefactor  = 2.98808
  norm       = 0.0001
  Prefactor  = 6.90222
  Prefactor  = 17.3852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11903
  norm       = 0.284955
  Prefactor  = 8.17198
  Prefactor  = 14.5629
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 154.97
  Prefactor  = 0.0001
  Prefactor  = 29.2412
  norm       = 12.1519
  norm       = 11.9273
  Prefactor  = 7.9251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.63532
  Normalizat = 1.35659
  Prefactor  = 0.680429
 **********
 **   18 **HESSE 
 **********

 FCN=   7878.858     FROM HESSE     STATUS=OK           431 CALLS     3324 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.195        30.815        .61712E-04   -1.4408    
   2  Prefactor     2.9881        .36127        .16880E-04   -1.5362    
   3  norm          .10000E-03    3.5869        .16414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9022        19.942        .15270E-03   -1.5182    
   5  Prefactor     17.385        10.795        .48029E-03   -1.4874    
   6  Prefactor     .10000E-03    16.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1190        8.8722        .75172E-03   -1.5174    
   9  norm          .28495        1.2106        .13692E-02   -1.5601    
  10  Prefactor     8.1720        6.5288        .14025E-03   -1.5136    
  11  Prefactor     14.563        20.622        .10495E-03   -1.4945    
  12  Prefactor     .10000E-03    38.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.4992        .16181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     154.97        287.38        .16195E-03   -1.3212    
  16  Prefactor     .10000E-03    39.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.241        24.104        .74090E-04   -1.4626    
  18  norm          12.152        11.333        .11491E-03   -1.5011    
  19  norm          11.927        33.842        .11594E-03   -1.5017    
  20  Prefactor     7.9251        7.8458        .14242E-03   -1.5145    
  21  Prefactor     .10000E-03    24.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.6353        7.8432        .13641E-03   -1.5120    
  24  Normalizat    1.3566        .24273        .30169E-03   -.81892    
  25  Prefactor     .68043        .14085        .24488E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48685e-08
Minuit parameter uncertainties:
  1  30.8267
  2  0.361273
  3  3.78114e-07
  4  19.9617
  5  10.7966
  6  8.10589e-06
  7  1.34874e-06
  8  8.87387
  9  1.1745
  10  6.52933
  11  20.6317
  12  0.00021514
  13  1.80361e-07
  14  5.60834e-07
  15  290.033
  16  0.000239946
  17  24.1124
  18  11.3354
  19  33.8967
  20  7.8468
  21  7.05797e-06
  22  1.58385e-06
  23  7.84415
  24  0.242933
  25  0.140921
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.172e+00  6.529e+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:  6.804e-01  1.409e-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.357e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.05
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.00e-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) = 7876.82340609
delta logL = 2.03505040585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7876.80559277
delta logL = 2.0528637259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2617       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1891       1.0000          .0000       10.000    
     3 'Normalizat'    1.3756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67510       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=   7876.806     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2656        7.0745        .32923E-02   -.15534E-02
   2  Index         1.1893        .35627        .23113       -.68112E-04
   3  Normalizat    1.3757        .19969        .67790E-01   -.31934E-04
   4  Prefactor     .67508        .11961        .42069E-01   -.21217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.26558
  Index      = 1.18931
  Normalizat = 1.37566
  Prefactor  = 0.67508
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.806     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2656        8.3483        .65845E-03   -1.5099    
   2  Index         1.1893        .44973        .95480E-02   -.86661    
   3  Normalizat    1.3757        .23224        .29988E-03   -.81335    
   4  Prefactor     .67508        .13920        .24567E-03   -1.0451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14043e-12
Minuit parameter uncertainties:
  1  8.34931
  2  0.451187
  3  0.232417
  4  0.139273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837962': 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) = 7876.8055926
delta logL = 2.0528638952

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.266e+00  8.349e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.189e+00  4.512e-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:  6.751e-01  1.393e-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.376e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.14
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.19 +/- 0.45
Photon Flux (Free Index): 9.22e-09 +/- 8.34e-09
Energy Flux (Free Index): 7.96e-05 +/- 9.14e-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/837962/cmap_HighResolution_301017601_301276801_4FGL_J2324.7+0801_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='7.96e-05', photon_flux_error='2.35e-08', dlogl='2.05e+00', energy_flux='1.26e-05', photon_flux2='9.22e-09', job_status='DONE', time_completed='2021-09-29 16:17:49.771045', photon_index_error2='0.45', photon_index2='1.19', ts='6.05', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='9.14e-05', EG='1.36', time_epoch_completed='1632957469.77', return_code='0', job_id='837962', GAL2='0.68', EG2='1.38', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='8.34e-09', ts2='10.14', photon_index='2.23' WHERE bin_id='238' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:17:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 837962: <4FGL_J2324.7+0801_daily_bin238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin238 351.19 8.0282 301017601 301276801 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 :                                   689.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            728 sec.

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

