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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1571
RA = 351.19, Dec = 8.0282
tmin = 646531201, tmax = 646790401
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='844161', job_status='RUN', time_executed='2021-09-29 16:29:10.313296', time_epoch_executed='1632958150.31' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844161

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844161/ft1_4FGL_J2324.7+0801_daily_bin1571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844161/ft1_4FGL_J2324.7+0801_daily_bin1571.fits outfile=/scratch/kocevski/844161/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1571.fits ra=351.19 dec=8.0282 rad=12.0 tmin=646531201.0 tmax=646790401.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.64
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.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/844161/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1571.fits evtable="EVENTS" outfile="/scratch/kocevski/844161/ft1_filtered_4FGL_J2324.7+0801_daily_bin1571.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.70
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844161/ft1_filtered_4FGL_J2324.7+0801_daily_bin1571.fits" evtable="EVENTS" scfile=/scratch/kocevski/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.fits sctable="SC_DATA" outfile=/scratch/kocevski/844161/ltcube_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.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/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.fits
.....................!
real 11.56
user 11.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844161/ft1_filtered_4FGL_J2324.7+0801_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.fits sctable="SC_DATA" expcube=/scratch/kocevski/844161/ltcube_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.fits outfile=/scratch/kocevski/844161/expmap_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.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/844161/ltcube_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.fits
.....................!
real 191.05
user 184.85
sys 5.85

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/844161/ft1_filtered_4FGL_J2324.7+0801_daily_bin1571.fits scfile=/scratch/kocevski/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.fits outfile=/scratch/kocevski/844161/cmap_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.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/844161/ft1_filtered_4FGL_J2324.7+0801_daily_bin1571.fits scfile=/scratch/kocevski/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.fits outfile=/scratch/kocevski/844161/cmap_HighResolution_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844161/ft1_filtered_4FGL_J2324.7+0801_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/844161/ft2_4FGL_J2324.7+0801_daily_bin1571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844161/Model_4FGL_J2324.7+0801_daily_bin1571.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/844161/ft1_filtered_4FGL_J2324.7+0801_daily_bin1571.fits.....................!
real 69.22
user 67.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .59656       1.0000         .10000E-03   10000.    
     3 'norm      '    17.819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7005       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26311       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.522       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3909       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.050       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5312       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3318       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87589       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97560       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=   6420.442     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2539 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.110        .23220E-06** at limit **
   2  Prefactor     .59657        .16664       -.24406E-07   -.53043E-02
   3  norm          17.819        13.604        .46733E-06    .27160E-03
   4  Prefactor     .10000E-03    48.162       -.28517E-06** at limit **
   5  Prefactor     .10000E-03    1.9671       -.36159E-07** at limit **
   6  Prefactor     6.7008        7.8813        .17927E-06    .69990E-04
   7  Prefactor     .10000E-03    8.5069       -.72258E-07** at limit **
   8  Prefactor     .26651        4.4931        .16860E-06   -.13253E-03
   9  norm          .10000E-03    .31532        .50211E-07** at limit **
  10  Prefactor     .10000E-03    5.8468        .19055E-05** at limit **
  11  Prefactor     24.518        17.871       -.71629E-06   -.52378E-03
  12  Prefactor     .10000E-03    31.638        .67265E-06** at limit **
  13  norm          16.407        10.096       -.10282E-06    .49376E-04
  14  Prefactor     5.3901        6.9452        .87398E-06    .70652E-03
  15  Prefactor     .10000E-03    229.65        .97994E-06** at limit **
  16  Prefactor     .10000E-03    12.493        .79832E-06** at limit **
  17  Prefactor     .10000E-03    14.162       -.24702E-07** at limit **
  18  norm          .10000E-03    6.8667        .88456E-08** at limit **
  19  norm          .10000E-03    7.2568        .13871E-06** at limit **
  20  Prefactor     10.050        6.2926        .14761E-06    .27179E-03
  21  Prefactor     5.5279        54.140        .14134E-05    .27287E-04
  22  Prefactor     4.3317        25.814        .20795E-05    .12199E-03
  23  Prefactor     .10001E-03    21.362        .10788E-04** at limit **
  24  Normalizat    .87616        .20142       -.21741E-05   -.54299E-03
  25  Prefactor     .97547        .12478        .73709E-06   -.59073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.596573
  norm       = 17.8193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.70078
  Prefactor  = 0.0001
  Prefactor  = 0.266509
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 24.5182
  Prefactor  = 0.000100001
  norm       = 16.4073
  Prefactor  = 5.39007
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0504
  Prefactor  = 5.52787
  Prefactor  = 4.33168
  Prefactor  = 0.000100009
  Normalizat = 0.876159
  Prefactor  = 0.975466
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.442     FROM HESSE     STATUS=OK           423 CALLS     2962 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59657        .16650        .16695E-04   -1.5553    
   3  norm          17.819        13.671        .47441E-03   -1.4863    
   4  Prefactor     .10000E-03    48.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9760        .10974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7008        7.8862        .15501E-03   -1.5190    
   7  Prefactor     .10000E-03    8.5234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26651        17.808        .31894E-02   -1.5605    
   9  norm          .10000E-03    .32032        .43922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.665        .34566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.518        17.972        .80891E-04   -1.4717    
  12  Prefactor     .10000E-03    31.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.407        9.8181        .98870E-04   -1.4898    
  14  Prefactor     5.3901        7.0348        .17308E-03   -1.5244    
  15  Prefactor     .10000E-03    229.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.2605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.050        6.3152        .12640E-03   -1.5074    
  21  Prefactor     5.5279        54.318        .17083E-03   -1.5238    
  22  Prefactor     4.3317        26.263        .19354E-03   -1.5292    
  23  Prefactor     .10001E-03    22.264        .32543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87616        .24004        .30972E-03   -.97303    
  25  Prefactor     .97547        .14730        .19062E-03   -.93552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43623e-08
