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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin676
RA = 351.19, Dec = 8.0282
tmin = 414547201, tmax = 414806401
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='840721', job_status='RUN', time_executed='2021-09-29 16:16:21.219785', time_epoch_executed='1632957381.22' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840721

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840721/ft1_4FGL_J2324.7+0801_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840721/ft1_4FGL_J2324.7+0801_daily_bin676.fits outfile=/scratch/kocevski/840721/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin676.fits ra=351.19 dec=8.0282 rad=12.0 tmin=414547201.0 tmax=414806401.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 5.83
user 5.62
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/840721/ltcube_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.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/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits
.....................!
real 11.82
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/840721/ltcube_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.fits outfile=/scratch/kocevski/840721/expmap_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.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/840721/ltcube_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.fits
.....................!
real 191.76
user 187.57
sys 3.83

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/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits scfile=/scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits outfile=/scratch/kocevski/840721/cmap_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.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.55
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits scfile=/scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits outfile=/scratch/kocevski/840721/cmap_HighResolution_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840721/Model_4FGL_J2324.7+0801_daily_bin676.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/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits.....................!
real 47.43
user 46.13
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits', '/scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits', expMap='/scratch/kocevski/840721/expmap_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.fits', expCube='/scratch/kocevski/840721/ltcube_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/840721/Model_4FGL_J2324.7+0801_daily_bin676.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/840721/ft1_filtered_4FGL_J2324.7+0801_daily_bin676.fits
Spacecraft file(s): /scratch/kocevski/840721/ft2_4FGL_J2324.7+0801_daily_bin676.fits
Exposure map: /scratch/kocevski/840721/expmap_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.fits
Exposure cube: /scratch/kocevski/840721/ltcube_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/840721/Model_4FGL_J2324.7+0801_daily_bin676.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3756.09776641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.162       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5817       1.0000         .10000E-03   10000.    
     3 'norm      '    19.063       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12219E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4037       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.245       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5938       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96264       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21841E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.369       1.0000         .10000E-03   10000.    
    18 'norm      '    15.009       1.0000         .10000E-03   10000.    
    19 'norm      '    105.11       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.470       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.469       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67234       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1764       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=   3756.047     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2936 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.166        46.170       -.60745E-06   -.34531E-05
   2  Prefactor     2.5818        .53385        .42079E-09   -.76808E-04
   3  norm          19.058        33.923        .12705E-06    .13937E-04
   4  Prefactor     59.282        65.463       -.20459E-05    .50638E-06
   5  Prefactor     .10000E-03    7.8850        .69518E-06** at limit **
   6  Prefactor     .10000E-03    116.82        .24534E-04** at limit **
   7  Prefactor     .10000E-03    20.806       -.15763E-05** at limit **
   8  Prefactor     .10000E-03    20.546        .17210E-05** at limit **
   9  norm          1.4032        1.7919       -.60941E-06   -.21692E-04
  10  Prefactor     16.248        18.199        .55115E-06    .98286E-04
  11  Prefactor     .10000E-03    14.582        .25910E-06** at limit **
  12  Prefactor     6.6898        269.71       -.16801E-04   -.12699E-04
  13  norm          .10000E-03    5.2265        .82381E-06** at limit **
  14  Prefactor     .96469        12.751       -.90274E-05    .59657E-04
  15  Prefactor     .10000E-03    147.14        .15633E-04** at limit **
  16  Prefactor     .10000E-03    7.1425       -.46896E-06** at limit **
  17  Prefactor     43.364        39.952        .10657E-05    .79251E-04
  18  norm          15.003        24.072        .30865E-06    .35574E-04
  19  norm          105.10        49.330       -.35681E-06   -.16848E-04
  20  Prefactor     .10000E-03    7.0338        .97705E-06** at limit **
  21  Prefactor     50.465        51.044       -.36815E-06    .19541E-04
  22  Prefactor     43.462        39.284        .33961E-06    .35482E-04
  23  Prefactor     .10000E-03    6.9520        .67943E-06** at limit **
  24  Normalizat    .67248        .34997        .14307E-05    .69425E-04
  25  Prefactor     1.1764        .21233        .19287E-06    .56274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1663
  Prefactor  = 2.58184
  norm       = 19.0579
  Prefactor  = 59.2815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40316
  Prefactor  = 16.248
  Prefactor  = 0.0001
  Prefactor  = 6.6898
  norm       = 0.0001
  Prefactor  = 0.964691
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.364
  norm       = 15.003
  norm       = 105.099
  Prefactor  = 0.0001
  Prefactor  = 50.4646
  Prefactor  = 43.4617
  Prefactor  = 0.0001
  Normalizat = 0.672475
  Prefactor  = 1.17638
 **********
 **   18 **HESSE 
 **********

 FCN=   3756.047     FROM HESSE     STATUS=OK           423 CALLS     3359 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.166        46.496        .11041E-03   -1.4982    
   2  Prefactor     2.5818        .53792        .18609E-04   -1.5387    
   3  norm          19.058        33.907        .91733E-04   -1.4835    
   4  Prefactor     59.282        65.464        .52117E-04   -1.4167    
   5  Prefactor     .10000E-03    7.9307        .16805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    114.23        .55287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4032        1.7672        .88211E-04   -1.5471    
  10  Prefactor     16.248        18.177        .99370E-04   -1.4902    
  11  Prefactor     .10000E-03    14.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6898        269.31        .15628E-03   -1.5191    
  13  norm          .10000E-03    5.2439        .13696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .96469        12.804        .41682E-03   -1.5512    
  15  Prefactor     .10000E-03    148.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1408        .15988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.364        39.953        .60876E-04   -1.4390    
  18  norm          15.003        24.079        .10338E-03   -1.4933    
  19  norm          105.10        49.119        .19612E-03   -1.3654    
  20  Prefactor     .10000E-03    7.1872        .31669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.465        51.052        .56450E-04   -1.4286    
  22  Prefactor     43.462        39.255        .60806E-04   -1.4388    
  23  Prefactor     .10000E-03    6.9638        .15781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67248        .37836        .43120E-03   -1.0499    
  25  Prefactor     1.1764        .23441        .21187E-03   -.87061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3906e-10
