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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin511
RA = 351.19, Dec = 8.0282
tmin = 371779201, tmax = 372038401
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='839370', job_status='RUN', time_executed='2021-09-29 16:12:04.486828', time_epoch_executed='1632957124.49' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839370/ft1_4FGL_J2324.7+0801_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839370/ft1_4FGL_J2324.7+0801_daily_bin511.fits outfile=/scratch/kocevski/839370/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin511.fits ra=351.19 dec=8.0282 rad=12.0 tmin=371779201.0 tmax=372038401.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.40
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/839370/ltcube_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.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/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/839370/ltcube_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.fits outfile=/scratch/kocevski/839370/expmap_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.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/839370/ltcube_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.fits
.....................!
real 190.29
user 185.59
sys 4.37

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/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits scfile=/scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits outfile=/scratch/kocevski/839370/cmap_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits scfile=/scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits outfile=/scratch/kocevski/839370/cmap_HighResolution_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839370/Model_4FGL_J2324.7+0801_daily_bin511.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/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits.....................!
real 64.82
user 62.98
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits', '/scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits', expMap='/scratch/kocevski/839370/expmap_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.fits', expCube='/scratch/kocevski/839370/ltcube_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/839370/Model_4FGL_J2324.7+0801_daily_bin511.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/839370/ft1_filtered_4FGL_J2324.7+0801_daily_bin511.fits
Spacecraft file(s): /scratch/kocevski/839370/ft2_4FGL_J2324.7+0801_daily_bin511.fits
Exposure map: /scratch/kocevski/839370/expmap_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.fits
Exposure cube: /scratch/kocevski/839370/ltcube_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/839370/Model_4FGL_J2324.7+0801_daily_bin511.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) = 5680.94905357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74030E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7600       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36122       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60718E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5347       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5292       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.783       1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.654       1.0000         .10000E-03   10000.    
    13 'norm      '    9.0239       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42761E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1743       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3447       1.0000         .10000E-03   10000.    
    19 'norm      '    .11664E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2829       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.123       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79691       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89284       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=   5680.937     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2941 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6383        .81268E-07** at limit **
   2  Prefactor     .74021E-01    .97146E-01   -.54234E-07   -.29298E-02
   3  norm          .10000E-03    8.3889        .34152E-06** at limit **
   4  Prefactor     29.596        32.815       -.29331E-04    .78088E-05
   5  Prefactor     3.7618        4.2543       -.39548E-06   -.16452E-03
   6  Prefactor     .35679        7.3970       -.36606E-06   -.13323E-03
   7  Prefactor     .10020E-03    15.248        .84773E-06** at limit **
   8  Prefactor     4.5339        7.6485       -.95576E-05   -.46487E-03
   9  norm          2.5292        1.1966        .86431E-07    .11083E-02
  10  Prefactor     .10000E-03    4.1248        .72962E-07** at limit **
  11  Prefactor     31.767        22.505        .22488E-04    .98761E-04
  12  Prefactor     76.670        57.720        .11104E-04    .52521E-04
  13  norm          9.0242        7.4833        .16341E-05    .14976E-03
  14  Prefactor     8.4133        8.1316        .84480E-06    .46246E-04
  15  Prefactor     .10006E-03    874.97       -.55080E-03** at limit **
  16  Prefactor     .10000E-03    32.132       -.14266E-05** at limit **
  17  Prefactor     1.1754        89.148       -.16432E-04   -.12786E-03
  18  norm          3.3419        13.660       -.24480E-06   -.12020E-03
  19  norm          .10000E-03    18.246       -.27157E-05** at limit **
  20  Prefactor     8.2801        6.5530       -.18794E-05    .78682E-03
  21  Prefactor     36.122        40.528       -.30863E-05    .58591E-04
  22  Prefactor     .10000E-03    20.109        .36392E-05** at limit **
  23  Prefactor     .10000E-03    3.0213       -.75943E-07** at limit **
  24  Normalizat    .79701        .20883        .18141E-05    .26371E-03
  25  Prefactor     .89285        .12404        .74955E-06    .44930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0740205
  norm       = 0.0001
  Prefactor  = 29.5963
  Prefactor  = 3.76177
  Prefactor  = 0.356792
  Prefactor  = 0.000100199
  Prefactor  = 4.53393
  norm       = 2.52923
  Prefactor  = 0.0001
  Prefactor  = 31.7672
  Prefactor  = 76.6696
  norm       = 9.02418
  Prefactor  = 8.41332
  Prefactor  = 0.000100065
  Prefactor  = 0.000100003
  Prefactor  = 1.17536
  norm       = 3.3419
  norm       = 0.0001
  Prefactor  = 8.28011
  Prefactor  = 36.1216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.797015
  Prefactor  = 0.892855
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.937     FROM HESSE     STATUS=OK           441 CALLS     3382 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74021E-01    .88418E-01    .25823E-03   -1.5654    
   3  norm          .10000E-03    8.4259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.596        32.886        .73694E-04   -1.4619    
   5  Prefactor     3.7618        4.2439        .15972E-03   -1.5320    
   6  Prefactor     .35679        40.444        .39196E-02   -1.5589    
   7  Prefactor     .10020E-03    17.419        .84984E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5339        7.6366        .18905E-03   -1.5282    
   9  norm          2.5292        1.1965        .54785E-04   -1.5390    
  10  Prefactor     .10000E-03    4.1476        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.767        22.493        .71074E-04   -1.4580    
  12  Prefactor     76.670        57.715        .45864E-04   -1.3954    
  13  norm          9.0242        7.4484        .13342E-03   -1.5107    
  14  Prefactor     8.4133        8.1151        .13822E-03   -1.5128    
  15  Prefactor     .10006E-03    872.52        .19410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1754        91.154        .42286E-02   -1.5491    
  18  norm          3.3419        13.621        .22130E-03   -1.5342    
  19  norm          .10000E-03    18.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2801        6.5231        .13930E-03   -1.5132    
  21  Prefactor     36.122        40.587        .66680E-04   -1.4505    
  22  Prefactor     .10000E-03    20.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0331        .12794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79701        .24094        .30724E-03   -1.0018    
  25  Prefactor     .89285        .14399        .18703E-03   -.96391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90806e-09
