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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin338
RA = 351.17, Dec = 31.2573
tmin = 326937601, tmax = 327196801
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='830482', job_status='RUN', time_executed='2021-09-29 15:43:26.544087', time_epoch_executed='1632955406.54' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830482

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830482/ft1_4FGL_J2324.6+3115_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830482/ft1_4FGL_J2324.6+3115_daily_bin338.fits outfile=/scratch/kocevski/830482/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin338.fits ra=351.17 dec=31.2573 rad=12.0 tmin=326937601.0 tmax=327196801.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.31
user 3.10
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.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/830482/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin338.fits evtable="EVENTS" outfile="/scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/830482/ltcube_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.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/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits
.....................!
real 11.57
user 11.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/830482/ltcube_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.fits outfile=/scratch/kocevski/830482/expmap_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.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/830482/ltcube_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.fits
.....................!
real 190.47
user 185.67
sys 4.45

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits scfile=/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits outfile=/scratch/kocevski/830482/cmap_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.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.17 yref=31.2573 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits scfile=/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits outfile=/scratch/kocevski/830482/cmap_HighResolution_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.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.17 yref=31.2573 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/830482/Model_4FGL_J2324.6+3115_daily_bin338.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/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits.....................!
real 104.14
user 102.74
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits', '/scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits', expMap='/scratch/kocevski/830482/expmap_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.fits', expCube='/scratch/kocevski/830482/ltcube_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830482/Model_4FGL_J2324.6+3115_daily_bin338.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/830482/ft1_filtered_4FGL_J2324.6+3115_daily_bin338.fits
Spacecraft file(s): /scratch/kocevski/830482/ft2_4FGL_J2324.6+3115_daily_bin338.fits
Exposure map: /scratch/kocevski/830482/expmap_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.fits
Exposure cube: /scratch/kocevski/830482/ltcube_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830482/Model_4FGL_J2324.6+3115_daily_bin338.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) = 9631.06767206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5641       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13656E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7298       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.119       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8369       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10466E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.890       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.257       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8883       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9631.013     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2218 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2434        18.785       -.29032E-06   -.99549E-04
   2  Prefactor     .10000E-03    2.3559        .36297E-07** at limit **
   3  norm          1.5641        .91627        .61198E-07   -.23738E-03
   4  Prefactor     .10001E-03    402.80       -.54226E-04** at limit **
   5  Prefactor     .10000E-03    4.6302        .27707E-07** at limit **
   6  Prefactor     .10000E-03    6.9975        .58324E-07** at limit **
   7  Prefactor     .10000E-03    2.3421        .35794E-07** at limit **
   8  Prefactor     8.7291        10.532        .17209E-05   -.76693E-04
   9  Prefactor     .10000E-03    39.657       -.25554E-05** at limit **
  10  norm          1.6962        1.2317       -.19815E-07   -.10073E-02
  11  Prefactor     3.3314        16.752       -.66606E-05   -.13542E-03
  12  Prefactor     19.121        12.386        .95000E-06   -.50668E-04
  13  Prefactor     9.8219        20.306        .37964E-04   -.10519E-04
  14  norm          .10000E-03    1.2077       -.64202E-07** at limit **
  15  norm          .10000E-03    11.908        .14614E-06** at limit **
  16  Prefactor     .10000E-03    3.5046       -.83136E-07** at limit **
  17  norm          2.5245        2.1176        .10710E-07   -.38277E-03
  18  Prefactor     .10000E-03    29.293        .95848E-06** at limit **
  19  Prefactor     14.890        33.306       -.81510E-06   -.22249E-04
  20  Prefactor     41.255        40.416        .48900E-06   -.16221E-04
  21  Prefactor     5.8887        7.6884        .60855E-05   -.16997E-03
  22  Normalizat    1.0071        .19768       -.26356E-05   -.49834E-04
  23  Prefactor     1.0556        .97165E-01   -.11113E-05    .12829E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.24338
  Prefactor  = 0.0001
  norm       = 1.56415
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.72908
  Prefactor  = 0.0001
  norm       = 1.6962
  Prefactor  = 3.33142
  Prefactor  = 19.1213
  Prefactor  = 9.82189
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52448
  Prefactor  = 0.0001
  Prefactor  = 14.8898
  Prefactor  = 41.2549
  Prefactor  = 5.88872
  Normalizat = 1.00712
  Prefactor  = 1.05562
 **********
 **   18 **HESSE 
 **********

 FCN=   9631.013     FROM HESSE     STATUS=OK           368 CALLS     2586 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2434        18.662        .16066E-03   -1.5208    
   2  Prefactor     .10000E-03    2.3651        .14709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5641        .91441        .69750E-04   -1.5458    
   4  Prefactor     .10001E-03    409.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3657        .14666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7291        10.523        .13566E-03   -1.5117    
   9  Prefactor     .10000E-03    40.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6962        1.2196        .88941E-04   -1.5447    
  11  Prefactor     3.3314        16.779        .22180E-03   -1.5343    
  12  Prefactor     19.121        12.368        .91599E-04   -1.4833    
  13  Prefactor     9.8219        20.291        .12776E-03   -1.5081    
  14  norm          .10000E-03    1.2127        .10531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.468        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5090        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5245        2.1094        .12562E-03   -1.5390    
  18  Prefactor     .10000E-03    30.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.890        33.369        .10380E-03   -1.4936    
  20  Prefactor     41.255        40.355        .62408E-04   -1.4422    
  21  Prefactor     5.8887        7.6298        .16549E-03   -1.5223    
  22  Normalizat    1.0071        .22686        .35937E-03   -.92792    
  23  Prefactor     1.0556        .11216        .17583E-03   -.90898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3379e-10
