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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin134
RA = 351.19, Dec = 8.0282
tmin = 274060801, tmax = 274320001
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='837795', job_status='RUN', time_executed='2021-09-29 16:06:50.684867', time_epoch_executed='1632956810.68' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837795/ft1_4FGL_J2324.7+0801_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837795/ft2_4FGL_J2324.7+0801_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837795/ft1_4FGL_J2324.7+0801_daily_bin134.fits outfile=/scratch/kocevski/837795/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin134.fits ra=351.19 dec=8.0282 rad=12.0 tmin=274060801.0 tmax=274320001.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.66
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837795/ft1_filtered_4FGL_J2324.7+0801_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/837795/ft2_4FGL_J2324.7+0801_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/837795/ltcube_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.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/837795/ft2_4FGL_J2324.7+0801_daily_bin134.fits
.....................!
real 12.06
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837795/ft1_filtered_4FGL_J2324.7+0801_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/837795/ft2_4FGL_J2324.7+0801_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/837795/ltcube_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.fits outfile=/scratch/kocevski/837795/expmap_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.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/837795/ltcube_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.fits
.....................!
real 190.35
user 185.42
sys 4.61

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/837795/ft1_filtered_4FGL_J2324.7+0801_daily_bin134.fits scfile=/scratch/kocevski/837795/ft2_4FGL_J2324.7+0801_daily_bin134.fits outfile=/scratch/kocevski/837795/cmap_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837795/ft1_filtered_4FGL_J2324.7+0801_daily_bin134.fits scfile=/scratch/kocevski/837795/ft2_4FGL_J2324.7+0801_daily_bin134.fits outfile=/scratch/kocevski/837795/cmap_HighResolution_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.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/837795/ft1_filtered_4FGL_J2324.7+0801_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/837795/ft2_4FGL_J2324.7+0801_daily_bin134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837795/Model_4FGL_J2324.7+0801_daily_bin134.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/837795/ft1_filtered_4FGL_J2324.7+0801_daily_bin134.fits.....................!
real 87.73
user 86.39
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1414       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.555       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.617       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11899E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.461       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4510       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.938       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3412       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92086       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88751       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=   7654.495     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2892 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0042        .38662E-06** at limit **
   2  Prefactor     5.1414        .41133        .15046E-07   -.50712E-03
   3  norm          .10000E-03    5.0123       -.63501E-08** at limit **
   4  Prefactor     23.559        22.655       -.40352E-06   -.30362E-05
   5  Prefactor     19.289        9.2754       -.16234E-06   -.56970E-04
   6  Prefactor     10.078        12.370       -.14536E-05   -.11015E-02
   7  Prefactor     2.8969        25.020        .97825E-05   -.72901E-04
   8  Prefactor     15.610        9.0050       -.14006E-05   -.69474E-03
   9  norm          1.4550        1.0689       -.13762E-06   -.34787E-03
  10  Prefactor     .10000E-03    7.1305       -.26504E-06** at limit **
  11  Prefactor     .10000E-03    42.321        .25998E-04** at limit **
  12  Prefactor     .10000E-03    22.954        .73632E-05** at limit **
  13  norm          7.8886        9.3578       -.49935E-06   -.86139E-04
  14  Prefactor     9.2435        8.1384       -.50737E-06   -.12306E-03
  15  Prefactor     .10000E-03    125.59       -.14487E-04** at limit **
  16  Prefactor     .10000E-03    18.550       -.71745E-05** at limit **
  17  Prefactor     42.464        31.065        .95037E-06    .30856E-04
  18  norm          .10000E-03    4.7084        .13364E-07** at limit **
  19  norm          .10000E-03    19.934        .45655E-05** at limit **
  20  Prefactor     9.4517        6.1154        .20791E-05    .21140E-03
  21  Prefactor     .10000E-03    35.323       -.27263E-04** at limit **
  22  Prefactor     47.933        27.288       -.84099E-06    .75506E-04
  23  Prefactor     8.3409        7.3155       -.73440E-08   -.33269E-04
  24  Normalizat    .92094        .21992       -.71437E-06   -.32960E-04
  25  Prefactor     .88748        .12960        .14991E-06   -.84511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.14141
  norm       = 0.0001
  Prefactor  = 23.5593
  Prefactor  = 19.289
  Prefactor  = 10.0776
  Prefactor  = 2.89687
  Prefactor  = 15.6095
  norm       = 1.45497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.88861
  Prefactor  = 9.24347
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 42.4637
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.45173
  Prefactor  = 0.0001
  Prefactor  = 47.9334
  Prefactor  = 8.34086
  Normalizat = 0.920941
  Prefactor  = 0.887482
 **********
 **   18 **HESSE 
 **********

 FCN=   7654.495     FROM HESSE     STATUS=OK           429 CALLS     3321 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1414        .41190        .15168E-04   -1.5254    
   3  norm          .10000E-03    5.0153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.559        22.661        .82533E-04   -1.4737    
   5  Prefactor     19.289        9.2776        .91195E-04   -1.4829    
   6  Prefactor     10.078        12.593        .63111E-03   -1.5073    
   7  Prefactor     2.8969        24.657        .23757E-03   -1.5368    
   8  Prefactor     15.610        9.0608        .10135E-03   -1.4918    
   9  norm          1.4550        1.0696        .17848E-03   -1.5467    
  10  Prefactor     .10000E-03    7.1612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8886        9.3173        .14277E-03   -1.5146    
  14  Prefactor     9.2435        8.1246        .13182E-03   -1.5100    
  15  Prefactor     .10000E-03    125.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.464        31.048        .61520E-04   -1.4404    
  18  norm          .10000E-03    4.7121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4517        6.1149        .13036E-03   -1.5093    
  21  Prefactor     .10000E-03    34.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     47.933        27.338        .57915E-04   -1.4322    
  23  Prefactor     8.3409        7.3169        .13881E-03   -1.5130    
  24  Normalizat    .92094        .25205        .36849E-03   -.95728    
  25  Prefactor     .88748        .14868        .23271E-03   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3256e-09
