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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1535
RA = 351.19, Dec = 8.0282
tmin = 637200001, tmax = 637459201
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='844125', job_status='RUN', time_executed='2021-09-29 16:28:38.107530', time_epoch_executed='1632958118.11' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844125/ft1_4FGL_J2324.7+0801_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844125/ft2_4FGL_J2324.7+0801_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844125/ft1_4FGL_J2324.7+0801_daily_bin1535.fits outfile=/scratch/kocevski/844125/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1535.fits ra=351.19 dec=8.0282 rad=12.0 tmin=637200001.0 tmax=637459201.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.38
user 5.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844125/ft1_filtered_4FGL_J2324.7+0801_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/844125/ft2_4FGL_J2324.7+0801_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/844125/ltcube_637200001_637459201_4FGL_J2324.7+0801_daily_bin1535.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/844125/ft2_4FGL_J2324.7+0801_daily_bin1535.fits
.....................!
real 11.58
user 11.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844125/ft1_filtered_4FGL_J2324.7+0801_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/844125/ft2_4FGL_J2324.7+0801_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/844125/ltcube_637200001_637459201_4FGL_J2324.7+0801_daily_bin1535.fits outfile=/scratch/kocevski/844125/expmap_637200001_637459201_4FGL_J2324.7+0801_daily_bin1535.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/844125/ltcube_637200001_637459201_4FGL_J2324.7+0801_daily_bin1535.fits
.....................!
real 190.52
user 185.74
sys 4.44

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/844125/ft1_filtered_4FGL_J2324.7+0801_daily_bin1535.fits scfile=/scratch/kocevski/844125/ft2_4FGL_J2324.7+0801_daily_bin1535.fits outfile=/scratch/kocevski/844125/cmap_637200001_637459201_4FGL_J2324.7+0801_daily_bin1535.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844125/ft1_filtered_4FGL_J2324.7+0801_daily_bin1535.fits scfile=/scratch/kocevski/844125/ft2_4FGL_J2324.7+0801_daily_bin1535.fits outfile=/scratch/kocevski/844125/cmap_HighResolution_637200001_637459201_4FGL_J2324.7+0801_daily_bin1535.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844125/ft1_filtered_4FGL_J2324.7+0801_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/844125/ft2_4FGL_J2324.7+0801_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844125/Model_4FGL_J2324.7+0801_daily_bin1535.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/844125/ft1_filtered_4FGL_J2324.7+0801_daily_bin1535.fits.....................!
real 65.58
user 64.28
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .61541       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9414       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.357       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0168       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.310       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5607       1.0000         .10000E-03   10000.    
    15 'Prefactor '    967.72       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.664       1.0000         .10000E-03   10000.    
    18 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.169       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    91.715       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .75913E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78388       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=   6013.897     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2883 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.243       -.28271E-06** at limit **
   2  Prefactor     .61543        .17631       -.87819E-08    .61550E-04
   3  norm          .10000E-03    12.920        .23949E-06** at limit **
   4  Prefactor     .10000E-03    13.973        .12770E-07** at limit **
   5  Prefactor     4.7422        7.2905        .14657E-06   -.55824E-04
   6  Prefactor     .10000E-03    3.0833        .15597E-07** at limit **
   7  Prefactor     8.9417        10.766        .69251E-07    .28935E-04
   8  Prefactor     29.359        10.352       -.97908E-08    .88042E-04
   9  norm          1.0180        1.3497        .81177E-06   -.81915E-03
  10  Prefactor     13.311        9.7179       -.52519E-06   -.42281E-04
  11  Prefactor     3.8981        13.993        .46073E-06    .81805E-05
  12  Prefactor     .10000E-03    61.749       -.86877E-06** at limit **
  13  norm          4.6746        7.7421        .61185E-05   -.88631E-03
  14  Prefactor     5.5604        6.4266       -.15836E-05   -.11483E-03
  15  Prefactor     967.62        481.94       -.74434E-05   -.88772E-04
  16  Prefactor     .10000E-03    13.130       -.12520E-06** at limit **
  17  Prefactor     12.651        27.629       -.21800E-05   -.69688E-04
  18  norm          .10000E-03    9.0803        .96472E-07** at limit **
  19  norm          21.169        26.170        .22323E-06   -.12211E-05
  20  Prefactor     34.130        10.931        .28305E-06   -.53825E-04
  21  Prefactor     91.658        51.577       -.64057E-05   -.87418E-03
  22  Prefactor     .10001E-03    102.46       -.54844E-06** at limit **
  23  Prefactor     .10001E-03    5.0479        .85015E-06** at limit **
  24  Normalizat    1.1250        .22110        .16230E-05   -.13194E-03
  25  Prefactor     .78396        .13533       -.10161E-05    .24059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.615435
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74216
  Prefactor  = 0.0001
  Prefactor  = 8.94173
  Prefactor  = 29.3593
  norm       = 1.01802
  Prefactor  = 13.3113
  Prefactor  = 3.89808
  Prefactor  = 0.0001
  norm       = 4.67462
  Prefactor  = 5.56037
  Prefactor  = 967.624
  Prefactor  = 0.0001
  Prefactor  = 12.6512
  norm       = 0.0001
  norm       = 21.1687
  Prefactor  = 34.13
  Prefactor  = 91.6578
  Prefactor  = 0.000100007
  Prefactor  = 0.000100007
  Normalizat = 1.12504
  Prefactor  = 0.783959
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.897     FROM HESSE     STATUS=OK           431 CALLS     3314 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .61543        .17603        .16697E-04   -1.5551    
   3  norm          .10000E-03    13.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7422        7.2852        .18478E-03   -1.5272    
   6  Prefactor     .10000E-03    3.0859        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9417        10.766        .13404E-03   -1.5110    
   8  Prefactor     29.359        10.330        .73944E-04   -1.4624    
   9  norm          1.0180        1.3509        .25818E-03   -1.5506    
  10  Prefactor     13.311        9.7166        .10979E-03   -1.4978    
  11  Prefactor     3.8981        13.944        .20440E-03   -1.5313    
  12  Prefactor     .10000E-03    61.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6746        8.0252        .93084E-03   -1.5276    
  14  Prefactor     5.5604        6.4336        .17037E-03   -1.5236    
  15  Prefactor     967.62        483.84        .67648E-04   -.93817    
  16  Prefactor     .10000E-03    13.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.651        27.620        .11256E-03   -1.4996    
  18  norm          .10000E-03    9.1865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.169        26.165        .87055E-04   -1.4787    
  20  Prefactor     34.130        10.958        .68591E-04   -1.4539    
  21  Prefactor     91.658        55.773        .20981E-03   -1.3790    
  22  Prefactor     .10001E-03    105.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    14.149        .33732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1250        .25808        .29766E-03   -.88952    
  25  Prefactor     .78396        .15813        .21962E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46196e-09
