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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin816
RA = 351.19, Dec = 8.0282
tmin = 450835201, tmax = 451094401
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='844231', job_status='RUN', time_executed='2021-09-29 16:29:39.745134', time_epoch_executed='1632958179.75' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844231/ft1_4FGL_J2324.7+0801_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844231/ft2_4FGL_J2324.7+0801_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844231/ft1_4FGL_J2324.7+0801_daily_bin816.fits outfile=/scratch/kocevski/844231/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin816.fits ra=351.19 dec=8.0282 rad=12.0 tmin=450835201.0 tmax=451094401.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.39
user 3.16
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844231/ft1_filtered_4FGL_J2324.7+0801_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/844231/ft2_4FGL_J2324.7+0801_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/844231/ltcube_450835201_451094401_4FGL_J2324.7+0801_daily_bin816.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/844231/ft2_4FGL_J2324.7+0801_daily_bin816.fits
.....................!
real 11.89
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844231/ft1_filtered_4FGL_J2324.7+0801_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/844231/ft2_4FGL_J2324.7+0801_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/844231/ltcube_450835201_451094401_4FGL_J2324.7+0801_daily_bin816.fits outfile=/scratch/kocevski/844231/expmap_450835201_451094401_4FGL_J2324.7+0801_daily_bin816.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/844231/ltcube_450835201_451094401_4FGL_J2324.7+0801_daily_bin816.fits
.....................!
real 190.70
user 185.68
sys 4.65

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/844231/ft1_filtered_4FGL_J2324.7+0801_daily_bin816.fits scfile=/scratch/kocevski/844231/ft2_4FGL_J2324.7+0801_daily_bin816.fits outfile=/scratch/kocevski/844231/cmap_450835201_451094401_4FGL_J2324.7+0801_daily_bin816.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844231/ft1_filtered_4FGL_J2324.7+0801_daily_bin816.fits scfile=/scratch/kocevski/844231/ft2_4FGL_J2324.7+0801_daily_bin816.fits outfile=/scratch/kocevski/844231/cmap_HighResolution_450835201_451094401_4FGL_J2324.7+0801_daily_bin816.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844231/ft1_filtered_4FGL_J2324.7+0801_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/844231/ft2_4FGL_J2324.7+0801_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844231/Model_4FGL_J2324.7+0801_daily_bin816.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/844231/ft1_filtered_4FGL_J2324.7+0801_daily_bin816.fits.....................!
real 78.65
user 77.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6306       1.0000         .10000E-03   10000.    
     3 'norm      '    42.856       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.199       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73112       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.991       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14866E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1990       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1887       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0226       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.216       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6815       1.0000         .10000E-03   10000.    
    19 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    21 'Prefactor '    71.063       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.913       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89126       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95011       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=   7414.180     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3607 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.665        .12811E-05** at limit **
   2  Prefactor     1.6305        .25558        .24061E-08    .20195E-03
   3  norm          42.855        20.867        .25422E-06    .82418E-04
   4  Prefactor     25.202        31.116        .28134E-06    .15658E-04
   5  Prefactor     .76451        3.8773       -.41134E-07   -.28582E-04
   6  Prefactor     .10000E-03    2.7711        .27500E-08** at limit **
   7  Prefactor     18.991        16.628        .41853E-06    .89966E-04
   8  Prefactor     .10000E-03    15.221       -.13758E-05** at limit **
   9  norm          1.1999        1.4469        .70551E-07   -.34847E-03
  10  Prefactor     4.1890        3.5149       -.11402E-05    .18527E-02
  11  Prefactor     2.4127        26.009       -.42283E-05   -.15600E-03
  12  Prefactor     .10000E-03    15.834        .29330E-05** at limit **
  13  norm          .10000E-03    2.1645        .24480E-07** at limit **
  14  Prefactor     4.0235        6.7046        .15111E-05    .28205E-03
  15  Prefactor     .10000E-03    157.69       -.16767E-05** at limit **
  16  Prefactor     12.205        18.660        .10768E-05    .99023E-04
  17  Prefactor     .10000E-03    7.1398        .18543E-07** at limit **
  18  norm          6.6815        9.6371        .90896E-07    .13970E-04
  19  norm          .10000E-03    16.897       -.17760E-05** at limit **
  20  Prefactor     15.706        8.8358       -.52704E-06   -.22509E-03
  21  Prefactor     71.065        50.653        .69161E-06    .55095E-04
  22  Prefactor     26.914        25.573        .19744E-07    .81362E-06
  23  Prefactor     .10000E-03    2.8945       -.17708E-08** at limit **
  24  Normalizat    .89131        .21742       -.36415E-06    .31720E-04
  25  Prefactor     .95002        .12405       -.46496E-07    .40181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.63049
  norm       = 42.8552
  Prefactor  = 25.2021
  Prefactor  = 0.764515
  Prefactor  = 0.0001
  Prefactor  = 18.9913
  Prefactor  = 0.0001
  norm       = 1.19985
  Prefactor  = 4.18899
  Prefactor  = 2.41272
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 4.0235
  Prefactor  = 0.000100001
  Prefactor  = 12.2054
  Prefactor  = 0.0001
  norm       = 6.68147
  norm       = 0.000100001
  Prefactor  = 15.7056
  Prefactor  = 71.0655
  Prefactor  = 26.9138
  Prefactor  = 0.0001
  Normalizat = 0.891312
  Prefactor  = 0.950023
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.180     FROM HESSE     STATUS=OK           433 CALLS     4040 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6305        .25448        .16347E-04   -1.5453    
   3  norm          42.855        20.894        .61238E-04   -1.4398    
   4  Prefactor     25.202        31.136        .79799E-04   -1.4704    
   5  Prefactor     .76451        15.206        .31693E-02   -1.5533    
   6  Prefactor     .10000E-03    2.7736        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.991        16.647        .91909E-04   -1.4836    
   8  Prefactor     .10000E-03    15.497        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1999        1.4189        .10396E-03   -1.5489    
  10  Prefactor     4.1890        4.2116        .86180E-03   -1.5299    
  11  Prefactor     2.4127        27.436        .26187E-03   -1.5397    
  12  Prefactor     .10000E-03    16.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1672        .12365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0235        6.7604        .20106E-03   -1.5307    
  15  Prefactor     .10000E-03    157.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.205        18.687        .11461E-03   -1.5009    
  17  Prefactor     .10000E-03    7.1467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6815        9.6331        .15524E-03   -1.5191    
  19  norm          .10000E-03    17.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.706        8.9010        .10106E-03   -1.4915    
  21  Prefactor     71.065        50.829        .47621E-04   -1.4020    
  22  Prefactor     26.914        25.597        .77222E-04   -1.4670    
  23  Prefactor     .10000E-03    2.8991        .14307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89131        .25136        .34522E-03   -.96766    
  25  Prefactor     .95002        .14489        .20682E-03   -.94414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32009e-08
