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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1302
RA = 351.19, Dec = 8.0282
tmin = 576806401, tmax = 577065601
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='843799', job_status='RUN', time_executed='2021-09-29 16:28:08.740775', time_epoch_executed='1632958088.74' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843799/ft1_4FGL_J2324.7+0801_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843799/ft2_4FGL_J2324.7+0801_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843799/ft1_4FGL_J2324.7+0801_daily_bin1302.fits outfile=/scratch/kocevski/843799/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1302.fits ra=351.19 dec=8.0282 rad=12.0 tmin=576806401.0 tmax=577065601.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.12
user 2.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843799/ft1_filtered_4FGL_J2324.7+0801_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/843799/ft2_4FGL_J2324.7+0801_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/843799/ltcube_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.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/843799/ft2_4FGL_J2324.7+0801_daily_bin1302.fits
.....................!
real 13.01
user 12.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843799/ft1_filtered_4FGL_J2324.7+0801_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/843799/ft2_4FGL_J2324.7+0801_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/843799/ltcube_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.fits outfile=/scratch/kocevski/843799/expmap_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.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/843799/ltcube_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.fits
.....................!
real 190.88
user 185.34
sys 5.08

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/843799/ft1_filtered_4FGL_J2324.7+0801_daily_bin1302.fits scfile=/scratch/kocevski/843799/ft2_4FGL_J2324.7+0801_daily_bin1302.fits outfile=/scratch/kocevski/843799/cmap_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843799/ft1_filtered_4FGL_J2324.7+0801_daily_bin1302.fits scfile=/scratch/kocevski/843799/ft2_4FGL_J2324.7+0801_daily_bin1302.fits outfile=/scratch/kocevski/843799/cmap_HighResolution_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843799/ft1_filtered_4FGL_J2324.7+0801_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/843799/ft2_4FGL_J2324.7+0801_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843799/Model_4FGL_J2324.7+0801_daily_bin1302.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/843799/ft1_filtered_4FGL_J2324.7+0801_daily_bin1302.fits....................!
real 71.42
user 69.94
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2448       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.409       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    24.380       1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3863       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.654       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8297       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58937       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0931       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6249.162     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2938 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9630        11.599         .0000        .32727E-03
   2  Prefactor     2.2448        .30533         .0000        .66367E-03
   3  norm          .10009E-03    18.765         .0000    ** at limit **
   4  Prefactor     .10000E-03    13.317         .0000    ** at limit **
   5  Prefactor     5.3403        10.436         .0000        .34523E-02
   6  Prefactor     .10001E-03    14.639         .0000    ** at limit **
   7  Prefactor     14.409        15.302         .0000        .30340E-03
   8  Prefactor     .10000E-03    3.5966         .0000    ** at limit **
   9  norm          .11737        .66177         .0000        .19001E-02
  10  Prefactor     10.753        22.866         .0000        .62507E-03
  11  Prefactor     .10000E-03    6.8917         .0000    ** at limit **
  12  Prefactor     .10050E-03    28.186         .0000    ** at limit **
  13  norm          1.2062        155.62         .0000        .79597E-02
  14  Prefactor     13.096        16.560         .0000        .61409E-03
  15  Prefactor     .10003E-03    187.05         .0000    ** at limit **
  16  Prefactor     4.2251        10.088         .0000        .37068E-02
  17  Prefactor     .10000E-03    26.146         .0000    ** at limit **
  18  norm          24.380        17.922         .0000       -.33618E-04
  19  norm          .10051E-03    23.639         .0000    ** at limit **
  20  Prefactor     7.3830        6.4390         .0000        .59410E-02
  21  Prefactor     .10005E-03    44.766         .0000    ** at limit **
  22  Prefactor     52.650        33.369         .0000        .19853E-03
  23  Prefactor     1.8284        25.031         .0000        .19221E-03
  24  Normalizat    .58943        .24994         .0000        .18076E-04
  25  Prefactor     1.0930        .14951         .0000       -.19251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.96296
  Prefactor  = 2.24483
  norm       = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 5.34027
  Prefactor  = 0.000100014
  Prefactor  = 14.4091
  Prefactor  = 0.0001
  norm       = 0.11737
  Prefactor  = 10.7525
  Prefactor  = 0.0001
  Prefactor  = 0.000100503
  norm       = 1.20617
  Prefactor  = 13.0962
  Prefactor  = 0.000100034
  Prefactor  = 4.22507
  Prefactor  = 0.000100004
  norm       = 24.3804
  norm       = 0.000100512
  Prefactor  = 7.38296
  Prefactor  = 0.000100046
  Prefactor  = 52.6502
  Prefactor  = 1.82845
  Normalizat = 0.589432
  Prefactor  = 1.09303
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.162     FROM HESSE     STATUS=OK           431 CALLS     3369 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9630        11.600        .71048E-03   -1.5144    
   2  Prefactor     2.2448        .30572        .15136E-04   -1.5408    
   3  norm          .10009E-03    19.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3403        10.432        .86943E-03   -1.5246    
   6  Prefactor     .10001E-03    14.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.409        15.302        .52758E-03   -1.4949    
   8  Prefactor     .10000E-03    3.6121        .14640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11737        1.3137        .12018E-02   -1.5639    
  10  Prefactor     10.753        18.043        .12221E-03   -1.5052    
  11  Prefactor     .10000E-03    6.8945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10050E-03    28.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2062        79.391        .20543E-02   -1.5488    
  14  Prefactor     13.096        12.887        .11070E-03   -1.4984    
  15  Prefactor     .10003E-03    187.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2251        9.9837        .97986E-03   -1.5297    
  17  Prefactor     .10000E-03    26.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.380        17.924        .40563E-03   -1.4720    
  19  norm          .10051E-03    23.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.3830        6.3969        .73787E-03   -1.5164    
  21  Prefactor     .10005E-03    44.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.650        33.359        .55273E-04   -1.4255    
  23  Prefactor     1.8284        25.145        .30855E-03   -1.5438    
  24  Normalizat    .58943        .27410        .42044E-03   -1.0843    
  25  Prefactor     1.0930        .16712        .19821E-03   -.89690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89518e-08
