/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 7701
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1644
RA = 351.19, Dec = 8.0282
tmin = 665452801, tmax = 665712001
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='575971', job_status='RUN', time_executed='2022-02-05 00:56:29.894558', time_epoch_executed='1644051389.89' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575971/ft1_4FGL_J2324.7+0801_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575971/ft2_4FGL_J2324.7+0801_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575971/ft1_4FGL_J2324.7+0801_daily_bin1644.fits outfile=/scratch/kocevski/575971/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1644.fits ra=351.19 dec=8.0282 rad=12.0 tmin=665452801.0 tmax=665712001.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.68
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/575971/ft2_4FGL_J2324.7+0801_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/575971/ltcube_665452801_665712001_4FGL_J2324.7+0801_daily_bin1644.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/575971/ft2_4FGL_J2324.7+0801_daily_bin1644.fits
.....................!
real 15.01
user 14.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/575971/ft2_4FGL_J2324.7+0801_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/575971/ltcube_665452801_665712001_4FGL_J2324.7+0801_daily_bin1644.fits outfile=/scratch/kocevski/575971/expmap_665452801_665712001_4FGL_J2324.7+0801_daily_bin1644.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/575971/ltcube_665452801_665712001_4FGL_J2324.7+0801_daily_bin1644.fits
.....................!
real 189.59
user 184.76
sys 4.49

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/575971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1644.fits scfile=/scratch/kocevski/575971/ft2_4FGL_J2324.7+0801_daily_bin1644.fits outfile=/scratch/kocevski/575971/cmap_665452801_665712001_4FGL_J2324.7+0801_daily_bin1644.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1644.fits scfile=/scratch/kocevski/575971/ft2_4FGL_J2324.7+0801_daily_bin1644.fits outfile=/scratch/kocevski/575971/cmap_HighResolution_665452801_665712001_4FGL_J2324.7+0801_daily_bin1644.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.56
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/575971/ft2_4FGL_J2324.7+0801_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575971/Model_4FGL_J2324.7+0801_daily_bin1644.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/575971/ft1_filtered_4FGL_J2324.7+0801_daily_bin1644.fits.....................!
real 71.41
user 70.14
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39394       1.0000         .10000E-03   10000.    
     3 'norm      '    18.544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.149       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21811E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18125       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.086       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    192.43       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9172       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.216       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2311       1.0000         .10000E-03   10000.    
    19 'norm      '    9.7699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18139E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.080       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.733       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92848       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92736       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=   6624.685     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2983 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.917       -.27856E-07** at limit **
   2  Prefactor     .39390        .14781        .14810E-07    .14866E-02
   3  norm          18.543        14.082       -.49074E-07   -.27582E-04
   4  Prefactor     47.140        41.899        .67657E-06    .98978E-05
   5  Prefactor     .10006E-03    13.680        .95084E-05** at limit **
   6  Prefactor     .10000E-03    4.7421        .94689E-07** at limit **
   7  Prefactor     .10000E-03    25.985        .71617E-06** at limit **
   8  Prefactor     .16368        29.786        .14909E-04   -.22511E-03
   9  norm          1.2546        1.0157       -.11728E-06    .54786E-03
  10  Prefactor     23.090        13.769        .11947E-05    .21337E-03
  11  Prefactor     7.6907        18.444       -.12084E-05    .32689E-04
  12  Prefactor     192.42        75.798        .40124E-06    .13592E-04
  13  norm          1.9187        17.811       -.58291E-05    .30539E-04
  14  Prefactor     .10000E-03    4.6380        .16452E-05** at limit **
  15  Prefactor     .10000E-03    146.39       -.16569E-05** at limit **
  16  Prefactor     17.361        17.549       -.18335E-05    .14942E-03
  17  Prefactor     29.220        31.835        .19700E-05    .84191E-04
  18  norm          4.2315        11.200       -.18032E-06    .85945E-04
  19  norm          9.6757        31.149        .11878E-05    .15593E-03
  20  Prefactor     .10005E-03    6.2991       -.51872E-05** at limit **
  21  Prefactor     17.074        29.233       -.23760E-06    .18736E-04
  22  Prefactor     22.727        21.395       -.26380E-06    .21978E-05
  23  Prefactor     .10000E-03    3.4054       -.30752E-07** at limit **
  24  Normalizat    .92890        .21932       -.46708E-06    .56172E-04
  25  Prefactor     .92712        .12703        .47444E-06    .32319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.393901
  norm       = 18.5429
  Prefactor  = 47.1397
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.163678
  norm       = 1.25464
  Prefactor  = 23.0898
  Prefactor  = 7.69073
  Prefactor  = 192.422
  norm       = 1.91871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3608
  Prefactor  = 29.2204
  norm       = 4.23153
  norm       = 9.67571
  Prefactor  = 0.000100047
  Prefactor  = 17.0735
  Prefactor  = 22.7269
  Prefactor  = 0.0001
  Normalizat = 0.928898
  Prefactor  = 0.927124
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.685     FROM HESSE     STATUS=OK           435 CALLS     3418 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .39390        .14634        .18376E-04   -1.5582    
   3  norm          18.543        14.084        .93007E-04   -1.4846    
   4  Prefactor     47.140        41.955        .58395E-04   -1.4334    
   5  Prefactor     .10006E-03    24.914        .35238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7545        .17309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16368        56.390        .35709E-02   -1.5627    
   9  norm          1.2546        .99697        .70830E-04   -1.5484    
  10  Prefactor     23.090        13.722        .83367E-04   -1.4747    
  11  Prefactor     7.6907        18.365        .14456E-03   -1.5153    
  12  Prefactor     192.42        75.773        .14558E-03   -1.2925    
  13  norm          1.9187        17.883        .30014E-03   -1.5431    
  14  Prefactor     .10000E-03    4.7917        .17275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    146.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.361        17.419        .96156E-04   -1.4874    
  17  Prefactor     29.220        31.705        .74123E-04   -1.4626    
  18  norm          4.2315        11.183        .19590E-03   -1.5297    
  19  norm          9.6757        31.096        .12820E-03   -1.5086    
  20  Prefactor     .10005E-03    34.002        .25461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.074        29.225        .96911E-04   -1.4881    
  22  Prefactor     22.727        21.417        .84010E-04   -1.4754    
  23  Prefactor     .10000E-03    3.4122        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92890        .25305        .32357E-03   -.95452    
  25  Prefactor     .92712        .14819        .20170E-03   -.95200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64448e-09
