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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin415
RA = 351.19, Dec = 8.0282
tmin = 346896001, tmax = 347155201
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='839228', job_status='RUN', time_executed='2021-09-29 16:13:07.814120', time_epoch_executed='1632957187.81' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839228/ft1_4FGL_J2324.7+0801_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839228/ft2_4FGL_J2324.7+0801_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839228/ft1_4FGL_J2324.7+0801_daily_bin415.fits outfile=/scratch/kocevski/839228/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin415.fits ra=351.19 dec=8.0282 rad=12.0 tmin=346896001.0 tmax=347155201.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.44
user 3.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839228/ft1_filtered_4FGL_J2324.7+0801_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/839228/ft2_4FGL_J2324.7+0801_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/839228/ltcube_346896001_347155201_4FGL_J2324.7+0801_daily_bin415.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/839228/ft2_4FGL_J2324.7+0801_daily_bin415.fits
.....................!
real 12.30
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839228/ft1_filtered_4FGL_J2324.7+0801_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/839228/ft2_4FGL_J2324.7+0801_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/839228/ltcube_346896001_347155201_4FGL_J2324.7+0801_daily_bin415.fits outfile=/scratch/kocevski/839228/expmap_346896001_347155201_4FGL_J2324.7+0801_daily_bin415.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/839228/ltcube_346896001_347155201_4FGL_J2324.7+0801_daily_bin415.fits
.....................!
real 191.25
user 186.03
sys 4.80

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/839228/ft1_filtered_4FGL_J2324.7+0801_daily_bin415.fits scfile=/scratch/kocevski/839228/ft2_4FGL_J2324.7+0801_daily_bin415.fits outfile=/scratch/kocevski/839228/cmap_346896001_347155201_4FGL_J2324.7+0801_daily_bin415.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/839228/ft1_filtered_4FGL_J2324.7+0801_daily_bin415.fits scfile=/scratch/kocevski/839228/ft2_4FGL_J2324.7+0801_daily_bin415.fits outfile=/scratch/kocevski/839228/cmap_HighResolution_346896001_347155201_4FGL_J2324.7+0801_daily_bin415.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.60
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57774E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    10.294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9658       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5145       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.340       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.046       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11429E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.275       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5966       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64358       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=   7419.345     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2853 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.654       -.30597E-05** at limit **
   2  Prefactor     .57787E-01    .10935       -.12321E-06   -.53042E-02
   3  norm          10.285        18.465       -.49050E-06   -.27227E-04
   4  Prefactor     .10000E-03    22.872        .32800E-05** at limit **
   5  Prefactor     .10000E-03    2.3274       -.11391E-07** at limit **
   6  Prefactor     .10000E-03    11.267        .70896E-05** at limit **
   7  Prefactor     49.372        26.049       -.20787E-06    .61958E-06
   8  Prefactor     8.9667        8.2938       -.24998E-06   -.10149E-03
   9  norm          1.5145        .87581        .55870E-08    .97474E-04
  10  Prefactor     19.750        10.843       -.87318E-07   -.19472E-04
  11  Prefactor     .10000E-03    10.774        .95090E-06** at limit **
  12  Prefactor     30.334        58.603       -.81456E-05    .32285E-05
  13  norm          .10000E-03    3.2318       -.69741E-08** at limit **
  14  Prefactor     .10000E-03    8.0289        .28708E-06** at limit **
  15  Prefactor     .10000E-03    67.297       -.12577E-05** at limit **
  16  Prefactor     19.038        13.196        .80214E-06    .79116E-04
  17  Prefactor     .10000E-03    10.609       -.43576E-05** at limit **
  18  norm          .10000E-03    4.4760       -.24847E-07** at limit **
  19  norm          .10000E-03    18.218       -.38593E-05** at limit **
  20  Prefactor     .10000E-03    2.5713       -.37121E-07** at limit **
  21  Prefactor     28.877        45.676       -.32329E-06    .92192E-05
  22  Prefactor     30.274        20.949       -.68974E-06    .10737E-04
  23  Prefactor     .10000E-03    3.4001        .12707E-07** at limit **
  24  Normalizat    1.5965        .21464        .53722E-06   -.32387E-04
  25  Prefactor     .64368        .12194        .20051E-06   -.18986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0577866
  norm       = 10.2845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.3716
  Prefactor  = 8.96673
  norm       = 1.51453
  Prefactor  = 19.7501
  Prefactor  = 0.0001
  Prefactor  = 30.3339
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0384
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8771
  Prefactor  = 30.2739
  Prefactor  = 0.0001
  Normalizat = 1.5965
  Prefactor  = 0.643682
 **********
 **   18 **HESSE 
 **********

 FCN=   7419.345     FROM HESSE     STATUS=OK           425 CALLS     3278 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .57787E-01    .11140        .38459E-04   -1.5660    
   3  norm          10.285        18.490        .12488E-03   -1.5066    
   4  Prefactor     .10000E-03    22.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3357        .12830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.372        26.099        .57070E-04   -1.4302    
   8  Prefactor     8.9667        8.3027        .13386E-03   -1.5109    
   9  norm          1.5145        .87619        .59047E-04   -1.5462    
  10  Prefactor     19.750        10.851        .90128E-04   -1.4819    
  11  Prefactor     .10000E-03    10.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.334        58.468        .72740E-04   -1.4606    
  13  norm          .10000E-03    3.2420        .15116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    67.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.038        13.186        .91776E-04   -1.4835    
  17  Prefactor     .10000E-03    10.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4785        .17798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6002        .13450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.877        45.795        .74555E-04   -1.4633    
  22  Prefactor     30.274        20.965        .72817E-04   -1.4607    
  23  Prefactor     .10000E-03    3.4046        .15511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5965        .25363        .27086E-03   -.75102    
  25  Prefactor     .64368        .14277        .24029E-03   -1.0578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18578e-10