Minuit parameter uncertainties:
  1  1.27612e-06
  2  0.411902
  3  3.72643e-06
  4  22.6695
  5  9.2783
  6  12.5966
  7  16.9122
  8  9.0616
  9  1.06957
  10  8.22335e-06
  11  8.72507e-05
  12  2.22785e-05
  13  9.31897
  14  8.12558
  15  0.000129639
  16  0.000297559
  17  31.0597
  18  1.93691e-06
  19  0.000175758
  20  6.11531
  21  3.843e-05
  22  27.3456
  23  7.31767
  24  0.252372
  25  0.148744
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  8.223e-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:  8.875e-01  1.487e-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:  9.209e-01  2.524e-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: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837795/likelihoodResults_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.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) = 7654.49612763
delta logL = -0.000665413166644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7654.49546507
delta logL = -2.85507667286e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11631E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2655       1.0000          .0000       10.000    
     3 'Normalizat'    .92046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88777       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=   7654.495     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      246 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    231.49        .18142E-02** at limit **
   2  Index         2.3085        7.3015        .50000       -.55519E-04
   3  Normalizat    .92094        .30305E-01    .36849E-03    .46925E-04
   4  Prefactor     .88748        .18973E-01    .23271E-03    .27015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Index      = 2.30849
  Normalizat = 0.920941
  Prefactor  = 0.887482
 **********
 **   18 **HESSE 
 **********

 FCN=   7654.495     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    865.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3085        8.8452        .50000       -.56842    
   3  Normalizat    .92094        .66772E-01    .14740E-04   -.95728    
   4  Prefactor     .88748        .41804E-01    .93086E-05   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.56497e-10
Minuit parameter uncertainties:
  1  0.00950263
  2  43.8483
  3  0.0667777
  4  0.0418054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837795': 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) = 7654.49546129
delta logL = 9.29246198211e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.875e-01  4.181e-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:  9.209e-01  6.678e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/837795/cmap_HighResolution_274060801_274320001_4FGL_J2324.7+0801_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-29 16:20:08.559098', job_id='837795', GAL2='0.89', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632957608.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='9.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='134' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:20:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 837795: <4FGL_J2324.7+0801_daily_bin134> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin134> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:28 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05: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:05:30 2021
Terminated at Wed Sep 29 16:20:09 2021
Results reported at Wed Sep 29 16:20:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin134 351.19 8.0282 274060801 274320001 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 :                                   796.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

