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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin929
RA = 351.19, Dec = 8.0282
tmin = 480124801, tmax = 480384001
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='842171', job_status='RUN', time_executed='2021-09-29 16:20:49.321596', time_epoch_executed='1632957649.32' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842171/ft1_4FGL_J2324.7+0801_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842171/ft2_4FGL_J2324.7+0801_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842171/ft1_4FGL_J2324.7+0801_daily_bin929.fits outfile=/scratch/kocevski/842171/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin929.fits ra=351.19 dec=8.0282 rad=12.0 tmin=480124801.0 tmax=480384001.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.53
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842171/ft1_filtered_4FGL_J2324.7+0801_daily_bin929.fits" evtable="EVENTS" scfile=/scratch/kocevski/842171/ft2_4FGL_J2324.7+0801_daily_bin929.fits sctable="SC_DATA" outfile=/scratch/kocevski/842171/ltcube_480124801_480384001_4FGL_J2324.7+0801_daily_bin929.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/842171/ft2_4FGL_J2324.7+0801_daily_bin929.fits
.....................!
real 12.33
user 11.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842171/ft1_filtered_4FGL_J2324.7+0801_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/842171/ft2_4FGL_J2324.7+0801_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/842171/ltcube_480124801_480384001_4FGL_J2324.7+0801_daily_bin929.fits outfile=/scratch/kocevski/842171/expmap_480124801_480384001_4FGL_J2324.7+0801_daily_bin929.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/842171/ltcube_480124801_480384001_4FGL_J2324.7+0801_daily_bin929.fits
.....................!
real 190.40
user 185.36
sys 4.56

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/842171/ft1_filtered_4FGL_J2324.7+0801_daily_bin929.fits scfile=/scratch/kocevski/842171/ft2_4FGL_J2324.7+0801_daily_bin929.fits outfile=/scratch/kocevski/842171/cmap_480124801_480384001_4FGL_J2324.7+0801_daily_bin929.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.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842171/ft1_filtered_4FGL_J2324.7+0801_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/842171/ft2_4FGL_J2324.7+0801_daily_bin929.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842171/Model_4FGL_J2324.7+0801_daily_bin929.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/842171/ft1_filtered_4FGL_J2324.7+0801_daily_bin929.fits.....................!
real 98.30
user 96.87
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9419       1.0000         .10000E-03   10000.    
     3 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9742       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7788       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.537       1.0000         .10000E-03   10000.    
    13 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8582       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23751E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.930       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.016       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5195       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98904       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=   9215.026     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2982 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.215       -.14182E-05** at limit **
   2  Prefactor     1.9419        .27594       -.27261E-07   -.11470E-02
   3  norm          .10000E-03    41.439       -.89332E-06** at limit **
   4  Prefactor     5.6154        36.005        .21028E-05    .32011E-04
   5  Prefactor     1.5763        10.585        .39285E-05    .10813E-03
   6  Prefactor     .10000E-03    7.7116        .95013E-07** at limit **
   7  Prefactor     1.1534        41.836        .15766E-05   -.30877E-04
   8  Prefactor     9.9757        9.5892        .78505E-06    .19231E-03
   9  norm          1.7790        1.2561        .15939E-06    .56150E-03
  10  Prefactor     1.0296        11.398        .20174E-05   -.19987E-03
  11  Prefactor     .10000E-03    82.069        .13444E-05** at limit **
  12  Prefactor     11.531        33.736        .14475E-05    .32257E-04
  13  norm          .10000E-03    6.1605       -.36607E-06** at limit **
  14  Prefactor     .80173        3.9722        .18742E-05   -.10211E-02
  15  Prefactor     .10003E-03    458.46       -.12832E-04** at limit **
  16  Prefactor     4.3448        12.116        .86656E-06   -.12840E-04
  17  Prefactor     7.8717        23.709       -.39617E-05   -.22175E-03
  18  norm          .10000E-03    4.6319       -.13854E-07** at limit **
  19  norm          .10000E-03    10.368       -.47744E-06** at limit **
  20  Prefactor     .10003E-03    4.8728       -.10032E-05** at limit **
  21  Prefactor     35.962        38.499       -.33893E-05   -.23878E-03
  22  Prefactor     11.014        20.957        .11799E-05    .25600E-04
  23  Prefactor     .10000E-03    4.8880        .16850E-07** at limit **
  24  Normalizat    1.5196        .22819        .13928E-05   -.20437E-03
  25  Prefactor     .98897        .13361       -.12132E-05   -.11163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.94193
  norm       = 0.0001
  Prefactor  = 5.61538
  Prefactor  = 1.57629
  Prefactor  = 0.0001
  Prefactor  = 1.15345
  Prefactor  = 9.97574
  norm       = 1.77899
  Prefactor  = 1.02965
  Prefactor  = 0.0001
  Prefactor  = 11.5309
  norm       = 0.0001
  Prefactor  = 0.801732
  Prefactor  = 0.00010003
  Prefactor  = 4.34477
  Prefactor  = 7.87173
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 35.9615
  Prefactor  = 11.0141
  Prefactor  = 0.0001
  Normalizat = 1.51965
  Prefactor  = 0.988972
 **********
 **   18 **HESSE 
 **********

 FCN=   9215.026     FROM HESSE     STATUS=OK           431 CALLS     3413 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9419        .27587        .18040E-04   -1.5429    
   3  norm          .10000E-03    42.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6154        36.069        .16946E-03   -1.5234    
   5  Prefactor     1.5763        10.551        .33827E-03   -1.5457    
   6  Prefactor     .10000E-03    7.7478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1534        43.547        .43043E-03   -1.5493    
   8  Prefactor     9.9757        9.5673        .12688E-03   -1.5076    
   9  norm          1.7790        1.2440        .85187E-04   -1.5441    
  10  Prefactor     1.0296        12.562        .50189E-03   -1.5505    
  11  Prefactor     .10000E-03    84.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.531        33.766        .11795E-03   -1.5029    
  13  norm          .10000E-03    6.2225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .80173        13.302        .32338E-02   -1.5529    
  15  Prefactor     .10003E-03    463.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3448        11.632        .19451E-03   -1.5291    
  17  Prefactor     7.8717        23.683        .14304E-03   -1.5147    
  18  norm          .10000E-03    4.6365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    25.288        .35795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.962        39.212        .66858E-04   -1.4508    
  22  Prefactor     11.014        20.998        .12071E-03   -1.5044    
  23  Prefactor     .10000E-03    4.9371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5196        .26589        .32840E-03   -.77228    
  25  Prefactor     .98897        .15536        .24046E-03   -.93098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00306e-09