Minuit parameter uncertainties:
  1  0.000293845
  2  0.25448
  3  20.8976
  4  31.1559
  5  6.82078
  6  1.1219e-08
  7  16.6509
  8  5.30793e-05
  9  1.41892
  10  4.21186
  11  16.2812
  12  0.00039221
  13  7.06554e-06
  14  6.76165
  15  0.000716417
  16  18.696
  17  4.07115e-06
  18  9.63534
  19  0.000254069
  20  8.9017
  21  50.8597
  22  25.6077
  23  9.99085e-07
  24  0.251692
  25  0.144951
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.189e+00  4.212e+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.500e-01  1.450e-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:  8.913e-01  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.37
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.51e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 6.44e-06 +/- 6.47e-06

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) = 7412.65415586
delta logL = 1.52562824258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7412.6475395
delta logL = 1.53224459696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4398       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0884       1.0000          .0000       10.000    
     3 'Normalizat'    .89879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94893       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=   7412.648     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4398        4.4452        .47778E-02   -.19005E-02
   2  Index         1.0884        .43809        .29014       -.97783E-04
   3  Normalizat    .89880        .19763        .77685E-01    .71968E-04
   4  Prefactor     .94893        .12258        .45626E-01   -.20358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4398
  Index      = 1.0884
  Normalizat = 0.898796
  Prefactor  = 0.948929
 **********
 **   18 **HESSE 
 **********

 FCN=   7412.648     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4398        5.5391        .17741E-03   -1.5287    
   2  Index         1.0884        .58840        .11863E-01   -.89838    
   3  Normalizat    .89880        .22817        .34385E-03   -.96502    
   4  Prefactor     .94893        .14181        .20689E-03   -.94452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50205e-09
Minuit parameter uncertainties:
  1  5.53974
  2  0.59196
  3  0.228413
  4  0.141864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844231': 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) = 7412.6475395
delta logL = 1.53224459705

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.440e+00  5.540e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.088e+00  5.920e-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.489e-01  1.419e-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:  8.988e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.42
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.09 +/- 0.59
Photon Flux (Free Index): 4.50e-09 +/- 5.09e-09
Energy Flux (Free Index): 5.18e-05 +/- 7.65e-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/844231/cmap_HighResolution_450835201_451094401_4FGL_J2324.7+0801_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-08', energy_flux2='5.18e-05', photon_flux_error='1.52e-08', dlogl='1.53e+00', energy_flux='6.44e-06', photon_flux2='4.50e-09', job_status='DONE', time_completed='2021-09-29 16:41:37.173400', photon_index_error2='0.59', photon_index2='1.09', ts='6.37', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='7.65e-05', EG='0.89', time_epoch_completed='1632958897.17', return_code='0', job_id='844231', GAL2='0.95', EG2='0.90', return_code2='0', energy_flux_error='6.47e-06', photon_flux_error2='5.09e-09', ts2='9.42', photon_index='2.23' WHERE bin_id='816' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:37 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 842004: <4FGL_J2324.7+0801_daily_bin816> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin816 351.19 8.0282 450835201 451094401 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 :                                   719.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 844231: <4FGL_J2324.7+0801_daily_bin816> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin816 351.19 8.0282 450835201 451094401 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