Minuit parameter uncertainties:
  1  5.69076e-05
  2  0.176032
  3  1.07757e-05
  4  1.37914e-05
  5  7.28659
  6  2.16433e-06
  7  10.7682
  8  10.3309
  9  1.35096
  10  9.71773
  11  13.9554
  12  1.19284e-05
  13  8.02702
  14  6.4344
  15  486.024
  16  6.96734e-05
  17  27.6479
  18  7.16136e-06
  19  26.179
  20  10.9588
  21  55.805
  22  0.00166879
  23  0.000647457
  24  0.25837
  25  0.158224
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.331e+01  9.718e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.840e-01  1.582e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.125e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.79e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.49e-05

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) = 6013.53017762
delta logL = 0.366872560173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6013.5297505
delta logL = 0.367299679241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.244       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8348       1.0000          .0000       10.000    
     3 'Normalizat'    1.1398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77729       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=   6013.530     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      267 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.199        455.66        .22255E-02    .86434E-05
   2  Index         1.8329        5.7904        .17924        .60698E-04
   3  Normalizat    1.1398        .14752        .66908E-01   -.12132E-04
   4  Prefactor     .77741        .72768E-01    .43421E-01   -.22746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.199
  Index      = 1.83291
  Normalizat = 1.13984
  Prefactor  = 0.777414
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.530     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.199        15.248        .89020E-04   -1.4809    
   2  Index         1.8329        .43302        .66842E-02   -.68596    
   3  Normalizat    1.1398        .24779        .29600E-03   -.88483    
   4  Prefactor     .77741        .15652        .22044E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13408e-12
Minuit parameter uncertainties:
  1  15.2513
  2  0.43393
  3  0.248041
  4  0.156612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844125': 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): 0
logL (Free Index) = 6013.52972985
delta logL = 0.36732033168

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.020e+01  1.525e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.833e+00  4.339e-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:  7.774e-01  1.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.140e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.83 +/- 0.43
Photon Flux (Free Index): 3.63e-08 +/- 2.99e-08
Energy Flux (Free Index): 3.94e-05 +/- 4.37e-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/844125/cmap_HighResolution_637200001_637459201_4FGL_J2324.7+0801_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.79e-08', energy_flux2='3.94e-05', photon_flux_error='3.50e-08', dlogl='3.67e-01', energy_flux='2.05e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-29 16:41:12.706769', photon_index_error2='0.43', photon_index2='1.83', ts='5.44', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='1.13', time_epoch_completed='1632958872.71', return_code='0', job_id='844125', GAL2='0.78', EG2='1.14', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='2.99e-08', ts2='6.18', photon_index='2.23' WHERE bin_id='1535' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 844125: <4FGL_J2324.7+0801_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1535 351.19 8.0282 637200001 637459201 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 :                                   611.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             229.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

