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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin584
RA = 351.19, Dec = 8.0282
tmin = 390700801, tmax = 390960001
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='840585', job_status='RUN', time_executed='2021-09-29 16:16:28.996500', time_epoch_executed='1632957389.0' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840585

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840585/ft1_4FGL_J2324.7+0801_daily_bin584.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840585/ft2_4FGL_J2324.7+0801_daily_bin584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840585/ft1_4FGL_J2324.7+0801_daily_bin584.fits outfile=/scratch/kocevski/840585/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin584.fits ra=351.19 dec=8.0282 rad=12.0 tmin=390700801.0 tmax=390960001.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 7.28
user 6.98
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840585/ft1_filtered_4FGL_J2324.7+0801_daily_bin584.fits" evtable="EVENTS" scfile=/scratch/kocevski/840585/ft2_4FGL_J2324.7+0801_daily_bin584.fits sctable="SC_DATA" outfile=/scratch/kocevski/840585/ltcube_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.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/840585/ft2_4FGL_J2324.7+0801_daily_bin584.fits
.....................!
real 11.27
user 10.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840585/ft1_filtered_4FGL_J2324.7+0801_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/840585/ft2_4FGL_J2324.7+0801_daily_bin584.fits sctable="SC_DATA" expcube=/scratch/kocevski/840585/ltcube_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.fits outfile=/scratch/kocevski/840585/expmap_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.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/840585/ltcube_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.fits
.....................!
real 189.81
user 184.69
sys 4.72

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/840585/ft1_filtered_4FGL_J2324.7+0801_daily_bin584.fits scfile=/scratch/kocevski/840585/ft2_4FGL_J2324.7+0801_daily_bin584.fits outfile=/scratch/kocevski/840585/cmap_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840585/ft1_filtered_4FGL_J2324.7+0801_daily_bin584.fits scfile=/scratch/kocevski/840585/ft2_4FGL_J2324.7+0801_daily_bin584.fits outfile=/scratch/kocevski/840585/cmap_HighResolution_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840585/ft1_filtered_4FGL_J2324.7+0801_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/840585/ft2_4FGL_J2324.7+0801_daily_bin584.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840585/Model_4FGL_J2324.7+0801_daily_bin584.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/840585/ft1_filtered_4FGL_J2324.7+0801_daily_bin584.fits.....................!
real 72.22
user 70.87
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5058       1.0000         .10000E-03   10000.    
     3 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3939       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.232       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8618       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0206       1.0000         .10000E-03   10000.    
    13 'norm      '    6.3222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4849       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27384E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6828       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5724       1.0000         .10000E-03   10000.    
    19 'norm      '    11.902       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14624E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3963       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.616       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52913       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1917       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=   6501.774     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2937 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.342        .20509E-05** at limit **
   2  Prefactor     1.5058        .24438        .70145E-07    .51957E-02
   3  norm          .10000E-03    9.0793       -.11033E-06** at limit **
   4  Prefactor     8.3946        38.409       -.10033E-06    .13979E-04
   5  Prefactor     .10004E-03    28.420        .11874E-05** at limit **
   6  Prefactor     12.591        14.059        .15031E-07    .76637E-04
   7  Prefactor     13.229        17.097       -.16064E-06    .47594E-05
   8  Prefactor     .10000E-03    1.3966       -.35801E-08** at limit **
   9  norm          4.8626        1.5773        .13546E-07    .23631E-03
  10  Prefactor     .10000E-03    10.465        .38281E-06** at limit **
  11  Prefactor     5.2309        8.2585       -.50539E-07    .72372E-04
  12  Prefactor     7.0269        25.291       -.58707E-07    .17746E-05
  13  norm          6.3194        8.4239        .98849E-06    .32558E-03
  14  Prefactor     1.4844        4.1055        .50037E-07    .71760E-03
  15  Prefactor     .10000E-03    111.78       -.11191E-05** at limit **
  16  Prefactor     .10002E-03    28.839        .23864E-05** at limit **
  17  Prefactor     7.6790        26.374        .15786E-05    .84902E-04
  18  norm          2.5703        22.557       -.33477E-06    .89887E-04
  19  norm          11.930        18.014        .40500E-07    .50469E-04
  20  Prefactor     .10001E-03    6.4611       -.17246E-05** at limit **
  21  Prefactor     8.3974        24.104       -.15822E-06    .12161E-04
  22  Prefactor     .10000E-03    8.1017       -.44669E-07** at limit **
  23  Prefactor     10.616        7.7201       -.39703E-07    .72395E-05
  24  Normalizat    .52924        .21973       -.13561E-06    .23188E-03
  25  Prefactor     1.1917        .14161        .63718E-06    .46954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.50581
  norm       = 0.0001
  Prefactor  = 8.39464
  Prefactor  = 0.000100036
  Prefactor  = 12.5906
  Prefactor  = 13.229
  Prefactor  = 0.0001
  norm       = 4.86262
  Prefactor  = 0.0001
  Prefactor  = 5.23089
  Prefactor  = 7.02695
  norm       = 6.31941
  Prefactor  = 1.4844
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 7.67898
  norm       = 2.57029
  norm       = 11.9298
  Prefactor  = 0.000100009
  Prefactor  = 8.39741
  Prefactor  = 0.0001
  Prefactor  = 10.616
  Normalizat = 0.529236
  Prefactor  = 1.19171
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.774     FROM HESSE     STATUS=OK           437 CALLS     3374 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5058        .24587        .15454E-04   -1.5463    
   3  norm          .10000E-03    9.1250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3946        38.377        .13837E-03   -1.5128    
   5  Prefactor     .10004E-03    54.726        .33096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.591        14.004        .11290E-03   -1.4998    
   7  Prefactor     13.229        17.098        .11011E-03   -1.4980    
   8  Prefactor     .10000E-03    1.3983        .93058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8626        1.5776        .55532E-04   -1.5267    
  10  Prefactor     .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2309        8.2605        .87868E-03   -1.5251    
  12  Prefactor     7.0269        25.275        .15140E-03   -1.5178    
  13  norm          6.3194        8.7630        .15964E-03   -1.5205    
  14  Prefactor     1.4844        8.5952        .17603E-02   -1.5464    
  15  Prefactor     .10000E-03    111.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    73.738        .40345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6790        26.152        .14468E-03   -1.5154    
  18  norm          2.5703        23.000        .12724E-02   -1.5387    
  19  norm          11.930        18.311        .11612E-03   -1.5017    
  20  Prefactor     .10001E-03    11.198        .30147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3974        24.090        .13835E-03   -1.5128    
  22  Prefactor     .10000E-03    8.1116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.616        7.7190        .12297E-03   -1.5056    
  24  Normalizat    .52924        .23513        .40557E-03   -1.1108    
  25  Prefactor     1.1917        .15418        .18542E-03   -.86587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4468e-09
