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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin471
RA = 351.19, Dec = 8.0282
tmin = 361411201, tmax = 361670401
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='839312', job_status='RUN', time_executed='2021-09-29 16:11:53.095001', time_epoch_executed='1632957113.1' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839312/ft1_4FGL_J2324.7+0801_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839312/ft2_4FGL_J2324.7+0801_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839312/ft1_4FGL_J2324.7+0801_daily_bin471.fits outfile=/scratch/kocevski/839312/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin471.fits ra=351.19 dec=8.0282 rad=12.0 tmin=361411201.0 tmax=361670401.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.54
user 3.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839312/ft2_4FGL_J2324.7+0801_daily_bin471.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/839312/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin471.fits evtable="EVENTS" outfile="/scratch/kocevski/839312/ft1_filtered_4FGL_J2324.7+0801_daily_bin471.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839312/ft1_filtered_4FGL_J2324.7+0801_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/839312/ft2_4FGL_J2324.7+0801_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/839312/ltcube_361411201_361670401_4FGL_J2324.7+0801_daily_bin471.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/839312/ft2_4FGL_J2324.7+0801_daily_bin471.fits
.....................!
real 11.78
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839312/ft1_filtered_4FGL_J2324.7+0801_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/839312/ft2_4FGL_J2324.7+0801_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/839312/ltcube_361411201_361670401_4FGL_J2324.7+0801_daily_bin471.fits outfile=/scratch/kocevski/839312/expmap_361411201_361670401_4FGL_J2324.7+0801_daily_bin471.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/839312/ltcube_361411201_361670401_4FGL_J2324.7+0801_daily_bin471.fits
.....................!
real 193.04
user 187.04
sys 5.60

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/839312/ft1_filtered_4FGL_J2324.7+0801_daily_bin471.fits scfile=/scratch/kocevski/839312/ft2_4FGL_J2324.7+0801_daily_bin471.fits outfile=/scratch/kocevski/839312/cmap_361411201_361670401_4FGL_J2324.7+0801_daily_bin471.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839312/ft1_filtered_4FGL_J2324.7+0801_daily_bin471.fits scfile=/scratch/kocevski/839312/ft2_4FGL_J2324.7+0801_daily_bin471.fits outfile=/scratch/kocevski/839312/cmap_HighResolution_361411201_361670401_4FGL_J2324.7+0801_daily_bin471.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/839312/ft1_filtered_4FGL_J2324.7+0801_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/839312/ft2_4FGL_J2324.7+0801_daily_bin471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839312/Model_4FGL_J2324.7+0801_daily_bin471.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/839312/ft1_filtered_4FGL_J2324.7+0801_daily_bin471.fits.....................!
real 72.85
user 71.43
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20523E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40018E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .30048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80704E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24542E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.291       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51831E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17264E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79432E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11889E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14440E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.138       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22674E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9826       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76965       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99484       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6632.553     FROM MIGRAD    STATUS=FAILED      1147 CALLS     2733 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.711        .40411E-03** at limit **
   2  Prefactor     .44539E-02    .32239        .34521E-03   -.12882E-01
   3  norm          .10000E-03    28.003        .42778E-03** at limit **
   4  Prefactor     10.201        39.113        .37675E-03   -.22571E-04
   5  Prefactor     8.7199        6.6281        .13634E-03   -.65039E-05
   6  Prefactor     .10000E-03    12.521        .18142E-02** at limit **
   7  Prefactor     .10000E-03    14.193        .18142E-02** at limit **
   8  Prefactor     12.411        8.2475        .11426E-03    .45183E-03
   9  norm          .10000E-03    2.5693        .10798E-02** at limit **
  10  Prefactor     10.860        9.6550        .12193E-03   -.61260E-04
  11  Prefactor     .10000E-03    21.007        .87416E-01** at limit **
  12  Prefactor     .10000E-03    43.828        .18142E-02** at limit **
  13  norm          1.5596        14.488        .17287E-02    .84233E-04
  14  Prefactor     4.8731        6.7550        .91731E-03    .10698E-03
  15  Prefactor     .10000E-03    76.687        .18142E-02** at limit **
  16  Prefactor     .10000E-03    9.2447        .20906E-02** at limit **
  17  Prefactor     .10000E-03    8.6392        .18142E-02** at limit **
  18  norm          .10000E-03    4.8309        .17472E-02** at limit **
  19  norm          .10000E-03    10.753        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.5047        .23367E-02** at limit **
  21  Prefactor     25.427        25.628        .79897E-04   -.15120E-03
  22  Prefactor     .10000E-03    13.283        .18142E-02** at limit **
  23  Prefactor     6.0248        5.7183        .16417E-03    .83794E-05
  24  Normalizat    .76089        .21646        .31097E-03    .15801E-03
  25  Prefactor     .99396        .13523        .17774E-03    .49626E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6632.553     FROM SIMPLEX   STATUS=UNCHANGED   1231 CALLS     3964 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.711        .72601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44539E-02    .32239        .94001E-06   -1.5721    
   3  norm          .10000E-03    28.003        .59125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.201        39.113        .90263E-06   -1.5069    
   5  Prefactor     8.7199        6.6281        .90354E-06   -1.5117    
   6  Prefactor     .10000E-03    12.521        .34380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.193        .59236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.411        8.2475        .89559E-06   -1.5003    
   9  norm          .10000E-03    2.5693        .16456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.860        9.6550        .89770E-06   -1.5049    
  11  Prefactor     .10000E-03    21.007        .42739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.828        .94506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5596        14.488        .93786E-06   -1.5458    
  14  Prefactor     4.8731        6.7550        .90615E-06   -1.5266    
  15  Prefactor     .10000E-03    76.687        .11028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2447        .15725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6392        .16477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8309        .15118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.753        .33427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5047        .15737E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.427        25.628        .87856E-06   -1.4699    
  22  Prefactor     .10000E-03    13.283        .24848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0248        5.7183        .90947E-06   -1.5217    
  24  Normalizat    .76089        .21646        .60680E-06   -1.0154    
  25  Prefactor     .99396        .13523        .55533E-06   -.92931    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6632.553     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     4387 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.713        .80822E-04** at limit **
   2  Prefactor     .44545E-02    .32782        .69041E-04    .41990E-04
   3  norm          .10000E-03    28.005        .85556E-04** at limit **
   4  Prefactor     10.201        39.106        .15070E-04   -.13579E-05
   5  Prefactor     8.7199        6.6309        .54537E-05   -.10840E-04
   6  Prefactor     .10000E-03    12.530        .36285E-03** at limit **
   7  Prefactor     .10000E-03    14.195        .36285E-03** at limit **
   8  Prefactor     12.411        8.2454        .45703E-05   -.81590E-04
   9  norm          .10000E-03    2.5912        .21596E-03** at limit **
  10  Prefactor     10.860        9.5951        .48771E-05   -.32635E-05
  11  Prefactor     .10000E-03    19.199        .92864E-01** at limit **
  12  Prefactor     .10000E-03    43.832        .36285E-03** at limit **
  13  norm          1.5596        13.996        .69146E-04    .98649E-06
  14  Prefactor     4.8731        6.6783        .36692E-04    .61968E-06
  15  Prefactor     .10000E-03    76.688        .36285E-03** at limit **
  16  Prefactor     .10000E-03    9.2526        .41813E-03** at limit **
  17  Prefactor     .10000E-03    8.6396        .36285E-03** at limit **
  18  norm          .10000E-03    4.8311        .34944E-03** at limit **
  19  norm          .10000E-03    10.755        .36285E-03** at limit **
  20  Prefactor     .10000E-03    4.5240        .46734E-03** at limit **
  21  Prefactor     25.428        25.629        .15979E-04   -.78261E-05
  22  Prefactor     .10000E-03    13.289        .36285E-03** at limit **
  23  Prefactor     6.0248        5.7183        .65666E-05   -.48476E-05
  24  Normalizat    .76089        .21652        .12439E-04   -.18279E-04
  25  Prefactor     .99396        .13538        .35548E-04   -.16247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00445445
  norm       = 0.0001
  Prefactor  = 10.2014
  Prefactor  = 8.7199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4108
  norm       = 0.0001
  Prefactor  = 10.8598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55956
  Prefactor  = 4.87315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4275
  Prefactor  = 0.0001
  Prefactor  = 6.02476
  Normalizat = 0.760889
  Prefactor  = 0.99396
 **********
 **   18 **HESSE 
 **********

 FCN=   6632.553     FROM HESSE     STATUS=OK           413 CALLS     4800 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.715        .16164E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44545E-02    .32841        .27617E-05   -1.5721    
   3  norm          .10000E-03    28.005        .17111E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.201        39.157        .30140E-05   -1.5069    
   5  Prefactor     8.7199        6.6325        .10907E-05   -1.5117    
   6  Prefactor     .10000E-03    12.530        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.195        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.411        8.2484        .91407E-06   -1.5003    
   9  norm          .10000E-03    2.5921        .43193E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.860        9.5941        .97542E-06   -1.5049    
  11  Prefactor     .10000E-03    19.741        .91139E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.832        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5596        13.996        .27659E-05   -1.5458    
  14  Prefactor     4.8731        6.6775        .14677E-05   -1.5266    
  15  Prefactor     .10000E-03    76.688        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2529        .83626E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6396        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8311        .69887E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.755        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5248        .93468E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.428        25.637        .31959E-05   -1.4699    
  22  Prefactor     .10000E-03    13.289        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0248        5.7184        .13133E-05   -1.5217    
  24  Normalizat    .76089        .21666        .24878E-05   -1.0154    
  25  Prefactor     .99396        .13543        .71096E-05   -.92931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6132e-12
