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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin742
RA = 351.17, Dec = 31.2573
tmin = 431654401, tmax = 431913601
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='833238', job_status='RUN', time_executed='2021-09-29 15:50:39.024096', time_epoch_executed='1632955839.02' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833238/ft1_4FGL_J2324.6+3115_daily_bin742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833238/ft2_4FGL_J2324.6+3115_daily_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833238/ft1_4FGL_J2324.6+3115_daily_bin742.fits outfile=/scratch/kocevski/833238/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin742.fits ra=351.17 dec=31.2573 rad=12.0 tmin=431654401.0 tmax=431913601.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 6.02
user 5.67
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833238/ft1_filtered_4FGL_J2324.6+3115_daily_bin742.fits" evtable="EVENTS" scfile=/scratch/kocevski/833238/ft2_4FGL_J2324.6+3115_daily_bin742.fits sctable="SC_DATA" outfile=/scratch/kocevski/833238/ltcube_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.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/833238/ft2_4FGL_J2324.6+3115_daily_bin742.fits
.....................!
real 12.10
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833238/ft1_filtered_4FGL_J2324.6+3115_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/833238/ft2_4FGL_J2324.6+3115_daily_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/833238/ltcube_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.fits outfile=/scratch/kocevski/833238/expmap_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.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/833238/ltcube_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.fits
.....................!
real 190.71
user 185.20
sys 4.99

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/833238/ft1_filtered_4FGL_J2324.6+3115_daily_bin742.fits scfile=/scratch/kocevski/833238/ft2_4FGL_J2324.6+3115_daily_bin742.fits outfile=/scratch/kocevski/833238/cmap_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.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/833238/ft1_filtered_4FGL_J2324.6+3115_daily_bin742.fits scfile=/scratch/kocevski/833238/ft2_4FGL_J2324.6+3115_daily_bin742.fits outfile=/scratch/kocevski/833238/cmap_HighResolution_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.789       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.284       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1724       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3559       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.663       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7675       1.0000         .10000E-03   10000.    
    15 'norm      '    7.5006       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.411       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60057       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .29209       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0916       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4249.055     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2511 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.773        24.114         .0000        .42631E-02
   2  Prefactor     20.282        11.045         .0000        .17692E-03
   3  norm          1.1723        1.5770         .0000        .48223E-03
   4  Prefactor     .10001E-03    36.303         .0000    ** at limit **
   5  Prefactor     .10000E-03    8.8595         .0000    ** at limit **
   6  Prefactor     .10001E-03    19.131         .0000    ** at limit **
   7  Prefactor     4.6133        7.5135         .0000        .15292E-03
   8  Prefactor     .10000E-03    7.0915         .0000    ** at limit **
   9  Prefactor     .10009E-03    59.822         .0000    ** at limit **
  10  norm          3.3553        2.1931         .0000        .24670E-03
  11  Prefactor     11.656        25.677         .0000        .13139E-02
  12  Prefactor     .10000E-03    7.5628         .0000    ** at limit **
  13  Prefactor     .10000E-03    14.752         .0000    ** at limit **
  14  norm          6.7678        7.5020         .0000        .29559E-02
  15  norm          7.5010        10.271         .0000        .31694E-04
  16  Prefactor     34.408        26.200         .0000        .11634E-02
  17  norm          .10000E-03    1.1030         .0000    ** at limit **
  18  Prefactor     .10000E-03    8.7048         .0000    ** at limit **
  19  Prefactor     .10023E-03    33.787         .0000    ** at limit **
  20  Prefactor     .10072E-03    43.852         .0000    ** at limit **
  21  Prefactor     .60185        10.025         .0000        .26507E-01
  22  Normalizat    .29220        .29919         .0000        .59515E-04
  23  Prefactor     1.0915        .14981         .0000        .23419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.7726
  Prefactor  = 20.2821
  norm       = 1.17228
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 0.000100012
  Prefactor  = 4.61329
  Prefactor  = 0.0001
  Prefactor  = 0.000100086
  norm       = 3.35528
  Prefactor  = 11.6557
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 6.7678
  norm       = 7.50103
  Prefactor  = 34.4078
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100233
  Prefactor  = 0.000100723
  Prefactor  = 0.601849
  Normalizat = 0.292198
  Prefactor  = 1.09149
 **********
 **   18 **HESSE 
 **********

 FCN=   4249.055     FROM HESSE     STATUS=OK           364 CALLS     2875 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.773        23.755        .59907E-04   -1.4369    
   2  Prefactor     20.282        10.900        .88932E-04   -1.4807    
   3  norm          1.1723        1.5420        .91494E-04   -1.5491    
   4  Prefactor     .10001E-03    36.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    19.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6133        7.5137        .18739E-03   -1.5278    
   8  Prefactor     .10000E-03    7.1056        .16954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10009E-03    60.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3553        2.1723        .73074E-04   -1.5342    
  11  Prefactor     11.656        25.476        .11730E-03   -1.5025    
  12  Prefactor     .10000E-03    7.6161        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7678        7.4942        .77119E-03   -1.5188    
  15  norm          7.5010        10.277        .14644E-03   -1.5160    
  16  Prefactor     34.408        25.920        .68313E-04   -1.4534    
  17  norm          .10000E-03    1.1125        .66846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10023E-03    33.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10072E-03    43.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .60185        10.062        .19239E-02   -1.5553    
  22  Normalizat    .29220        .27385        .52588E-03   -1.2331    
  23  Prefactor     1.0915        .14212        .15074E-03   -.89739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47472e-08
