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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin390
RA = 351.19, Dec = 8.0282
tmin = 340416001, tmax = 340675201
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='839191', job_status='RUN', time_executed='2021-09-29 16:14:08.276063', time_epoch_executed='1632957248.28' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839191

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839191/ft1_4FGL_J2324.7+0801_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839191/ft1_4FGL_J2324.7+0801_daily_bin390.fits outfile=/scratch/kocevski/839191/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin390.fits ra=351.19 dec=8.0282 rad=12.0 tmin=340416001.0 tmax=340675201.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.73
user 6.46
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.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/839191/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/839191/ltcube_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.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/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits
.....................!
real 11.29
user 10.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/839191/ltcube_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.fits outfile=/scratch/kocevski/839191/expmap_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.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/839191/ltcube_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.fits
.....................!
real 190.62
user 184.93
sys 5.27

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

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits scfile=/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits outfile=/scratch/kocevski/839191/cmap_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.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.19 yref=8.0282 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits scfile=/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits outfile=/scratch/kocevski/839191/cmap_HighResolution_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.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.19 yref=8.0282 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/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839191/Model_4FGL_J2324.7+0801_daily_bin390.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/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits.....................!
real 62.52
user 60.98
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits', '/scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits', expMap='/scratch/kocevski/839191/expmap_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.fits', expCube='/scratch/kocevski/839191/ltcube_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/839191/Model_4FGL_J2324.7+0801_daily_bin390.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/839191/ft1_filtered_4FGL_J2324.7+0801_daily_bin390.fits
Spacecraft file(s): /scratch/kocevski/839191/ft2_4FGL_J2324.7+0801_daily_bin390.fits
Exposure map: /scratch/kocevski/839191/expmap_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.fits
Exposure cube: /scratch/kocevski/839191/ltcube_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/839191/Model_4FGL_J2324.7+0801_daily_bin390.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) = 5739.10297715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18284E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    13.555       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0379       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12799E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3843       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0198       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.111       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .74116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.408       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82670       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5739.102     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     4043 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.921        .80643E-05** at limit **
   2  Prefactor     .18192E-01    .71786E-01   -.65327E-08   -.12640E-02
   3  norm          13.553        16.193       -.24505E-05   -.29358E-04
   4  Prefactor     19.120        32.017        .11281E-04   -.23166E-05
   5  Prefactor     3.7294        7.5184       -.97083E-05   -.33565E-03
   6  Prefactor     4.0367        9.6954       -.40957E-05   -.11990E-03
   7  Prefactor     38.128        25.432        .13743E-05   -.37869E-04
   8  Prefactor     .10000E-03    4.9925        .49342E-06** at limit **
   9  norm          3.3850        1.2495       -.52311E-07   -.14316E-03
  10  Prefactor     9.7614        10.547       -.18311E-05   -.14714E-02
  11  Prefactor     11.546        16.585       -.13326E-05   -.25399E-04
  12  Prefactor     .10000E-03    36.591       -.88860E-05** at limit **
  13  norm          .10000E-03    4.1628        .14500E-06** at limit **
  14  Prefactor     7.3848        7.7088       -.16535E-05   -.16060E-03
  15  Prefactor     .10000E-03    68.078       -.27613E-05** at limit **
  16  Prefactor     .10000E-03    14.140       -.70106E-06** at limit **
  17  Prefactor     .10000E-03    6.1579        .72194E-07** at limit **
  18  norm          6.0184        10.951        .40649E-06   -.41463E-04
  19  norm          .10000E-03    13.019        .71729E-06** at limit **
  20  Prefactor     10.115        6.0800       -.89857E-06   -.51179E-03
  21  Prefactor     .94204        49.592        .85717E-05   -.21400E-03
  22  Prefactor     29.416        24.216       -.16752E-04   -.29083E-03
  23  Prefactor     .10000E-03    3.2925       -.36673E-07** at limit **
  24  Normalizat    .82659        .21657        .54151E-05   -.46063E-03
  25  Prefactor     .87471        .12418        .74623E-06   -.39454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.018192
  norm       = 13.553
  Prefactor  = 19.1199
  Prefactor  = 3.72935
  Prefactor  = 4.03669
  Prefactor  = 38.1285
  Prefactor  = 0.000100003
  norm       = 3.38503
  Prefactor  = 9.7614
  Prefactor  = 11.5461
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.38481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.0184
  norm       = 0.0001
  Prefactor  = 10.1147
  Prefactor  = 0.942036
  Prefactor  = 29.4156
  Prefactor  = 0.0001
  Normalizat = 0.826585
  Prefactor  = 0.874707
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.102     FROM HESSE     STATUS=OK           441 CALLS     4484 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18192E-01    .14974        .38012E-03   -1.5681    
   3  norm          13.553        16.194        .10879E-03   -1.4972    
   4  Prefactor     19.120        32.019        .91594E-04   -1.4833    
   5  Prefactor     3.7294        7.5050        .20911E-03   -1.5322    
   6  Prefactor     4.0367        9.6857        .20067E-03   -1.5306    
   7  Prefactor     38.128        25.439        .64909E-04   -1.4472    
   8  Prefactor     .10000E-03    28.793        .32373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3850        1.2501        .49722E-04   -1.5340    
  10  Prefactor     9.7614        10.684        .64122E-03   -1.5083    
  11  Prefactor     11.546        16.452        .11791E-03   -1.5028    
  12  Prefactor     .10000E-03    36.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1781        .15075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3848        7.7277        .14760E-03   -1.5164    
  15  Prefactor     .10000E-03    68.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0184        10.942        .16365E-03   -1.5217    
  19  norm          .10000E-03    13.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.115        6.0803        .12601E-03   -1.5072    
  21  Prefactor     .94204        62.630        .12713       -1.5514    
  22  Prefactor     29.416        24.192        .73880E-04   -1.4623    
  23  Prefactor     .10000E-03    3.2968        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82659        .25310        .30826E-03   -.99090    
  25  Prefactor     .87471        .14587        .18771E-03   -.97031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77657e-08
