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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1419
RA = 351.19, Dec = 8.0282
tmin = 607132801, tmax = 607392001
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='843971', job_status='RUN', time_executed='2021-09-29 16:28:54.603162', time_epoch_executed='1632958134.6' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843971/ft1_4FGL_J2324.7+0801_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843971/ft2_4FGL_J2324.7+0801_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843971/ft1_4FGL_J2324.7+0801_daily_bin1419.fits outfile=/scratch/kocevski/843971/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1419.fits ra=351.19 dec=8.0282 rad=12.0 tmin=607132801.0 tmax=607392001.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 5.42
user 5.13
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/843971/ft2_4FGL_J2324.7+0801_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/843971/ltcube_607132801_607392001_4FGL_J2324.7+0801_daily_bin1419.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/843971/ft2_4FGL_J2324.7+0801_daily_bin1419.fits
.....................!
real 11.68
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/843971/ft2_4FGL_J2324.7+0801_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/843971/ltcube_607132801_607392001_4FGL_J2324.7+0801_daily_bin1419.fits outfile=/scratch/kocevski/843971/expmap_607132801_607392001_4FGL_J2324.7+0801_daily_bin1419.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/843971/ltcube_607132801_607392001_4FGL_J2324.7+0801_daily_bin1419.fits
.....................!
real 190.54
user 184.93
sys 5.25

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/843971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1419.fits scfile=/scratch/kocevski/843971/ft2_4FGL_J2324.7+0801_daily_bin1419.fits outfile=/scratch/kocevski/843971/cmap_607132801_607392001_4FGL_J2324.7+0801_daily_bin1419.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1419.fits scfile=/scratch/kocevski/843971/ft2_4FGL_J2324.7+0801_daily_bin1419.fits outfile=/scratch/kocevski/843971/cmap_HighResolution_607132801_607392001_4FGL_J2324.7+0801_daily_bin1419.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/843971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/843971/ft2_4FGL_J2324.7+0801_daily_bin1419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843971/Model_4FGL_J2324.7+0801_daily_bin1419.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/843971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1419.fits.....................!
real 66.98
user 65.60
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .23189       1.0000         .10000E-03   10000.    
     3 'norm      '    11.389       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92087       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2161       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.7512       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85363       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11495E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2140       1.0000         .10000E-03   10000.    
    19 'norm      '    .11255E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9327       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .74466E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.067       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35560       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0793       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82710       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=   6073.123     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2953 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0570        .90449E-08** at limit **
   2  Prefactor     .23185        .14879       -.20358E-08   -.49567E-03
   3  norm          11.388        11.862        .32696E-06    .80007E-04
   4  Prefactor     .10000E-03    56.038       -.46101E-06** at limit **
   5  Prefactor     15.529        10.774       -.26149E-06   -.15857E-03
   6  Prefactor     .10000E-03    11.420       -.15937E-07** at limit **
   7  Prefactor     6.7114        11.659        .29812E-06    .31203E-04
   8  Prefactor     .92756        9.6264        .39111E-05   -.15777E-03
   9  norm          1.9895        1.0362        .22124E-07   -.67981E-04
  10  Prefactor     21.580        12.014       -.11654E-05   -.74165E-03
  11  Prefactor     8.2022        26.033        .43007E-06    .63789E-04
  12  Prefactor     .10000E-03    10.860        .25625E-07** at limit **
  13  norm          9.7834        13.924       -.26470E-06   -.44984E-03
  14  Prefactor     .82697        7.9910        .15267E-05   -.48847E-03
  15  Prefactor     .10000E-03    76.399        .20076E-06** at limit **
  16  Prefactor     .10000E-03    8.1067       -.10562E-06** at limit **
  17  Prefactor     .10000E-03    19.327        .78065E-07** at limit **
  18  norm          2.2157        14.877        .13356E-06   -.67619E-04
  19  norm          .10000E-03    22.345       -.60635E-06** at limit **
  20  Prefactor     1.9332        3.8783        .40634E-06   -.19522E-04
  21  Prefactor     .10088E-03    44.230       -.11523E-05** at limit **
  22  Prefactor     34.084        30.854       -.18238E-05   -.24674E-03
  23  Prefactor     .35454        5.9335        .12775E-06   -.12182E-03
  24  Normalizat    1.0794        .21823        .36831E-06   -.18911E-03
  25  Prefactor     .82718        .12598       -.20302E-06   -.17977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.231852
  norm       = 11.3878
  Prefactor  = 0.0001
  Prefactor  = 15.5292
  Prefactor  = 0.0001
  Prefactor  = 6.7114
  Prefactor  = 0.927559
  norm       = 1.98948
  Prefactor  = 21.5801
  Prefactor  = 8.20219
  Prefactor  = 0.0001
  norm       = 9.78337
  Prefactor  = 0.826965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2157
  norm       = 0.0001
  Prefactor  = 1.93318
  Prefactor  = 0.000100882
  Prefactor  = 34.0837
  Prefactor  = 0.354536
  Normalizat = 1.07938
  Prefactor  = 0.827185
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.123     FROM HESSE     STATUS=OK           441 CALLS     3394 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .23185        .14565        .22884E-04   -1.5612    
   3  norm          11.388        11.873        .11871E-03   -1.5033    
   4  Prefactor     .10000E-03    56.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.529        10.752        .10163E-03   -1.4920    
   6  Prefactor     .10000E-03    11.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7114        11.656        .15488E-03   -1.5190    
   8  Prefactor     .92756        11.072        .47304E-03   -1.5515    
   9  norm          1.9895        1.0375        .14687E-03   -1.5426    
  10  Prefactor     21.580        12.417        .86216E-04   -1.4779    
  11  Prefactor     8.2022        26.605        .13987E-03   -1.5135    
  12  Prefactor     .10000E-03    10.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.7834        15.185        .12833E-03   -1.5082    
  14  Prefactor     .82697        39.847        .31983E-02   -1.5526    
  15  Prefactor     .10000E-03    76.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.1497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2157        14.968        .27641E-03   -1.5410    
  19  norm          .10000E-03    22.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9332        3.8683        .20599E-03   -1.5430    
  21  Prefactor     .10088E-03    43.794        .12955       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.084        31.951        .68656E-04   -1.4540    
  23  Prefactor     .35454        24.601        .36956E-02   -1.5589    
  24  Normalizat    1.0794        .25428        .29389E-03   -.90417    
  25  Prefactor     .82718        .14726        .20374E-03   -.98734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32638e-08
