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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin775
RA = 351.17, Dec = 31.2573
tmin = 440208001, tmax = 440467201
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='833286', job_status='RUN', time_executed='2021-09-29 15:52:19.291913', time_epoch_executed='1632955939.29' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833286/ft1_4FGL_J2324.6+3115_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833286/ft2_4FGL_J2324.6+3115_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833286/ft1_4FGL_J2324.6+3115_daily_bin775.fits outfile=/scratch/kocevski/833286/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin775.fits ra=351.17 dec=31.2573 rad=12.0 tmin=440208001.0 tmax=440467201.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.43
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833286/ft2_4FGL_J2324.6+3115_daily_bin775.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/833286/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/833286/ft1_filtered_4FGL_J2324.6+3115_daily_bin775.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/833286/ft1_filtered_4FGL_J2324.6+3115_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/833286/ft2_4FGL_J2324.6+3115_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/833286/ltcube_440208001_440467201_4FGL_J2324.6+3115_daily_bin775.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/833286/ft2_4FGL_J2324.6+3115_daily_bin775.fits
.....................!
real 11.71
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833286/ft1_filtered_4FGL_J2324.6+3115_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/833286/ft2_4FGL_J2324.6+3115_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/833286/ltcube_440208001_440467201_4FGL_J2324.6+3115_daily_bin775.fits outfile=/scratch/kocevski/833286/expmap_440208001_440467201_4FGL_J2324.6+3115_daily_bin775.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/833286/ltcube_440208001_440467201_4FGL_J2324.6+3115_daily_bin775.fits
.....................!
real 191.67
user 185.74
sys 5.61

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/833286/ft1_filtered_4FGL_J2324.6+3115_daily_bin775.fits scfile=/scratch/kocevski/833286/ft2_4FGL_J2324.6+3115_daily_bin775.fits outfile=/scratch/kocevski/833286/cmap_440208001_440467201_4FGL_J2324.6+3115_daily_bin775.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833286/ft1_filtered_4FGL_J2324.6+3115_daily_bin775.fits scfile=/scratch/kocevski/833286/ft2_4FGL_J2324.6+3115_daily_bin775.fits outfile=/scratch/kocevski/833286/cmap_HighResolution_440208001_440467201_4FGL_J2324.6+3115_daily_bin775.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10504E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    8.0927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5625       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.639       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7796       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11528E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7444       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.570       1.0000         .10000E-03   10000.    
    17 'norm      '    .56285       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95288E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.502       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.518       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3067       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82520       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=   8896.298     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     2997 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.431        .18142E-02** at limit **
   2  Prefactor     .10056E-03    5.5924        .61973E-01** at limit **
   3  norm          8.0925        1.7321        .55425E-04    .70972E-04
   4  Prefactor     .10000E-03    18.487        .18142E-02** at limit **
   5  Prefactor     .10000E-03    9.4641        .18142E-02** at limit **
   6  Prefactor     5.5622        10.383        .85172E-03   -.78192E-04
   7  Prefactor     18.920        9.1080        .92079E-04   -.14569E-03
   8  Prefactor     19.639        14.461        .90379E-04    .10315E-04
   9  Prefactor     9.7759        19.718        .12814E-03   -.29455E-04
  10  norm          2.0560        1.3148        .82826E-04    .28824E-04
  11  Prefactor     26.622        17.990        .77641E-04    .38071E-05
  12  Prefactor     .10000E-03    19.277        .36285E-03** at limit **
  13  Prefactor     .10000E-03    6.4014        .18142E-02** at limit **
  14  norm          .10002E-03    9.9898        .33704E-02** at limit **
  15  norm          8.7443        8.2995        .13555E-03   -.83703E-04
  16  Prefactor     35.571        18.051        .67194E-04    .17630E-03
  17  norm          .56240        2.2113        .26353E-03   -.28662E-03
  18  Prefactor     .10003E-03    8.1207        .98624E-01** at limit **
  19  Prefactor     17.503        22.488        .95735E-04   -.31113E-04
  20  Prefactor     .10000E-03    78.327        .18142E-02** at limit **
  21  Prefactor     24.518        9.7955        .80899E-04    .36088E-03
  22  Normalizat    1.3067        .23918        .32181E-03   -.20193E-03
  23  Prefactor     .82519        .11507        .19445E-03   -.35012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100556
  norm       = 8.0925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56222
  Prefactor  = 18.9196
  Prefactor  = 19.6387
  Prefactor  = 9.77588
  norm       = 2.05602
  Prefactor  = 26.6217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100024
  norm       = 8.74431
  Prefactor  = 35.5712
  norm       = 0.562404
  Prefactor  = 0.000100034
  Prefactor  = 17.5031
  Prefactor  = 0.000100001
  Prefactor  = 24.5179
  Normalizat = 1.30674
  Prefactor  = 0.825185
 **********
 **   18 **HESSE 
 **********

 FCN=   8896.298     FROM HESSE     STATUS=OK           366 CALLS     3363 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10056E-03    5.3779        .63806E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.0925        1.7321        .22170E-05   -1.5139    
   4  Prefactor     .10000E-03    18.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5622        10.382        .34069E-04   -1.5236    
   7  Prefactor     18.920        9.1076        .36831E-05   -1.4838    
   8  Prefactor     19.639        14.462        .36151E-05   -1.4821    
   9  Prefactor     9.7759        19.719        .51256E-05   -1.5083    
  10  norm          2.0560        1.3148        .33131E-05   -1.5421    
  11  Prefactor     26.622        17.993        .31056E-05   -1.4676    
  12  Prefactor     .10000E-03    19.278        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    10.041        .67408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7443        8.2991        .54220E-05   -1.5116    
  16  Prefactor     35.571        18.037        .26878E-05   -1.4514    
  17  norm          .56240        2.2108        .10541E-04   -1.5558    
  18  Prefactor     .10003E-03    8.0954        .98990E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.503        22.487        .38294E-05   -1.4871    
  20  Prefactor     .10000E-03    78.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.518        9.7951        .32359E-05   -1.4717    
  22  Normalizat    1.3067        .23936        .12873E-04   -.83365    
  23  Prefactor     .82519        .11514        .38890E-04   -.98807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05123e-09