Minuit parameter uncertainties:
  1  1.23234e-05
  2  0.0756319
  3  1.40917e-05
  4  39.2554
  5  6.63304
  6  2.50618e-06
  7  1.99116e-06
  8  8.24918
  9  6.03655e-07
  10  9.59547
  11  0.000132803
  12  2.41454e-05
  13  9.34665
  14  6.67852
  15  1.76399e-05
  16  4.08772e-06
  17  2.73314e-06
  18  4.79201e-08
  19  1.37537e-07
  20  2.56549e-06
  21  25.648
  22  1.80148e-06
  23  5.71892
  24  0.216902
  25  0.135471
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.086e+01  9.595e+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.940e-01  1.355e-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.609e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.48
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.47e-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) = 6632.49411964
delta logL = 0.0586644646373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6632.49123098
delta logL = 0.0615531245721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.415       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9508       1.0000          .0000       10.000    
     3 'Normalizat'    .77225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99213       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=   6632.491     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.401        10.385        .11857E-03    .24340E-03
   2  Index         1.9492        .86441        .11395E-01    .31372E-04
   3  Normalizat    .77268        .20932        .30887E-03    .13394E-03
   4  Prefactor     .99190        .13455        .17796E-03    .49050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.401
  Index      = 1.94921
  Normalizat = 0.772684
  Prefactor  = 0.991899
 **********
 **   18 **HESSE 
 **********

 FCN=   6632.491     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.401        10.470        .23715E-04   -1.5033    
   2  Index         1.9492        .87066        .45581E-03   -.65626    
   3  Normalizat    .77268        .20934        .12355E-04   -1.0109    
   4  Prefactor     .99190        .13464        .35591E-04   -.93000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5404e-10