Minuit parameter uncertainties:
  1  0.00012922
  2  0.104099
  3  16.1997
  4  32.0482
  5  7.50689
  6  9.68947
  7  25.4461
  8  0.000544572
  9  1.25011
  10  10.6861
  11  16.458
  12  9.00637e-05
  13  2.92759e-05
  14  7.72879
  15  9.24751e-06
  16  4.9151e-07
  17  1.03665e-05
  18  10.9461
  19  1.19566e-05
  20  6.08065
  21  15.3782
  22  24.2
  23  6.47116e-06
  24  0.253458
  25  0.145939
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.761e+00  1.069e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.747e-01  1.459e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  8.266e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.51e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.64e-05

TS (Fixed Index): 1.28
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839191/likelihoodResults_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.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) = 5739.09855723
delta logL = 0.00338937564447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5739.09621541
delta logL = 0.00573118902048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.705       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1588       1.0000          .0000       10.000    
     3 'Normalizat'    .82865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   5739.096     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.704        15.014        .12246E-03    .46336E-03
   2  Index         2.1589        .66437        .76325E-02    .12943E-03
   3  Normalizat    .82864        .22708        .30791E-03   -.97881E-04
   4  Prefactor     .87365        .14329        .18781E-03   -.22862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7042
  Index      = 2.1589
  Normalizat = 0.828642
  Prefactor  = 0.873651
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.096     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.704        14.243        .48982E-05   -1.5054    
   2  Index         2.1589        .63041        .30530E-03   -.60434    
   3  Normalizat    .82864        .22710        .12316E-04   -.99015    
   4  Prefactor     .87365        .14330        .37562E-04   -.97068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80495e-10
Minuit parameter uncertainties:
  1  14.2471
  2  0.632902
  3  0.227365
  4  0.143358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839191': 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) = 5739.09621539
delta logL = 0.00573120865829

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.070e+01  1.425e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.159e+00  6.329e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.737e-01  1.434e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  8.286e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.16 +/- 0.63
Photon Flux (Free Index): 3.38e-08 +/- 3.90e-08
Energy Flux (Free Index): 1.64e-05 +/- 2.25e-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/839191/cmap_HighResolution_340416001_340675201_4FGL_J2324.7+0801_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', comment='SUCCESS', photon_flux='3.51e-08', energy_flux2='1.64e-05', photon_flux_error='3.84e-08', dlogl='5.73e-03', energy_flux='1.50e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-29 16:26:15.372166', photon_index_error2='0.63', photon_index2='2.16', ts='1.28', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.25e-05', EG='0.83', time_epoch_completed='1632957975.37', return_code='0', job_id='839191', GAL2='0.87', EG2='0.83', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='3.90e-08', ts2='1.30', photon_index='2.23' WHERE bin_id='390' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 839191: <4FGL_J2324.7+0801_daily_bin390> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin390> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:13 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:10:15 2021
Terminated at Wed Sep 29 16:26:16 2021
Results reported at Wed Sep 29 16:26:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin390 351.19 8.0282 340416001 340675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

