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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin644
RA = 351.19, Dec = 8.0282
tmin = 406252801, tmax = 406512001
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='840674', job_status='RUN', time_executed='2021-09-29 16:16:19.094298', time_epoch_executed='1632957379.09' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840674

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840674/ft1_4FGL_J2324.7+0801_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840674/ft2_4FGL_J2324.7+0801_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840674/ft1_4FGL_J2324.7+0801_daily_bin644.fits outfile=/scratch/kocevski/840674/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin644.fits ra=351.19 dec=8.0282 rad=12.0 tmin=406252801.0 tmax=406512001.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.82
user 3.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840674/ft2_4FGL_J2324.7+0801_daily_bin644.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/840674/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin644.fits evtable="EVENTS" outfile="/scratch/kocevski/840674/ft1_filtered_4FGL_J2324.7+0801_daily_bin644.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.54
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840674/ft1_filtered_4FGL_J2324.7+0801_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/840674/ft2_4FGL_J2324.7+0801_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/840674/ltcube_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.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/840674/ft2_4FGL_J2324.7+0801_daily_bin644.fits
.....................!
real 11.70
user 11.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840674/ft1_filtered_4FGL_J2324.7+0801_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/840674/ft2_4FGL_J2324.7+0801_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/840674/ltcube_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.fits outfile=/scratch/kocevski/840674/expmap_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.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/840674/ltcube_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.fits
.....................!
real 190.08
user 184.75
sys 4.97

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/840674/ft1_filtered_4FGL_J2324.7+0801_daily_bin644.fits scfile=/scratch/kocevski/840674/ft2_4FGL_J2324.7+0801_daily_bin644.fits outfile=/scratch/kocevski/840674/cmap_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840674/ft1_filtered_4FGL_J2324.7+0801_daily_bin644.fits scfile=/scratch/kocevski/840674/ft2_4FGL_J2324.7+0801_daily_bin644.fits outfile=/scratch/kocevski/840674/cmap_HighResolution_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840674/ft1_filtered_4FGL_J2324.7+0801_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/840674/ft2_4FGL_J2324.7+0801_daily_bin644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840674/Model_4FGL_J2324.7+0801_daily_bin644.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/840674/ft1_filtered_4FGL_J2324.7+0801_daily_bin644.fits.....................!
real 79.58
user 77.48
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7801       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9299       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    46.813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3414       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .94169       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78024       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0163       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=   7624.609     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2858 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.246        .66463E-07** at limit **
   2  Prefactor     1.7800        .26101       -.12500E-07   -.16043E-02
   3  norm          .10000E-03    11.074        .24227E-06** at limit **
   4  Prefactor     .10000E-03    7.0980        .62590E-07** at limit **
   5  Prefactor     4.9307        6.6050        .12300E-05    .14168E-04
   6  Prefactor     .10000E-03    2.9401       -.77616E-07** at limit **
   7  Prefactor     1.4158        61.021       -.31158E-06    .10735E-04
   8  Prefactor     .10002E-03    9.2359       -.24894E-05** at limit **
   9  norm          2.0548        .99914        .72506E-07    .11827E-02
  10  Prefactor     2.9348        7.6116        .40244E-05    .11575E-03
  11  Prefactor     27.986        19.110        .41339E-06   -.92079E-04
  12  Prefactor     .10000E-03    15.203       -.85849E-06** at limit **
  13  norm          .10000E-03    2.5856       -.18726E-06** at limit **
  14  Prefactor     .10000E-03    2.3878       -.24186E-06** at limit **
  15  Prefactor     .10000E-03    76.402        .41108E-05** at limit **
  16  Prefactor     .10000E-03    9.0916       -.23658E-06** at limit **
  17  Prefactor     .10000E-03    17.423        .33214E-06** at limit **
  18  norm          .10000E-03    4.2068       -.14411E-06** at limit **
  19  norm          46.817        29.463        .12224E-06    .33261E-03
  20  Prefactor     4.3410        4.9460        .35230E-06    .64676E-03
  21  Prefactor     .10000E-03    11.499       -.20486E-06** at limit **
  22  Prefactor     .85106        102.47        .31648E-04   -.66818E-04
  23  Prefactor     .10000E-03    9.0874       -.66123E-06** at limit **
  24  Normalizat    .78056        .19650       -.13779E-05    .64657E-03
  25  Prefactor     1.0161        .11892        .19071E-06    .10935E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.78004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.93075
  Prefactor  = 0.0001
  Prefactor  = 1.41581
  Prefactor  = 0.000100017
  norm       = 2.05482
  Prefactor  = 2.93481
  Prefactor  = 27.9858
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 46.817
  Prefactor  = 4.34102
  Prefactor  = 0.0001
  Prefactor  = 0.851063
  Prefactor  = 0.000100001
  Normalizat = 0.780564
  Prefactor  = 1.01608
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.609     FROM HESSE     STATUS=OK           415 CALLS     3273 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7800        .26146        .16392E-04   -1.5441    
   3  norm          .10000E-03    11.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.1012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9307        7.3550        .90571E-03   -1.5264    
   6  Prefactor     .10000E-03    2.9442        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4158        61.846        .35123E-03   -1.5470    
   8  Prefactor     .10002E-03    9.9782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0548        .99404        .58368E-04   -1.5421    
  10  Prefactor     2.9348        10.677        .11851E-02   -1.5365    
  11  Prefactor     27.986        19.029        .75732E-04   -1.4649    
  12  Prefactor     .10000E-03    15.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5975        .13717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4087        .13187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    76.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.1231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2110        .17494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          46.817        29.392        .58603E-04   -1.4338    
  20  Prefactor     4.3410        4.9422        .17140E-03   -1.5291    
  21  Prefactor     .10000E-03    11.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .85106        120.56        .59024E-02   -1.5523    
  23  Prefactor     .10000E-03    9.2183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78056        .22632        .33920E-03   -1.0079    
  25  Prefactor     1.0161        .13986        .19336E-03   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10757e-09