Minuit parameter uncertainties:
  1  1.19208e-05
  2  0.00345847
  3  1.73212
  4  0.000131453
  5  2.61012e-06
  6  10.3851
  7  9.10822
  8  14.465
  9  19.732
  10  1.3148
  11  17.9967
  12  4.13423e-05
  13  3.82913e-06
  14  0.000981234
  15  8.30022
  16  18.0394
  17  2.21111
  18  0.00105332
  19  22.498
  20  0.000421104
  21  9.79572
  22  0.239562
  23  0.115174
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.557e+01  1.804e+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:  8.252e-01  1.152e-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.307e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.82
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.80e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.24e-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) = 8895.44853851
delta logL = 0.849223561891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8895.44468148
delta logL = 0.85308059224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.228       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9386       1.0000          .0000       10.000    
     3 'Normalizat'    1.2570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84591       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=   8895.445     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      316 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.220        39.281        .10264E-03   -.32344E-03
   2  Index         3.9396        2.1515        .63452E-02   -.71302E-04
   3  Normalizat    1.2568        .23270        .32692E-03    .19036E-03
   4  Prefactor     .84592        .11454        .19234E-03    .26145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2203
  Index      = 3.93956
  Normalizat = 1.25677
  Prefactor  = 0.845924
 **********
 **   18 **HESSE 
 **********

 FCN=   8895.445     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.220        20.840        .41055E-05   -1.4928    
   2  Index         3.9396        1.1683        .25381E-03   -.21371    
   3  Normalizat    1.2568        .23245        .13077E-04   -.84866    
   4  Prefactor     .84592        .11313        .38467E-04   -.98057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44266e-10
Minuit parameter uncertainties:
  1  20.8502
  2  1.17976
  3  0.232647
  4  0.113162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833286': 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) = 8895.44467998
delta logL = 0.853082099504

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.522e+01  2.085e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.940e+00  1.180e+00  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:  8.459e-01  1.132e-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.257e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.70
Ra Dec: 351.170 31.257
Photon Index (Free Index): 3.94 +/- 1.18
Photon Flux (Free Index): 1.43e-07 +/- 6.47e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.09e-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/833286/cmap_HighResolution_440208001_440467201_4FGL_J2324.6+3115_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.16e-05', photon_flux_error='5.80e-08', dlogl='8.53e-01', energy_flux='2.44e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-29 16:05:28.780915', photon_index_error2='1.18', photon_index2='3.94', ts='5.82', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.31', time_epoch_completed='1632956728.78', return_code='0', job_id='833286', GAL2='0.85', EG2='1.26', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='6.47e-08', ts2='7.70', photon_index='2.88' WHERE bin_id='775' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 833286: <4FGL_J2324.6+3115_daily_bin775> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin775 351.17 31.2573 440208001 440467201 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