Minuit parameter uncertainties:
  1  46.6239
  2  0.537919
  3  33.9416
  4  65.5433
  5  4.27368e-06
  6  0.00036938
  7  6.43704e-05
  8  3.99806e-05
  9  1.76726
  10  18.1829
  11  4.4324e-06
  12  85.3052
  13  3.25058e-05
  14  7.03062
  15  0.000894984
  16  1.9664e-05
  17  39.9772
  18  24.0944
  19  49.138
  20  1.57485e-05
  21  51.0959
  22  39.2783
  23  5.87958e-07
  24  0.379835
  25  0.234616
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.625e+01  1.818e+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:  1.176e+00  2.346e-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:  6.725e-01  3.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.85e-08 +/- 6.54e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 2.79e-05

TS (Fixed Index): 1.22
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 2.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840721/likelihoodResults_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.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): 0
logL (Free Index) = 3755.84459399
delta logL = 0.202049814438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3755.79601664
delta logL = 0.250627159762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83316       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9532       1.0000          .0000       10.000    
     3 'Normalizat'    .55597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2338       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=   3755.796     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      283 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79705        12.429        .10201E-01    .12772E-02
   2  Index         3.9732        2.5863        .99108E-01    .18924E-03
   3  Normalizat    .55572        .82191E-01    .10617        .57248E-04
   4  Prefactor     1.2337        .52096E-01    .33877E-01    .10378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.797047
  Index      = 3.9732
  Normalizat = 0.555717
  Prefactor  = 1.23365
 **********
 **   18 **HESSE 
 **********

 FCN=   3755.796     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79705        28.440        .46302E-03   -1.5529    
   2  Index         3.9732        6.8637        .36544E-02   -.20683    
   3  Normalizat    .55572        .29904        .47078E-03   -1.0990    
   4  Prefactor     1.2337        .19037        .20765E-03   -.85302    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95965e-10
Minuit parameter uncertainties:
  1  9.52642
  2  5.13348
  3  0.299908
  4  0.190473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840721': 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) = 3755.7959985
delta logL = 0.250645301565

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.970e-01  9.526e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.973e+00  5.133e+00  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.234e+00  1.905e-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.557e-01  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.97 +/- 5.13
Photon Flux (Free Index): 1.40e-07 +/- 1.29e-07
Energy Flux (Free Index): 2.11e-05 +/- 2.05e-05

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/840721/cmap_HighResolution_414547201_414806401_4FGL_J2324.7+0801_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='5.85e-08', energy_flux2='2.11e-05', photon_flux_error='6.54e-08', dlogl='2.51e-01', energy_flux='2.50e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-29 16:25:25.676285', photon_index_error2='5.13', photon_index2='3.97', ts='1.22', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='2.05e-05', EG='0.67', time_epoch_completed='1632957925.68', return_code='0', job_id='840721', GAL2='1.23', EG2='0.56', return_code2='102', energy_flux_error='2.79e-05', photon_flux_error2='1.29e-07', ts2='1.85', photon_index='2.23' WHERE bin_id='676' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 840721: <4FGL_J2324.7+0801_daily_bin676> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin676 351.19 8.0282 414547201 414806401 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 :                                   540.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            597 sec.

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