Minuit parameter uncertainties:
  1  3.59355e-07
  2  0.145649
  3  11.8754
  4  0.000112303
  5  10.7537
  6  3.9237e-06
  7  11.6604
  8  6.41047
  9  1.03751
  10  12.4185
  11  26.6434
  12  2.94588e-06
  13  15.1911
  14  11.4883
  15  5.00752e-05
  16  1.50455e-05
  17  4.8259e-05
  18  11.5218
  19  0.000104101
  20  3.86876
  21  0.0124357
  22  31.9674
  23  5.90828
  24  0.254567
  25  0.147333
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.158e+01  1.242e+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:  8.272e-01  1.473e-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.079e+00  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.18
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.77e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.91e-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) = 6072.7334983
delta logL = 0.389042763373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.73283739
delta logL = 0.389703678414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.029       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8747       1.0000          .0000       10.000    
     3 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82150       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=   6072.733     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      303 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.032        16.664        .74360E-04    .70328E-05
   2  Index         1.8747        .38384        .60501E-02    .18761E-03
   3  Normalizat    1.0977        .23272        .29176E-03   -.97416E-06
   4  Prefactor     .82158        .14375        .20435E-03   -.81225E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0323
  Index      = 1.87466
  Normalizat = 1.09766
  Prefactor  = 0.821579
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.733     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.032        16.551        .29744E-05   -1.4630    
   2  Index         1.8747        .38120        .12100E-02   -.67522    
   3  Normalizat    1.0977        .23290        .11670E-04   -.89827    
   4  Prefactor     .82158        .14387        .81740E-05   -.98938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5721e-13
Minuit parameter uncertainties:
  1  16.5541
  2  0.381806
  3  0.233117
  4  0.143937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843971': 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) = 6072.73283721
delta logL = 0.38970385205

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.903e+01  1.655e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.875e+00  3.818e-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:  8.216e-01  1.439e-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.098e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.98
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.87 +/- 0.38
Photon Flux (Free Index): 5.57e-08 +/- 3.95e-08
Energy Flux (Free Index): 5.36e-05 +/- 4.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/843971/cmap_HighResolution_607132801_607392001_4FGL_J2324.7+0801_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.77e-08', energy_flux2='5.36e-05', photon_flux_error='4.47e-08', dlogl='3.90e-01', energy_flux='3.32e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-29 16:42:08.218709', photon_index_error2='0.38', photon_index2='1.87', ts='8.18', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='4.45e-05', EG='1.08', time_epoch_completed='1632958928.22', return_code='0', job_id='843971', GAL2='0.82', EG2='1.10', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='3.95e-08', ts2='8.98', photon_index='2.23' WHERE bin_id='1419' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:42:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 843971: <4FGL_J2324.7+0801_daily_bin1419> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1419> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:57 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25: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:25:58 2021
Terminated at Wed Sep 29 16:42:09 2021
Results reported at Wed Sep 29 16:42:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1419 351.19 8.0282 607132801 607392001 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