Minuit parameter uncertainties:
  1  11.6034
  2  0.305718
  3  0.00260798
  4  5.19613e-05
  5  10.4353
  6  0.000926913
  7  15.3057
  8  1.43191e-05
  9  0.785035
  10  18.0522
  11  2.70586e-05
  12  0.00753463
  13  19.5977
  14  12.89
  15  0.0050922
  16  9.98766
  17  0.000678174
  18  17.9282
  19  0.00696684
  20  6.39753
  21  0.00288833
  22  33.3705
  23  13.5678
  24  0.274729
  25  0.167203
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.075e+01  1.805e+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.093e+00  1.672e-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.894e-01  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/843799/likelihoodResults_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.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) = 6248.73202344
delta logL = 0.430175008892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.72089998
delta logL = 0.441298469741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0805       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9509       1.0000          .0000       10.000    
     3 'Normalizat'    .54596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1072       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=   6248.721     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      254 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0602        109.27        .44596E-02    .39314E-03
   2  Index         2.9532        3.1797        .10521        .16606E-03
   3  Normalizat    .54604        .80248E-01    .98250E-01    .38835E-04
   4  Prefactor     1.1069        .48052E-01    .37321E-01   -.12007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.06017
  Index      = 2.95325
  Normalizat = 0.546041
  Prefactor  = 1.10691
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.721     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0602        14.475        .14771E-03   -1.5258    
   2  Index         2.9532        1.2943        .54269E-02   -.42174    
   3  Normalizat    .54604        .26728        .43554E-03   -1.1033    
   4  Prefactor     1.1069        .16685        .19698E-03   -.89246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6907e-08
Minuit parameter uncertainties:
  1  14.4851
  2  1.31229
  3  0.267912
  4  0.166925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843799': 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) = 6248.72089274
delta logL = 0.441305708897

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.060e+00  1.449e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.953e+00  1.312e+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.107e+00  1.669e-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.460e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.95 +/- 1.31
Photon Flux (Free Index): 8.33e-08 +/- 7.57e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.73e-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/843799/cmap_HighResolution_576806401_577065601_4FGL_J2324.7+0801_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='4.41e-01', photon_flux2='8.33e-08', job_status='DONE', time_completed='2021-09-29 16:41:14.660033', photon_index_error2='1.31', photon_index2='2.95', ts='0.70', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.73e-05', EG='0.59', time_epoch_completed='1632958874.66', return_code='0', job_id='843799', GAL2='1.11', EG2='0.55', return_code2='0', photon_flux_error2='7.57e-08', ts2='1.61', photon_index='2.23' WHERE bin_id='1302' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 843799: <4FGL_J2324.7+0801_daily_bin1302> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1302> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:42 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:44 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:25:44 2021
Terminated at Wed Sep 29 16:41:14 2021
Results reported at Wed Sep 29 16:41:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1302 351.19 8.0282 576806401 577065601 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 :                                   672.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

