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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin254
RA = 351.19, Dec = 8.0282
tmin = 305164801, tmax = 305424001
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='837988', job_status='RUN', time_executed='2021-09-29 16:06:15.359575', time_epoch_executed='1632956775.36' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='254'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837988/ft1_4FGL_J2324.7+0801_daily_bin254.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837988/ft2_4FGL_J2324.7+0801_daily_bin254.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837988/ft1_4FGL_J2324.7+0801_daily_bin254.fits outfile=/scratch/kocevski/837988/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin254.fits ra=351.19 dec=8.0282 rad=12.0 tmin=305164801.0 tmax=305424001.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.51
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837988/ft1_filtered_4FGL_J2324.7+0801_daily_bin254.fits" evtable="EVENTS" scfile=/scratch/kocevski/837988/ft2_4FGL_J2324.7+0801_daily_bin254.fits sctable="SC_DATA" outfile=/scratch/kocevski/837988/ltcube_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.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/837988/ft2_4FGL_J2324.7+0801_daily_bin254.fits
.....................!
real 11.84
user 11.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837988/ft1_filtered_4FGL_J2324.7+0801_daily_bin254.fits evtable="EVENTS" scfile=/scratch/kocevski/837988/ft2_4FGL_J2324.7+0801_daily_bin254.fits sctable="SC_DATA" expcube=/scratch/kocevski/837988/ltcube_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.fits outfile=/scratch/kocevski/837988/expmap_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.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/837988/ltcube_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.fits
.....................!
real 191.09
user 185.52
sys 5.21

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/837988/ft1_filtered_4FGL_J2324.7+0801_daily_bin254.fits scfile=/scratch/kocevski/837988/ft2_4FGL_J2324.7+0801_daily_bin254.fits outfile=/scratch/kocevski/837988/cmap_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837988/ft1_filtered_4FGL_J2324.7+0801_daily_bin254.fits scfile=/scratch/kocevski/837988/ft2_4FGL_J2324.7+0801_daily_bin254.fits outfile=/scratch/kocevski/837988/cmap_HighResolution_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7604       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9998       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5355       1.0000         .10000E-03   10000.    
     9 'norm      '    .89201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7475       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4713       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4858       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.758       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.592       1.0000         .10000E-03   10000.    
    19 'norm      '    10.749       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.823       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6287       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11887E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97300       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80986       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=   8550.602     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2915 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7561        20.898        .18967E-05    .23263E-05
   2  Prefactor     4.9999        .40711       -.54340E-08   -.14878E-03
   3  norm          3.6282        5.9843        .12494E-05   -.76048E-06
   4  Prefactor     .10000E-03    16.024       -.15923E-05** at limit **
   5  Prefactor     .10000E-03    3.4818        .23267E-07** at limit **
   6  Prefactor     .10000E-03    4.6626        .23699E-07** at limit **
   7  Prefactor     .10000E-03    5.9193        .12501E-07** at limit **
   8  Prefactor     3.5358        6.7940        .25989E-05   -.13345E-05
   9  norm          .89212        .82198       -.19947E-07   -.22181E-03
  10  Prefactor     2.7483        8.8901        .49862E-05   -.17524E-04
  11  Prefactor     5.4714        17.419       -.42192E-06   -.15405E-05
  12  Prefactor     .10000E-03    17.152        .12598E-05** at limit **
  13  norm          15.401        11.449       -.29849E-06   -.43384E-04
  14  Prefactor     6.4865        9.6514       -.74244E-07   -.32381E-04
  15  Prefactor     .10000E-03    99.864       -.37781E-05** at limit **
  16  Prefactor     10.755        15.244        .23053E-05   -.56755E-04
  17  Prefactor     .10000E-03    12.495        .32369E-06** at limit **
  18  norm          26.596        17.477        .26818E-06   -.82841E-05
  19  norm          10.807        34.914       -.78924E-05   -.30451E-04
  20  Prefactor     13.822        5.5300        .32757E-06   -.11241E-03
  21  Prefactor     1.5604        146.42        .10862E-04   -.20461E-04
  22  Prefactor     .10000E-03    43.771       -.73103E-06** at limit **
  23  Prefactor     .10000E-03    9.0335        .45397E-07** at limit **
  24  Normalizat    .97314        .19886        .61175E-06   -.74308E-04
  25  Prefactor     .80979        .11803       -.16402E-05   -.17203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.75606
  Prefactor  = 4.99986
  norm       = 3.62824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53583
  norm       = 0.89212
  Prefactor  = 2.74831
  Prefactor  = 5.47137
  Prefactor  = 0.0001
  norm       = 15.4014
  Prefactor  = 6.48649
  Prefactor  = 0.0001
  Prefactor  = 10.7547
  Prefactor  = 0.0001
  norm       = 26.5964
  norm       = 10.8069
  Prefactor  = 13.8218
  Prefactor  = 1.56042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.973137
  Prefactor  = 0.809785
 **********
 **   18 **HESSE 
 **********

 FCN=   8550.602     FROM HESSE     STATUS=OK           433 CALLS     3348 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7561        20.924        .83673E-03   -1.5228    
   2  Prefactor     4.9999        .40808        .15888E-04   -1.5261    
   3  norm          3.6282        5.9725        .10605E-02   -1.5327    
   4  Prefactor     .10000E-03    16.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5013        .16847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5358        6.7792        .10749E-02   -1.5332    
   9  norm          .89212        .80082        .77133E-04   -1.5519    
  10  Prefactor     2.7483        8.8982        .12280E-02   -1.5376    
  11  Prefactor     5.4714        17.366        .17178E-03   -1.5240    
  12  Prefactor     .10000E-03    17.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.401        11.365        .51026E-03   -1.4923    
  14  Prefactor     6.4865        9.5885        .15759E-03   -1.5199    
  15  Prefactor     .10000E-03    99.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.755        15.220        .12215E-03   -1.5052    
  17  Prefactor     .10000E-03    12.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.596        17.476        .77686E-04   -1.4676    
  19  norm          10.807        34.958        .12220E-03   -1.5050    
  20  Prefactor     13.822        5.5296        .10773E-03   -1.4964    
  21  Prefactor     1.5604        148.18        .33140E-03   -1.5458    
  22  Prefactor     .10000E-03    44.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.1585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97314        .23298        .33666E-03   -.93936    
  25  Prefactor     .80979        .13748        .22555E-03   -.99369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95556e-10
