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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin458
RA = 351.19, Dec = 8.0282
tmin = 358041601, tmax = 358300801
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='839292', job_status='RUN', time_executed='2021-09-29 16:14:16.890980', time_epoch_executed='1632957256.89' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839292

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839292/ft1_4FGL_J2324.7+0801_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839292/ft2_4FGL_J2324.7+0801_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839292/ft1_4FGL_J2324.7+0801_daily_bin458.fits outfile=/scratch/kocevski/839292/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin458.fits ra=351.19 dec=8.0282 rad=12.0 tmin=358041601.0 tmax=358300801.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.50
user 3.25
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839292/ft1_filtered_4FGL_J2324.7+0801_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/839292/ft2_4FGL_J2324.7+0801_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/839292/ltcube_358041601_358300801_4FGL_J2324.7+0801_daily_bin458.fits outfile=/scratch/kocevski/839292/expmap_358041601_358300801_4FGL_J2324.7+0801_daily_bin458.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/839292/ltcube_358041601_358300801_4FGL_J2324.7+0801_daily_bin458.fits
.....................!
real 190.22
user 185.07
sys 4.78

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/839292/ft1_filtered_4FGL_J2324.7+0801_daily_bin458.fits scfile=/scratch/kocevski/839292/ft2_4FGL_J2324.7+0801_daily_bin458.fits outfile=/scratch/kocevski/839292/cmap_358041601_358300801_4FGL_J2324.7+0801_daily_bin458.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839292/ft1_filtered_4FGL_J2324.7+0801_daily_bin458.fits scfile=/scratch/kocevski/839292/ft2_4FGL_J2324.7+0801_daily_bin458.fits outfile=/scratch/kocevski/839292/cmap_HighResolution_358041601_358300801_4FGL_J2324.7+0801_daily_bin458.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839292/ft1_filtered_4FGL_J2324.7+0801_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/839292/ft2_4FGL_J2324.7+0801_daily_bin458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839292/Model_4FGL_J2324.7+0801_daily_bin458.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/839292/ft1_filtered_4FGL_J2324.7+0801_daily_bin458.fits.....................!
real 67.03
user 65.62
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18497       1.0000         .10000E-03   10000.    
     3 'norm      '    .45107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43865       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20089E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    119.73       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51045E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .36932E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.861       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.762       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90138       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0294       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=   6382.404     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3032 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0896        .58968E-07** at limit **
   2  Prefactor     .18497        .11912        .18546E-07    .16758E-03
   3  norm          .56263        11.580        .78744E-06   -.11875E-03
   4  Prefactor     .10000E-03    10.070       -.13691E-07** at limit **
   5  Prefactor     .10000E-03    1.3590        .33483E-07** at limit **
   6  Prefactor     .10000E-03    23.227        .75057E-06** at limit **
   7  Prefactor     .10000E-03    6.3592        .52274E-07** at limit **
   8  Prefactor     .10000E-03    2.3165        .88360E-07** at limit **
   9  norm          2.5000        1.1925       -.23588E-07   -.57894E-04
  10  Prefactor     .43539        7.6533        .10554E-05    .15162E-03
  11  Prefactor     .10000E-03    15.603        .75379E-06** at limit **
  12  Prefactor     .10000E-03    13.988       -.22803E-06** at limit **
  13  norm          .10002E-03    7.3491       -.37492E-05** at limit **
  14  Prefactor     1.0809        6.1160        .48777E-05    .75893E-03
  15  Prefactor     119.77        210.87        .67401E-06    .27223E-04
  16  Prefactor     .10000E-03    17.557        .16947E-06** at limit **
  17  Prefactor     .29690E-01    12.611       -.30867E-05    .72599E-03
  18  norm          .10000E-03    8.1456       -.34367E-06** at limit **
  19  norm          .10000E-03    16.920        .26864E-06** at limit **
  20  Prefactor     5.2080        4.8137        .31517E-07   -.36307E-05
  21  Prefactor     33.891        41.218       -.35227E-06   -.55704E-04
  22  Prefactor     29.789        23.743       -.59281E-06   -.27457E-03
  23  Prefactor     .10000E-03    10.277        .39918E-06** at limit **
  24  Normalizat    .90089        .19896        .14656E-06    .28113E-03
  25  Prefactor     1.0297        .12494       -.65431E-06    .48084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.18497
  norm       = 0.562633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49996
  Prefactor  = 0.435393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 1.08089
  Prefactor  = 119.766
  Prefactor  = 0.0001
  Prefactor  = 0.0296902
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.20804
  Prefactor  = 33.891
  Prefactor  = 29.7894
  Prefactor  = 0.0001
  Normalizat = 0.900885
  Prefactor  = 1.02969
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.404     FROM HESSE     STATUS=OK           433 CALLS     3465 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18497        .11612        .21311E-04   -1.5622    
   3  norm          .56263        109.42        .51723E-02   -1.5558    
   4  Prefactor     .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3602        .90945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3275        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5000        1.1911        .57508E-04   -1.5392    
  10  Prefactor     .43539        32.769        .39649E-02   -1.5576    
  11  Prefactor     .10000E-03    15.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    18.033        .34092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0809        7.1092        .39416E-03   -1.5500    
  15  Prefactor     119.77        210.98        .18389E-03   -1.3515    
  16  Prefactor     .10000E-03    17.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .29690E-01    11.050        .88209E-01   -1.5674    
  18  norm          .10000E-03    43.414        .44093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2080        4.8003        .15806E-03   -1.5252    
  21  Prefactor     33.891        41.322        .68864E-04   -1.4543    
  22  Prefactor     29.789        24.028        .73441E-04   -1.4616    
  23  Prefactor     .10000E-03    10.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90089        .22896        .30617E-03   -.96429    
  25  Prefactor     1.0297        .14452        .18787E-03   -.91746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12464e-09