Minuit parameter uncertainties:
  1  10.4721
  2  0.877826
  3  0.209555
  4  0.134682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839312': 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) = 6632.49122728
delta logL = 0.0615568233097

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.140e+01  1.047e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.949e+00  8.778e-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.919e-01  1.347e-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.727e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.60
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.95 +/- 0.88
Photon Flux (Free Index): 2.47e-08 +/- 4.65e-08
Energy Flux (Free Index): 1.95e-05 +/- 2.16e-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/839312/cmap_HighResolution_361411201_361670401_4FGL_J2324.7+0801_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='1.95e-05', photon_flux_error='3.45e-08', dlogl='6.16e-02', energy_flux='1.67e-05', photon_flux2='2.47e-08', job_status='DONE', time_completed='2021-09-29 16:24:08.369747', photon_index_error2='0.88', photon_index2='1.95', ts='6.48', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='0.76', time_epoch_completed='1632957848.37', return_code='0', job_id='839312', GAL2='0.99', EG2='0.77', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.65e-08', ts2='6.60', photon_index='2.23' WHERE bin_id='471' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:24:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 839312: <4FGL_J2324.7+0801_daily_bin471> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin471> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:21 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:22 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:10:22 2021
Terminated at Wed Sep 29 16:24:09 2021
Results reported at Wed Sep 29 16:24:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin471 351.19 8.0282 361411201 361670401 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 :                                   733.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

