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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin897
RA = 351.19, Dec = 8.0282
tmin = 471830401, tmax = 472089601
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='842123', job_status='RUN', time_executed='2021-09-29 16:20:54.793741', time_epoch_executed='1632957654.79' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842123/ft1_4FGL_J2324.7+0801_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842123/ft2_4FGL_J2324.7+0801_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842123/ft1_4FGL_J2324.7+0801_daily_bin897.fits outfile=/scratch/kocevski/842123/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin897.fits ra=351.19 dec=8.0282 rad=12.0 tmin=471830401.0 tmax=472089601.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.57
user 3.35
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842123/ft1_filtered_4FGL_J2324.7+0801_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/842123/ft2_4FGL_J2324.7+0801_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/842123/ltcube_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.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/842123/ft2_4FGL_J2324.7+0801_daily_bin897.fits
.....................!
real 11.65
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842123/ft1_filtered_4FGL_J2324.7+0801_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/842123/ft2_4FGL_J2324.7+0801_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/842123/ltcube_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.fits outfile=/scratch/kocevski/842123/expmap_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.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/842123/ltcube_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.fits
.....................!
real 192.96
user 187.56
sys 5.09

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/842123/ft1_filtered_4FGL_J2324.7+0801_daily_bin897.fits scfile=/scratch/kocevski/842123/ft2_4FGL_J2324.7+0801_daily_bin897.fits outfile=/scratch/kocevski/842123/cmap_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842123/ft1_filtered_4FGL_J2324.7+0801_daily_bin897.fits scfile=/scratch/kocevski/842123/ft2_4FGL_J2324.7+0801_daily_bin897.fits outfile=/scratch/kocevski/842123/cmap_HighResolution_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.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/842123/ft1_filtered_4FGL_J2324.7+0801_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/842123/ft2_4FGL_J2324.7+0801_daily_bin897.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842123/Model_4FGL_J2324.7+0801_daily_bin897.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/842123/ft1_filtered_4FGL_J2324.7+0801_daily_bin897.fits.....................!
real 74.21
user 72.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28210E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8015       1.0000         .10000E-03   10000.    
     3 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2431       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.682       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43902E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8283       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.872       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6920       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0395       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2951       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.767       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0806       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91863       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=   6595.847     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2912 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    17.969       -.16022E-05** at limit **
   2  Prefactor     1.8014        .27298       -.13389E-07    .31054E-02
   3  norm          .10000E-03    5.6956       -.16046E-06** at limit **
   4  Prefactor     .10000E-03    11.467       -.22022E-06** at limit **
   5  Prefactor     2.2429        3.2707        .23483E-06   -.13244E-02
   6  Prefactor     10.676        15.369       -.45048E-05    .14826E-03
   7  Prefactor     .10000E-03    10.064       -.90810E-07** at limit **
   8  Prefactor     .10001E-03    5.3257       -.66934E-06** at limit **
   9  norm          3.8285        1.6663        .28521E-06   -.10758E-03
  10  Prefactor     .10000E-03    2.4741        .11668E-06** at limit **
  11  Prefactor     25.880        19.687        .28887E-05   -.11628E-04
  12  Prefactor     .10000E-03    28.708        .39807E-06** at limit **
  13  norm          2.6963        6.0538       -.55267E-07   -.39492E-04
  14  Prefactor     .10000E-03    4.2401       -.36844E-07** at limit **
  15  Prefactor     .10000E-03    117.19        .10257E-04** at limit **
  16  Prefactor     7.0172        19.803       -.10682E-04   -.53776E-04
  17  Prefactor     .10000E-03    7.9544        .68000E-07** at limit **
  18  norm          .10000E-03    3.7527       -.62200E-07** at limit **
  19  norm          .10000E-03    11.340        .12786E-05** at limit **
  20  Prefactor     1.3032        9.8622        .38865E-05    .18700E-03
  21  Prefactor     .10000E-03    14.947        .11832E-06** at limit **
  22  Prefactor     17.762        18.877       -.12350E-05    .35978E-04
  23  Prefactor     .10000E-03    2.1646        .18688E-07** at limit **
  24  Normalizat    1.0805        .21565        .11613E-05    .62523E-04
  25  Prefactor     .91867        .13026        .19589E-06    .16402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100964
  Prefactor  = 1.80143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24293
  Prefactor  = 10.6755
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 3.82846
  Prefactor  = 0.0001
  Prefactor  = 25.8802
  Prefactor  = 0.0001
  norm       = 2.69634
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.01719
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.30319
  Prefactor  = 0.0001
  Prefactor  = 17.7624
  Prefactor  = 0.0001
  Normalizat = 1.08048
  Prefactor  = 0.918669
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.847     FROM HESSE     STATUS=OK           425 CALLS     3337 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10096E-03    179.88        .65112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8014        .27119        .15514E-04   -1.5440    
   3  norm          .10000E-03    5.7009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2429        8.8170        .13720E-02   -1.5408    
   6  Prefactor     10.676        15.196        .12259E-03   -1.5054    
   7  Prefactor     .10000E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    14.306        .35390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8285        1.6609        .64344E-04   -1.5317    
  10  Prefactor     .10000E-03    2.4759        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.880        19.313        .78757E-04   -1.4690    
  12  Prefactor     .10000E-03    28.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6963        6.0373        .24831E-03   -1.5380    
  14  Prefactor     .10000E-03    4.2742        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    116.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.0172        19.383        .15120E-03   -1.5178    
  17  Prefactor     .10000E-03    7.9676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7540        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3032        9.0971        .38874E-03   -1.5480    
  21  Prefactor     .10000E-03    14.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.762        18.890        .95019E-04   -1.4865    
  23  Prefactor     .10000E-03    2.1667        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0805        .25169        .31380E-03   -.90381    
  25  Prefactor     .91867        .15271        .21209E-03   -.95492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19904e-08