Minuit parameter uncertainties:
  1  20.9503
  2  0.408083
  3  5.97351
  4  1.73275e-05
  5  2.02726e-06
  6  2.88053e-06
  7  7.55388e-07
  8  6.78068
  9  0.800828
  10  8.90249
  11  17.3816
  12  2.24868e-05
  13  11.3661
  14  9.59081
  15  2.14112e-05
  16  15.2251
  17  1.42142e-05
  18  17.4797
  19  35.0242
  20  5.52976
  21  30.4888
  22  0.000212009
  23  1.32915e-05
  24  0.233222
  25  0.137539
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.748e+00  8.902e+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:  8.098e-01  1.375e-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.731e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/837988/likelihoodResults_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.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) = 8550.5222195
delta logL = 0.079361466971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8550.51685426
delta logL = 0.0847267150511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9304       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6036       1.0000          .0000       10.000    
     3 'Normalizat'    .98022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80665       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=   8550.517     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      262 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9277        187.07        .50872E-02    .16399E-03
   2  Index         1.6038        2.6227        .50000       -.23563E-04
   3  Normalizat    .98030        .36086E-01    .75829E-01   -.20246E-05
   4  Prefactor     .80662        .20404E-01    .43804E-01    .57307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92769
  Index      = 1.60383
  Normalizat = 0.980298
  Prefactor  = 0.806616
 **********
 **   18 **HESSE 
 **********

 FCN=   8550.517     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9277        8.9843        .20349E-03   -1.5312    
   2  Index         1.6038        1.1481        .11456E-01   -.74672    
   3  Normalizat    .98030        .21858        .33557E-03   -.93693    
   4  Prefactor     .80662        .13591        .22594E-03   -.99485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28684e-11
Minuit parameter uncertainties:
  1  8.98737
  2  1.16775
  3  0.218783
  4  0.135968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837988': 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) = 8550.51685408
delta logL = 0.0847268919679

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.928e+00  8.987e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.604e+00  1.168e+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:  8.066e-01  1.360e-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.803e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/837988/cmap_HighResolution_305164801_305424001_4FGL_J2324.7+0801_daily_bin254.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-29 16:20:06.343255', job_id='837988', GAL2='0.81', fit_tolerance='1e-08', EG2='0.98', EG='0.97', time_epoch_completed='1632957606.34', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.47e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='254' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:20:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 837988: <4FGL_J2324.7+0801_daily_bin254> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin254 351.19 8.0282 305164801 305424001 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 :                                   826.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             333.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

