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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin837
RA = 351.17, Dec = 31.2573
tmin = 456278401, tmax = 456537601
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='833377', job_status='RUN', time_executed='2021-09-29 15:54:00.996834', time_epoch_executed='1632956041.0' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833377/ft1_4FGL_J2324.6+3115_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833377/ft2_4FGL_J2324.6+3115_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833377/ft1_4FGL_J2324.6+3115_daily_bin837.fits outfile=/scratch/kocevski/833377/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin837.fits ra=351.17 dec=31.2573 rad=12.0 tmin=456278401.0 tmax=456537601.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 5.05
user 4.76
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833377/ft1_filtered_4FGL_J2324.6+3115_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/833377/ft2_4FGL_J2324.6+3115_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/833377/ltcube_456278401_456537601_4FGL_J2324.6+3115_daily_bin837.fits outfile=/scratch/kocevski/833377/expmap_456278401_456537601_4FGL_J2324.6+3115_daily_bin837.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/833377/ltcube_456278401_456537601_4FGL_J2324.6+3115_daily_bin837.fits
.....................!
real 190.42
user 185.07
sys 5.04

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/833377/ft1_filtered_4FGL_J2324.6+3115_daily_bin837.fits scfile=/scratch/kocevski/833377/ft2_4FGL_J2324.6+3115_daily_bin837.fits outfile=/scratch/kocevski/833377/cmap_456278401_456537601_4FGL_J2324.6+3115_daily_bin837.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833377/ft1_filtered_4FGL_J2324.6+3115_daily_bin837.fits scfile=/scratch/kocevski/833377/ft2_4FGL_J2324.6+3115_daily_bin837.fits outfile=/scratch/kocevski/833377/cmap_HighResolution_456278401_456537601_4FGL_J2324.6+3115_daily_bin837.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/833377/ft1_filtered_4FGL_J2324.6+3115_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/833377/ft2_4FGL_J2324.6+3115_daily_bin837.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833377/Model_4FGL_J2324.6+3115_daily_bin837.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/833377/ft1_filtered_4FGL_J2324.6+3115_daily_bin837.fits.....................!
real 96.99
user 95.63
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.186       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5586       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .89208       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.815       1.0000         .10000E-03   10000.    
    17 'norm      '    .12014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45276E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12217E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.091       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1897       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98934       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=   8619.321     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2573 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3065        20.487        .20632E-06    .11816E-04
   2  Prefactor     15.180        11.089        .75827E-06   -.26114E-03
   3  norm          1.5257        1.5524        .20734E-06   -.15525E-03
   4  Prefactor     .10000E-03    27.049        .15352E-05** at limit **
   5  Prefactor     .10000E-03    14.489        .21543E-07** at limit **
   6  Prefactor     .10000E-03    4.7982        .33474E-07** at limit **
   7  Prefactor     4.5584        4.5249        .17582E-05   -.11513E-02
   8  Prefactor     17.523        11.562        .16401E-07   -.38881E-04
   9  Prefactor     .10001E-03    34.625       -.38385E-05** at limit **
  10  norm          .89311        1.3841        .28651E-06   -.54283E-04
  11  Prefactor     6.3415        23.329        .36237E-06   -.22426E-04
  12  Prefactor     12.525        15.000       -.12407E-06   -.21123E-04
  13  Prefactor     .10000E-03    9.0628        .84906E-07** at limit **
  14  norm          .10000E-03    2.2551        .12859E-07** at limit **
  15  norm          .10000E-03    11.545        .23674E-06** at limit **
  16  Prefactor     19.809        19.454        .10092E-07   -.44888E-04
  17  norm          .10000E-03    1.2714       -.19343E-06** at limit **
  18  Prefactor     .10002E-03    53.838        .79165E-05** at limit **
  19  Prefactor     .10001E-03    134.03       -.55973E-05** at limit **
  20  Prefactor     .10002E-03    79.963       -.53028E-05** at limit **
  21  Prefactor     14.086        11.078        .14510E-06    .10854E-03
  22  Normalizat    1.1893        .22270       -.33296E-06   -.63722E-04
  23  Prefactor     .98941        .10291       -.41865E-06   -.11329E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.30652
  Prefactor  = 15.1796
  norm       = 1.5257
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.5584
  Prefactor  = 17.5231
  Prefactor  = 0.000100006
  norm       = 0.89311
  Prefactor  = 6.34155
  Prefactor  = 12.5246
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8095
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.000100013
  Prefactor  = 0.000100017
  Prefactor  = 14.0855
  Normalizat = 1.18932
  Prefactor  = 0.989414
 **********
 **   18 **HESSE 
 **********

 FCN=   8619.321     FROM HESSE     STATUS=OK           372 CALLS     2945 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3065        20.384        .15982E-03   -1.5206    
   2  Prefactor     15.180        11.197        .51390E-03   -1.4929    
   3  norm          1.5257        1.5416        .11097E-03   -1.5461    
   4  Prefactor     .10000E-03    27.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5584        4.7973        .94271E-03   -1.5281    
   8  Prefactor     17.523        11.562        .95682E-04   -1.4871    
   9  Prefactor     .10001E-03    36.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .89311        1.2746        .12864E-02   -1.5519    
  11  Prefactor     6.3415        23.327        .15938E-03   -1.5204    
  12  Prefactor     12.525        14.909        .11324E-03   -1.5000    
  13  Prefactor     .10000E-03    9.0717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2638        .13591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.809        19.439        .89976E-04   -1.4818    
  17  norm          .10000E-03    2.7784        .20129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    59.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    139.73        .42411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    82.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.086        11.039        .10670E-03   -1.4957    
  22  Normalizat    1.1893        .25850        .35542E-03   -.86933    
  23  Prefactor     .98941        .11994        .18503E-03   -.93083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17441e-09