Minuit parameter uncertainties:
  1  0.0264216
  2  0.271191
  3  1.00173e-06
  4  7.67035e-06
  5  8.82207
  6  15.2019
  7  2.14962e-06
  8  0.000646796
  9  1.66092
  10  3.3169e-07
  11  19.3176
  12  5.64759e-05
  13  6.03866
  14  1.26324e-06
  15  0.000530033
  16  19.4004
  17  3.74216e-07
  18  1.50088e-06
  19  4.8615e-05
  20  6.88753
  21  1.86183e-05
  22  18.8962
  23  1.66425e-06
  24  0.25197
  25  0.152778
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.317e-07  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.187e-01  1.528e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.080e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842123/likelihoodResults_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6595.84876733
delta logL = -0.00189688202227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6595.84687012
delta logL = 3.28378519043e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2058       1.0000          .0000       10.000    
     3 'Normalizat'    1.0806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91862       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=   6595.847     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10349E-03    2.5005        .12723E-01** at limit **
   2  Index         2.0958        5.1841        .50000        .59248E-04
   3  Normalizat    1.0805        .51900E-02    .31380E-03    .31701E-04
   4  Prefactor     .91867        .32825E-02    .21209E-03    .32966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103493
  Index      = 2.09578
  Normalizat = 1.08048
  Prefactor  = 0.918668
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.847     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10349E-03    49.856        .13192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0958        7.4161        .50000       -.61976    
   3  Normalizat    1.0805        .23598E-01    .12552E-04   -.90381    
   4  Prefactor     .91867        .14925E-01    .84836E-05   -.95492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09133e-07
Minuit parameter uncertainties:
  1  0.0264145
  2  344.325
  3  0.0235983
  4  0.0149249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842123': 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): 102
logL (Free Index) = 6595.84686893
delta logL = 1.51073345478e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.035e-04  2.641e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.096e+00  3.443e+02  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.187e-01  1.492e-02  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.080e+00  2.360e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/842123/cmap_HighResolution_471830401_472089601_4FGL_J2324.7+0801_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2021-09-29 16:32:41.856078', job_id='842123', GAL2='0.92', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632958361.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='897' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:32:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 842123: <4FGL_J2324.7+0801_daily_bin897> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin897 351.19 8.0282 471830401 472089601 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 :                                   704.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             373.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