Minuit parameter uncertainties:
  1  2.06852e-08
  2  0.0884185
  3  3.24147e-06
  4  32.9066
  5  4.24426
  6  7.60155
  7  0.00372165
  8  7.63829
  9  1.19653
  10  4.20078e-06
  11  22.4993
  12  57.7573
  13  7.44919
  14  8.1162
  15  0.0152466
  16  0.000604102
  17  20.7334
  18  13.4986
  19  0.000114364
  20  6.52361
  21  40.6176
  22  5.93916e-06
  23  1.3588e-05
  24  0.241261
  25  0.14405
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.201e-06  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.929e-01  1.440e-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:  7.970e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839370/likelihoodResults_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.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): 102
logL (Free Index) = 5680.93787567
delta logL = -0.00114793180273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5680.93672862
delta logL = -8.81364030647e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11544E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1854       1.0000          .0000       10.000    
     3 'Normalizat'    .79697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89289       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=   5680.937     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10338E-03    2.6478        .16096E-01** at limit **
   2  Index         2.0983        8.0332        .50000        .64232E-04
   3  Normalizat    .79701        .36235E-02    .30724E-03   -.20536E-04
   4  Prefactor     .89286        .23405E-02    .18703E-03    .65817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103384
  Index      = 2.09835
  Normalizat = 0.797013
  Prefactor  = 0.892855
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.937     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10338E-03    36.124        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0983        8.2269        .50000       -.61913    
   3  Normalizat    .79701        .13346E-01    .12290E-04   -1.0018    
   4  Prefactor     .89286        .86207E-02    .37407E-04   -.96391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79141e-08
Minuit parameter uncertainties:
  1  0.0221264
  2  141.411
  3  0.0133464
  4  0.00862071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839370': 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): 102
logL (Free Index) = 5680.93672568
delta logL = 2.05330616154e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.034e-04  2.213e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.098e+00  1.414e+02  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.929e-01  8.621e-03  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:  7.970e-01  1.335e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

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/839370/cmap_HighResolution_371779201_372038401_4FGL_J2324.7+0801_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-29 16:22:50.172998', job_id='839370', GAL2='0.89', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632957770.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='511' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:22:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 839370: <4FGL_J2324.7+0801_daily_bin511> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin511> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:26 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:27 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:27 2021
Terminated at Wed Sep 29 16:22:50 2021
Results reported at Wed Sep 29 16:22:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin511 351.19 8.0282 371779201 372038401 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 :                                   645.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            744 sec.

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