Minuit parameter uncertainties:
  1  9.51632e-06
  2  0.111401
  3  18.5001
  4  1.29961e-05
  5  1.98343e-07
  6  2.72454e-05
  7  26.1052
  8  8.30381
  9  0.876195
  10  10.8524
  11  5.72051e-07
  12  58.5792
  13  1.35416e-06
  14  1.22482e-05
  15  8.78137e-06
  16  13.1877
  17  1.74158e-06
  18  1.1483e-06
  19  3.48272e-05
  20  7.10627e-06
  21  45.8509
  22  20.9696
  23  1.20701e-06
  24  0.253834
  25  0.142848
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.975e+01  1.085e+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:  6.437e-01  1.428e-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.596e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.12
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.11e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.67e-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) = 7419.33988214
delta logL = 0.00538153630077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7419.3353465
delta logL = 0.00991717706529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.040       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1553       1.0000          .0000       10.000    
     3 'Normalizat'    1.6025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64156       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=   7419.335     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      250 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.044        15.135        .87320E-04    .64186E-04
   2  Index         2.1552        .53365        .67335E-02    .48203E-03
   3  Normalizat    1.6025        .24175        .27046E-03   -.82078E-04
   4  Prefactor     .64153        .14217        .24066E-03   -.18613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0445
  Index      = 2.15522
  Normalizat = 1.60254
  Prefactor  = 0.641531
 **********
 **   18 **HESSE 
 **********

 FCN=   7419.335     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.044        14.591        .34928E-05   -1.4790    
   2  Index         2.1552        .51414        .13467E-02   -.60524    
   3  Normalizat    1.6025        .24156        .54091E-04   -.74937    
   4  Prefactor     .64153        .14218        .96263E-05   -1.0586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86195e-11
Minuit parameter uncertainties:
  1  14.5931
  2  0.515491
  3  0.24174
  4  0.142256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839228': 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) = 7419.33534644
delta logL = 0.00991723996049

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.104e+01  1.459e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.155e+00  5.155e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  6.415e-01  1.423e-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.603e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.13
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.16 +/- 0.52
Photon Flux (Free Index): 6.60e-08 +/- 5.13e-08
Energy Flux (Free Index): 3.23e-05 +/- 2.36e-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/839228/cmap_HighResolution_346896001_347155201_4FGL_J2324.7+0801_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.11e-08', energy_flux2='3.23e-05', photon_flux_error='3.90e-08', dlogl='9.92e-03', energy_flux='3.04e-05', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-09-29 16:24:04.934581', photon_index_error2='0.52', photon_index2='2.16', ts='7.12', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='2.36e-05', EG='1.60', time_epoch_completed='1632957844.93', return_code='0', job_id='839228', GAL2='0.64', EG2='1.60', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.13e-08', ts2='7.13', photon_index='2.23' WHERE bin_id='415' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:24:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 839228: <4FGL_J2324.7+0801_daily_bin415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin415 351.19 8.0282 346896001 347155201 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 :                                   656.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            832 sec.

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