Minuit parameter uncertainties:
  1  4.23156e-05
  2  0.261459
  3  4.92818e-05
  4  9.07826e-06
  5  7.35631
  6  1.16772e-05
  7  18.7349
  8  0.000812632
  9  0.994043
  10  10.6834
  11  19.0329
  12  9.05663e-05
  13  2.87972e-05
  14  3.41275e-05
  15  0.00122355
  16  4.53482e-06
  17  8.20295e-05
  18  2.47364e-05
  19  29.4009
  20  4.94268
  21  4.03412e-05
  22  20.2991
  23  0.000145935
  24  0.226596
  25  0.139912
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.935e+00  1.068e+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.016e+00  1.399e-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:  7.806e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 9.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840674/likelihoodResults_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.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) = 7624.50550493
delta logL = 0.103909915812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7624.50311572
delta logL = 0.106299130454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5468       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7129       1.0000          .0000       10.000    
     3 'Normalizat'    .76991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7624.503     FROM MIGRAD    STATUS=FAILED        87 CALLS      259 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5463        8.9923        .25356E-03   -.15208E-03
   2  Index         2.7144        1.3374        .95912E-02    .49379E-03
   3  Normalizat    .76929        .21559        .34149E-03   -.42537E-03
   4  Prefactor     1.0176        .13859        .19322E-03   -.74906E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7624.503     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      336 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5463        8.9923        .15876E-03   -1.5389    
   2  Index         2.7144        1.3374        .84333E-03   -.47476    
   3  Normalizat    .76929        .21559        .23676E-03   -1.0122    
   4  Prefactor     1.0176        .13859        .19810E-03   -.92146    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7624.503     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      364 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5463        7.1590        .10143E-04   -.21745E-04
   2  Index         2.7144        1.0706        .19182E-02    .33426E-05
   3  Normalizat    .76929        .21574        .13659E-04   -.99875E-06
   4  Prefactor     1.0176        .13847        .38645E-04   -.12944E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54628
  Index      = 2.71436
  Normalizat = 0.769295
  Prefactor  = 1.01757
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.503     FROM HESSE     STATUS=OK            23 CALLS      387 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5463        6.9311        .20285E-05   -1.5389    
   2  Index         2.7144        1.0366        .76730E-04   -.47476    
   3  Normalizat    .76929        .21580        .27319E-05   -1.0122    
   4  Prefactor     1.0176        .13849        .77289E-05   -.92146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11886e-12
Minuit parameter uncertainties:
  1  6.93323
  2  1.04624
  3  0.216035
  4  0.138541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840674': 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) = 7624.50310837
delta logL = 0.106306480178

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.546e+00  6.933e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.714e+00  1.046e+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.018e+00  1.385e-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:  7.693e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/840674/cmap_HighResolution_406252801_406512001_4FGL_J2324.7+0801_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-29 16:28:55.583822', job_id='840674', GAL2='1.02', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1632958135.58', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.06e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='644' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:28:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 840674: <4FGL_J2324.7+0801_daily_bin644> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin644 351.19 8.0282 406252801 406512001 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