Minuit parameter uncertainties:
  1  18.6792
  2  5.88094e-06
  3  0.914419
  4  0.00352527
  5  3.20082e-06
  6  1.10226e-05
  7  5.21252e-06
  8  10.5257
  9  0.000134757
  10  1.21966
  11  14.9593
  12  12.3695
  13  20.305
  14  4.73253e-06
  15  3.45376e-05
  16  2.01328e-05
  17  2.10942
  18  7.51721e-05
  19  33.4112
  20  40.3817
  21  7.63106
  22  0.227079
  23  0.112188
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  2.013e-05  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.056e+00  1.122e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.007e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 5.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830482/likelihoodResults_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.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): 102
logL (Free Index) = 9631.01466333
delta logL = -0.00135578333902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9631.01330754
delta logL = 4.30372892879e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8699       1.0000          .0000       10.000    
     3 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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.

 FCN=   9631.013     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      249 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    278.57        .17964E-02** at limit **
   2  Index         2.5717        5.4738        .50000       -.23874E-07
   3  Normalizat    1.0071        .48440E-01    .35937E-03    .25118E-04
   4  Prefactor     1.0556        .24368E-01    .17583E-03    .61347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57169
  Normalizat = 1.00712
  Prefactor  = 1.05562
 **********
 **   18 **HESSE 
 **********

 FCN=   9631.013     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    845.45        .35928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5717        8.6019        .50000       -.50712    
   3  Normalizat    1.0071        .17349        .14375E-04   -.92792    
   4  Prefactor     1.0556        .87307E-01    .35166E-04   -.90898    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17588e-10
Minuit parameter uncertainties:
  1  3.27526e-05
  2  2433.73
  3  0.17359
  4  0.0873192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830482': 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): 102
logL (Free Index) = 9631.01330703
delta logL = 5.1274037105e-07

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  3.275e-05  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.572e+00  2.434e+03  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.056e+00  8.732e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.007e+00  1.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.170 31.257

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/830482/cmap_HighResolution_326937601_327196801_4FGL_J2324.6+3115_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-09-29 15:56:39.783917', job_id='830482', GAL2='1.06', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632956199.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='338' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:56:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 830482: <4FGL_J2324.6+3115_daily_bin338> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin338> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 15:40:25 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:40: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 15:40:26 2021
Terminated at Wed Sep 29 15:56:40 2021
Results reported at Wed Sep 29 15:56:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin338 351.17 31.2573 326937601 327196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.6+3115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