Minuit parameter uncertainties:
  1  1.14017e-06
  2  0.116115
  3  15.7202
  4  2.33102e-05
  5  2.42189e-07
  6  7.34745e-05
  7  1.67498e-06
  8  5.89909e-08
  9  1.19108
  10  7.55789
  11  0.000159517
  12  7.97649e-05
  13  0.00126226
  14  5.54479
  15  212.33
  16  6.66331e-05
  17  1.14384
  18  0.000281319
  19  6.57062e-05
  20  4.80069
  21  41.3566
  22  24.0362
  23  3.79822e-05
  24  0.229203
  25  0.14457
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.354e-01  7.558e+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:  1.030e+00  1.446e-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.009e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839292/likelihoodResults_358041601_358300801_4FGL_J2324.7+0801_daily_bin458.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) = 6382.39701661
delta logL = 0.00668213447898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6382.39580464
delta logL = 0.00789410421021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64581       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5760       1.0000          .0000       10.000    
     3 'Normalizat'    .89883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0297       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=   6382.396     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      254 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64579        6.9965        .69555E-01    .13031E-02
   2  Index         2.5760        .41723        .50000       -.18104E-04
   3  Normalizat    .89885        .81129E-02    .69273E-01   -.41555E-04
   4  Prefactor     1.0297        .53139E-02    .41285E-01    .24206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.645794
  Index      = 2.57604
  Normalizat = 0.898847
  Prefactor  = 1.02966
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.396     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64579        18.354        .25473E-02   -1.5547    
   2  Index         2.5760        2.9757        .46001E-02   -.50612    
   3  Normalizat    .89885        .22011        .30648E-03   -.96501    
   4  Prefactor     1.0297        .14400        .18787E-03   -.91747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01926e-09
Minuit parameter uncertainties:
  1  6.88749
  2  3.27274
  3  0.22033
  4  0.144058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839292': 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) = 6382.39580463
delta logL = 0.00789411178812

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.458e-01  6.887e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.576e+00  3.273e+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.030e+00  1.441e-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:  8.988e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 351.190 8.028

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/839292/cmap_HighResolution_358041601_358300801_4FGL_J2324.7+0801_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-29 16:25:50.014136', job_id='839292', GAL2='1.03', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632957950.01', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.89e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='458' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 839292: <4FGL_J2324.7+0801_daily_bin458> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin458> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:20 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:21 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:10:21 2021
Terminated at Wed Sep 29 16:25:50 2021
Results reported at Wed Sep 29 16:25:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin458 351.19 8.0282 358041601 358300801 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 :                                   692.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