Minuit parameter uncertainties:
  1  0.000444962
  2  0.166502
  3  13.6732
  4  0.000227041
  5  4.27391e-06
  6  7.88739
  7  1.06351e-05
  8  4.35757
  9  2.26222e-06
  10  0.00046235
  11  17.9762
  12  0.000350166
  13  9.81911
  14  7.03584
  15  5.1169e-05
  16  0.000190706
  17  4.96793e-05
  18  3.14002e-08
  19  2.56898e-05
  20  6.3156
  21  34.6969
  22  21.3457
  23  0.000880353
  24  0.240335
  25  0.147363
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.623e-04  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.755e-01  1.474e-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.762e-01  2.403e-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: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844161/likelihoodResults_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.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) = 6420.44173545
delta logL = -0.00015929041092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6420.44157615
delta logL = 1.44545992953e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2072       1.0000          .0000       10.000    
     3 'Normalizat'    .87616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97546       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=   6420.442     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      229 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .61099E-01    .90712E-01** at limit **
   2  Index         2.1911        8.8029        .50000        .34323E-05
   3  Normalizat    .87616        .53918E-03    .70000E-01    .14078E-03
   4  Prefactor     .97546        .35024E-03    .45960E-01    .18776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.19107
  Normalizat = 0.876163
  Prefactor  = 0.975465
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.442     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    67.037        .35675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1911        5.6655        .50000       -.59654    
   3  Normalizat    .87616        .73946E-02    .30972E-03   -.97303    
   4  Prefactor     .97546        .48098E-02    .19062E-03   -.93552    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52352e-08
Minuit parameter uncertainties:
  1  0.00131772
  2  217.205
  3  0.00739458
  4  0.00480982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844161': 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) = 6420.44157612
delta logL = 4.10400389228e-08

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.318e-03  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.191e+00  2.172e+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.755e-01  4.810e-03  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.762e-01  7.395e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/844161/cmap_HighResolution_646531201_646790401_4FGL_J2324.7+0801_daily_bin1571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-09-29 16:40:12.451897', job_id='844161', GAL2='0.98', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632958812.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1571' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 844161: <4FGL_J2324.7+0801_daily_bin1571> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1571> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:26:15 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:26: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:26:17 2021
Terminated at Wed Sep 29 16:40:13 2021
Results reported at Wed Sep 29 16:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1571 351.19 8.0282 646531201 646790401 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