Minuit parameter uncertainties:
  1  1.05021e-05
  2  0.14634
  3  14.0861
  4  41.9809
  5  0.0024202
  6  4.65696e-07
  7  8.30451e-05
  8  6.08005
  9  0.996981
  10  13.724
  11  18.3782
  12  75.8111
  13  11.7196
  14  6.91219e-05
  15  0.000199555
  16  17.4238
  17  31.7236
  18  11.1889
  19  31.1476
  20  0.00253636
  21  29.2495
  22  21.4238
  23  2.71956e-07
  24  0.253375
  25  0.14826
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.309e+01  1.372e+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:  9.271e-01  1.483e-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.289e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.20
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.31e-08 +/- 4.94e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 2.11e-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) = 6622.86808145
delta logL = 1.81698778384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6622.82771772
delta logL = 1.85735151544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.513       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2744       1.0000          .0000       10.000    
     3 'Normalizat'    .97165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92507       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=   6622.828     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.470        12.615        .23927E-02   -.22033E-04
   2  Index         1.2732        .34532        .18393       -.58148E-04
   3  Normalizat    .97179        .20136        .71756E-01    .23826E-04
   4  Prefactor     .92500        .12620        .45324E-01    .76988E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4698
  Index      = 1.27319
  Normalizat = 0.971789
  Prefactor  = 0.924996
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.828     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.470        18.131        .95706E-04   -1.4872    
   2  Index         1.2732        .52131        .77220E-02   -.84108    
   3  Normalizat    .97179        .23505        .31748E-03   -.93982    
   4  Prefactor     .92500        .14782        .20225E-03   -.95273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4982e-09
Minuit parameter uncertainties:
  1  18.1366
  2  0.523462
  3  0.235303
  4  0.147882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575971': 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) = 6622.82771466
delta logL = 1.8573545744

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.747e+01  1.814e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.273e+00  5.235e-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:  9.250e-01  1.479e-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.718e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.89
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.27 +/- 0.52
Photon Flux (Free Index): 1.76e-08 +/- 2.05e-08
Energy Flux (Free Index): 1.18e-04 +/- 1.15e-04

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/575971/cmap_HighResolution_665452801_665712001_4FGL_J2324.7+0801_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.31e-08', energy_flux2='1.18e-04', photon_flux_error='4.94e-08', dlogl='1.86e+00', energy_flux='3.55e-05', photon_flux2='1.76e-08', job_status='DONE', time_completed='2022-02-05 01:07:00.014289', photon_index_error2='0.52', photon_index2='1.27', ts='13.20', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='0.93', time_epoch_completed='1644052020.01', return_code='0', job_id='575971', GAL2='0.92', EG2='0.97', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='2.05e-08', ts2='16.89', photon_index='2.23' WHERE bin_id='1644' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:07:00 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 575971: <4FGL_J2324.7+0801_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1644> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Feb  5 00:55:30 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:55:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:55:33 2022
Terminated at Sat Feb  5 01:07:00 2022
Results reported at Sat Feb  5 01:07:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1644 351.19 8.0282 665452801 665712001 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 :                                   632.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            690 sec.

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

