/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 134 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.6+3115_daily_bin563
RA = 351.17, Dec = 31.2573
tmin = 385257601, tmax = 385516801
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='831862', job_status='RUN', time_executed='2021-09-29 15:47:47.707484', time_epoch_executed='1632955667.71' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831862/ft1_4FGL_J2324.6+3115_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831862/ft1_4FGL_J2324.6+3115_daily_bin563.fits outfile=/scratch/kocevski/831862/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin563.fits ra=351.17 dec=31.2573 rad=12.0 tmin=385257601.0 tmax=385516801.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.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831862/ft1_filtered_4FGL_J2324.6+3115_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/831862/ltcube_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.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/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits
.....................!
real 11.97
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831862/ft1_filtered_4FGL_J2324.6+3115_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/831862/ltcube_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.fits outfile=/scratch/kocevski/831862/expmap_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.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/831862/ltcube_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.fits
.....................!
real 191.97
user 187.28
sys 4.23

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/831862/ft1_filtered_4FGL_J2324.6+3115_daily_bin563.fits scfile=/scratch/kocevski/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits outfile=/scratch/kocevski/831862/cmap_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.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/831862/ft1_filtered_4FGL_J2324.6+3115_daily_bin563.fits scfile=/scratch/kocevski/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits outfile=/scratch/kocevski/831862/cmap_HighResolution_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/831862/ft1_filtered_4FGL_J2324.6+3115_daily_bin563.fits', '/scratch/kocevski/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits', expMap='/scratch/kocevski/831862/expmap_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.fits', expCube='/scratch/kocevski/831862/ltcube_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/831862/Model_4FGL_J2324.6+3115_daily_bin563.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/831862/ft1_filtered_4FGL_J2324.6+3115_daily_bin563.fits
Spacecraft file(s): /scratch/kocevski/831862/ft2_4FGL_J2324.6+3115_daily_bin563.fits
Exposure map: /scratch/kocevski/831862/expmap_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.fits
Exposure cube: /scratch/kocevski/831862/ltcube_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/831862/Model_4FGL_J2324.6+3115_daily_bin563.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) = 7822.92140466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.907       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.070       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.2801       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12752       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15595E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2096       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.049       1.0000         .10000E-03   10000.    
    17 'norm      '    .74882E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.218       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51419       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1431       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=   7822.917     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2621 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.901        15.774       -.15329E-06   -.23753E-04
   2  Prefactor     .10000E-03    2.2161        .15482E-07** at limit **
   3  norm          8.2010        1.8709       -.90527E-07    .28828E-04
   4  Prefactor     38.043        54.143       -.77288E-05   -.27627E-05
   5  Prefactor     10.057        20.134        .85952E-06   -.29569E-04
   6  Prefactor     .10000E-03    80.040        .37507E-05** at limit **
   7  Prefactor     .10000E-03    5.5630        .42927E-07** at limit **
   8  Prefactor     3.3207        5.5386       -.42337E-05   -.21199E-03
   9  Prefactor     .10000E-03    10.120        .23400E-05** at limit **
  10  norm          5.2799        1.8463        .44064E-07   -.11469E-03
  11  Prefactor     .10000E-03    11.645       -.61361E-06** at limit **
  12  Prefactor     10.863        10.460       -.56873E-05   -.24037E-04
  13  Prefactor     .10000E-03    52.006       -.21404E-05** at limit **
  14  norm          7.2087        6.9186       -.25064E-05   -.19394E-03
  15  norm          .10000E-03    3.4837       -.47959E-08** at limit **
  16  Prefactor     39.044        21.396        .47005E-06    .33966E-04
  17  norm          .67418E-01    1.1709       -.30914E-06    .10052E-02
  18  Prefactor     .10000E-03    10.267       -.23411E-05** at limit **
  19  Prefactor     75.210        42.035       -.58357E-05    .85918E-05
  20  Prefactor     .10000E-03    14.567        .91390E-06** at limit **
  21  Prefactor     .10000E-03    2.1641       -.34162E-07** at limit **
  22  Normalizat    .51434        .22621        .45189E-05    .68946E-04
  23  Prefactor     1.1431        .11311        .28135E-06    .98774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.9015
  Prefactor  = 0.0001
  norm       = 8.20099
  Prefactor  = 38.0426
  Prefactor  = 10.0567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.32069
  Prefactor  = 0.0001
  norm       = 5.27995
  Prefactor  = 0.000100005
  Prefactor  = 10.8628
  Prefactor  = 0.0001
  norm       = 7.20874
  norm       = 0.0001
  Prefactor  = 39.0436
  norm       = 0.0674184
  Prefactor  = 0.0001
  Prefactor  = 75.2103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.514336
  Prefactor  = 1.14311
 **********
 **   18 **HESSE 
 **********

 FCN=   7822.917     FROM HESSE     STATUS=OK           380 CALLS     3001 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.901        15.762        .10042E-03   -1.4910    
   2  Prefactor     .10000E-03    2.2229        .12856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2010        1.8719        .53155E-04   -1.5135    
   4  Prefactor     38.043        54.158        .64969E-04   -1.4474    
   5  Prefactor     10.057        20.143        .12627E-03   -1.5074    
   6  Prefactor     .10000E-03    82.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3207        5.5694        .22216E-03   -1.5343    
   9  Prefactor     .10000E-03    10.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.2799        1.8430        .67466E-04   -1.5248    
  11  Prefactor     .10000E-03    11.914        .94508E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.863        10.487        .12158E-03   -1.5049    
  13  Prefactor     .10000E-03    53.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2087        6.9307        .14939E-03   -1.5171    
  15  norm          .10000E-03    3.4873        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.044        21.319        .64141E-04   -1.4457    
  17  norm          .67418E-01    19.145        .18273E-02   -1.5656    
  18  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     75.210        41.964        .46297E-04   -1.3971    
  20  Prefactor     .10000E-03    14.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.1683        .12702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .51434        .23695        .45867E-03   -1.1176    
  23  Prefactor     1.1431        .12121        .16555E-03   -.88100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90917e-09