Minuit parameter uncertainties:
  1  20.4068
  2  11.1984
  3  1.54161
  4  0.00038802
  5  1.10301e-06
  6  4.5763e-06
  7  4.79769
  8  11.5638
  9  0.000963757
  10  1.27465
  11  23.3609
  12  14.9136
  13  1.47598e-05
  14  2.3156e-06
  15  4.64144e-05
  16  19.4453
  17  5.31117e-05
  18  0.00237567
  19  0.0026657
  20  0.00235758
  21  11.0402
  22  0.258773
  23  0.119969
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.981e+01  1.945e+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:  9.894e-01  1.200e-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.189e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 6.25e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.34e-05

TS (Fixed Index): 1.35
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833377/likelihoodResults_456278401_456537601_4FGL_J2324.6+3115_daily_bin837.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) = 8619.13381881
delta logL = 0.187621330177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8619.13333788
delta logL = 0.188102257795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.281       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2849       1.0000          .0000       10.000    
     3 'Normalizat'    1.2245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97749       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=   8619.133     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      231 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.281        21.413        .22235E-02    .15067E-02
   2  Index         2.2849        .62618        .24372       -.83223E-04
   3  Normalizat    1.2246        .21247        .79267E-01    .13287E-04
   4  Prefactor     .97745        .10183        .45985E-01   -.75613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2807
  Index      = 2.28489
  Normalizat = 1.22463
  Prefactor  = 0.977454
 **********
 **   18 **HESSE 
 **********

 FCN=   8619.133     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.281        21.013        .88939E-04   -1.4807    
   2  Index         2.2849        .80334        .12112E-01   -.57403    
   3  Normalizat    1.2246        .25012        .35088E-03   -.85845    
   4  Prefactor     .97745        .11890        .18596E-03   -.93485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76274e-09
Minuit parameter uncertainties:
  1  21.0203
  2  0.808328
  3  0.250367
  4  0.11893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833377': 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) = 8619.13333768
delta logL = 0.188102463446

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.028e+01  2.102e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.285e+00  8.083e-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:  9.775e-01  1.189e-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.225e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 351.170 31.257
Photon Index (Free Index): 2.28 +/- 0.81
Photon Flux (Free Index): 4.10e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.64e-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/833377/cmap_HighResolution_456278401_456537601_4FGL_J2324.6+3115_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='1.59e-05', photon_flux_error='6.25e-08', dlogl='1.88e-01', energy_flux='1.36e-05', photon_flux2='4.10e-08', job_status='DONE', time_completed='2021-09-29 16:07:08.791840', photon_index_error2='0.81', photon_index2='2.28', ts='1.35', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.64e-05', EG='1.19', time_epoch_completed='1632956828.79', return_code='0', job_id='833377', GAL2='0.98', EG2='1.22', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.44e-08', ts2='1.70', photon_index='2.88' WHERE bin_id='837' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:07:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 833377: <4FGL_J2324.6+3115_daily_bin837> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin837 351.17 31.2573 456278401 456537601 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 :                                   786.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