Minuit parameter uncertainties:
  1  0.000376115
  2  0.245867
  3  1.75535e-05
  4  35.9358
  5  0.00282648
  6  14.0077
  7  17.1045
  8  7.52912e-07
  9  1.57766
  10  5.85215e-06
  11  8.26234
  12  25.3135
  13  8.76482
  14  7.14519
  15  0.000115351
  16  0.00229176
  17  26.1911
  18  15.3851
  19  18.3197
  20  0.000641479
  21  24.1179
  22  5.67754e-06
  23  7.71974
  24  0.235571
  25  0.154238
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.852e-06  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:  1.192e+00  1.542e-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:  5.292e-01  2.356e-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/840585/likelihoodResults_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.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) = 6501.77402042
delta logL = -0.000452028216387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6501.77357069
delta logL = -2.30029399972e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12406E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2440       1.0000          .0000       10.000    
     3 'Normalizat'    .52889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1919       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=   6501.774     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6892        .90712E-02** at limit **
   2  Index         2.2585        8.6894        .50000       -.10870E-04
   3  Normalizat    .52924        .37559E-02    .91523E-01    .53695E-04
   4  Prefactor     1.1917        .25088E-02    .34824E-01    .24373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25852
  Normalizat = 0.529235
  Prefactor  = 1.19171
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.774     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2585        6.0868        .50000       -.58032    
   3  Normalizat    .52924        .11218E-01    .40558E-03   -1.1108    
   4  Prefactor     1.1917        .75171E-02    .18542E-03   -.86587    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26628e-07
Minuit parameter uncertainties:
  1  0.000120417
  2  134.733
  3  0.0112182
  4  0.00751712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840585': 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) = 6501.7735683
delta logL = 8.58090061229e-08

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.204e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.259e+00  1.347e+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:  1.192e+00  7.517e-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:  5.292e-01  1.122e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/840585/cmap_HighResolution_390700801_390960001_4FGL_J2324.7+0801_daily_bin584.png

Cleaning up...

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

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:28:27.115065', job_id='840585', GAL2='1.19', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1632958107.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='8.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='584' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:28:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 840585: <4FGL_J2324.7+0801_daily_bin584> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin584 351.19 8.0282 390700801 390960001 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 :                                   714.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