Minuit parameter uncertainties:
  1  0.000204712
  2  0.275874
  3  0.000176529
  4  28.4883
  5  8.15823
  6  1.23635e-05
  7  14.185
  8  9.5688
  9  1.24402
  10  7.19457
  11  0.000367958
  12  33.8217
  13  4.69846e-05
  14  6.5327
  15  0.00748495
  16  11.6384
  17  23.7113
  18  3.85593e-06
  19  1.3777e-05
  20  0.00167012
  21  39.2396
  22  21.0118
  23  3.1573e-07
  24  0.266138
  25  0.155431
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.030e+00  7.195e+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.890e-01  1.554e-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.520e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842171/likelihoodResults_480124801_480384001_4FGL_J2324.7+0801_daily_bin929.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) = 9215.02191498
delta logL = 0.00430903949746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9215.02035897
delta logL = 0.00586504957209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5232       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0282       1.0000          .0000       10.000    
     3 'Normalizat'    1.5206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98826       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=   9215.020     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      271 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5082        13.618        .17305E-02    .40278E-03
   2  Index         2.0324        1.6590        .95567E-02   -.13887E-04
   3  Normalizat    1.5206        .24864        .32831E-03   -.29780E-04
   4  Prefactor     .98820        .15266        .24054E-03   -.20418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50816
  Index      = 2.03236
  Normalizat = 1.5206
  Prefactor  = 0.988201
 **********
 **   18 **HESSE 
 **********

 FCN=   9215.020     FROM HESSE     STATUS=OK            27 CALLS      298 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5082        12.737        .34609E-03   -1.5462    
   2  Index         2.0324        1.6087        .38227E-03   -.63544    
   3  Normalizat    1.5206        .24885        .13132E-04   -.77201    
   4  Prefactor     .98820        .15276        .96217E-05   -.93124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68571e-11
Minuit parameter uncertainties:
  1  8.76784
  2  1.65491
  3  0.249052
  4  0.152824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842171': 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) = 9215.02035466
delta logL = 0.00586935154024

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.508e+00  8.768e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.032e+00  1.655e+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.882e-01  1.528e-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.521e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/842171/cmap_HighResolution_480124801_480384001_4FGL_J2324.7+0801_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-29 16:35:17.247942', job_id='842171', GAL2='0.99', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1632958517.25', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.87e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='929' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:35:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 842171: <4FGL_J2324.7+0801_daily_bin929> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin929> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:29 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:31 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:20:31 2021
Terminated at Wed Sep 29 16:35:17 2021
Results reported at Wed Sep 29 16:35:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin929 351.19 8.0282 480124801 480384001 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 :                                   863.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