Minuit parameter uncertainties:
  1  23.7603
  2  10.9013
  3  1.54202
  4  0.000920001
  5  0.000316058
  6  0.00097412
  7  7.51519
  8  4.9392e-05
  9  0.00454944
  10  2.17233
  11  25.4995
  12  0.000113833
  13  0.000310634
  14  7.49525
  15  10.2789
  16  25.9287
  17  7.16069e-07
  18  0.000416416
  19  0.0056254
  20  0.0112699
  21  4.92231
  22  0.275112
  23  0.142169
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.441e+01  2.593e+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.091e+00  1.422e-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:  2.922e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 8.33e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/833238/likelihoodResults_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.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) = 4249.04084647
delta logL = 0.0139841719692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4249.03326905
delta logL = 0.0215615940051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.604       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7032       1.0000          .0000       10.000    
     3 'Normalizat'    .30298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0874       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=   4249.033     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.596        28.867        .65358E-04    .31484E-04
   2  Index         2.7029        .80599        .79107E-02    .91205E-04
   3  Normalizat    .30303        .26660        .51675E-03   -.31593E-04
   4  Prefactor     1.0873        .14107        .15098E-03    .10196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.5959
  Index      = 2.70289
  Normalizat = 0.303031
  Prefactor  = 1.08732
 **********
 **   18 **HESSE 
 **********

 FCN=   4249.033     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.596        28.370        .26143E-05   -1.4481    
   2  Index         2.7029        .79171        .15821E-02   -.47734    
   3  Normalizat    .30303        .26639        .20670E-04   -1.2266    
   4  Prefactor     1.0873        .14094        .60391E-05   -.89873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76959e-11
Minuit parameter uncertainties:
  1  28.3801
  2  0.795964
  3  0.267512
  4  0.140991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833238': 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) = 4249.03326875
delta logL = 0.0215618864759

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.760e+01  2.838e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.703e+00  7.960e-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.087e+00  1.410e-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:  3.030e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 351.170 31.257
Photon Index (Free Index): 2.70 +/- 0.80
Photon Flux (Free Index): 1.04e-07 +/- 7.90e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.84e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/833238/cmap_HighResolution_431654401_431913601_4FGL_J2324.6+3115_daily_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='2.50e-05', photon_flux_error='8.33e-08', dlogl='2.16e-02', energy_flux='2.36e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-29 15:59:50.348159', photon_index_error2='0.80', photon_index2='2.70', ts='3.16', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='2.62e-07', energy_flux_error2='1.84e-05', EG='0.29', time_epoch_completed='1632956390.35', return_code='0', job_id='833238', GAL2='1.09', EG2='0.30', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.90e-08', ts2='3.24', photon_index='2.88' WHERE bin_id='742' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:59:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 833238: <4FGL_J2324.6+3115_daily_bin742> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin742 351.17 31.2573 431654401 431913601 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 :                                   551.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            570 sec.

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