Minuit parameter uncertainties:
  1  15.7661
  2  3.94251e-07
  3  1.87191
  4  54.228
  5  20.1565
  6  0.000212174
  7  9.65618e-06
  8  5.57025
  9  4.42411e-06
  10  1.84305
  11  0.000478209
  12  10.4885
  13  3.88994e-05
  14  6.9315
  15  3.23709e-06
  16  21.3231
  17  2.27124
  18  3.37841e-06
  19  41.9809
  20  3.33733e-06
  21  1.53926e-06
  22  0.237419
  23  0.121242
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.904e+01  2.132e+01  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.143e+00  1.212e-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:  5.143e-01  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.69
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 6.85e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.46e-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) = 7822.70946989
delta logL = 0.207788231469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7822.70925287
delta logL = 0.208005247727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.918       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5750       1.0000          .0000       10.000    
     3 'Normalizat'    .53074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1365       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.

 FCN=   7822.709     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      268 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.876        514.30        .14792E-02    .11028E-03
   2  Index         2.5740        6.2666        .18599        .40985E-04
   3  Normalizat    .53102        .14670        .10195        .55400E-04
   4  Prefactor     1.1364        .92459E-01    .36341E-01   -.44391E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.8756
  Index      = 2.57395
  Normalizat = 0.531016
  Prefactor  = 1.1364
 **********
 **   18 **HESSE 
 **********

 FCN=   7822.709     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.876        23.568        .29584E-03   -1.4352    
   2  Index         2.5740        .44379        .72815E-02   -.50660    
   3  Normalizat    .53102        .22764        .45190E-03   -1.1100    
   4  Prefactor     1.1364        .11837        .16596E-03   -.88311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56922e-12
Minuit parameter uncertainties:
  1  23.5723
  2  0.444552
  3  0.228038
  4  0.118402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831862': 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) = 7822.70924678
delta logL = 0.208011333661

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  4.588e+01  2.357e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.574e+00  4.446e-01  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.136e+00  1.184e-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:  5.310e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.13
Ra Dec: 351.170 31.257
Photon Index (Free Index): 2.57 +/- 0.44
Photon Flux (Free Index): 1.14e-07 +/- 6.06e-08
Energy Flux (Free Index): 3.07e-05 +/- 1.67e-05

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/831862/cmap_HighResolution_385257601_385516801_4FGL_J2324.6+3115_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='3.07e-05', photon_flux_error='6.85e-08', dlogl='2.08e-01', energy_flux='2.68e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-29 15:59:15.822067', photon_index_error2='0.44', photon_index2='2.57', ts='6.69', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.51', time_epoch_completed='1632956355.82', return_code='0', job_id='831862', GAL2='1.14', EG2='0.53', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.06e-08', ts2='7.13', photon_index='2.88' WHERE bin_id='563' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:59:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 831862: <4FGL_J2324.6+3115_daily_bin563> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin563> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:45:24 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:45:25 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:45:25 2021
Terminated at Wed Sep 29 15:59:16 2021
Results reported at Wed Sep 29 15:59:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin563 351.17 31.2573 385257601 385516801 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 :                                   688.00 sec.
    Max Memory :                                 1000 MB
    Average Memory :                             271.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

