/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 51 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin654
RA = 351.19, Dec = 8.0282
tmin = 408844801, tmax = 409104001
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='840688', job_status='RUN', time_executed='2021-09-29 16:16:27.122426', time_epoch_executed='1632957387.12' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840688

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840688/ft1_4FGL_J2324.7+0801_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840688/ft2_4FGL_J2324.7+0801_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840688/ft1_4FGL_J2324.7+0801_daily_bin654.fits outfile=/scratch/kocevski/840688/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin654.fits ra=351.19 dec=8.0282 rad=12.0 tmin=408844801.0 tmax=409104001.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 4.33
user 4.08
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840688/ft2_4FGL_J2324.7+0801_daily_bin654.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/840688/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/840688/ft1_filtered_4FGL_J2324.7+0801_daily_bin654.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840688/ft1_filtered_4FGL_J2324.7+0801_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/840688/ft2_4FGL_J2324.7+0801_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/840688/ltcube_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.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/840688/ft2_4FGL_J2324.7+0801_daily_bin654.fits
.....................!
real 11.70
user 11.37
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840688/ft1_filtered_4FGL_J2324.7+0801_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/840688/ft2_4FGL_J2324.7+0801_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/840688/ltcube_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.fits outfile=/scratch/kocevski/840688/expmap_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.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/840688/ltcube_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.fits
.....................!
real 192.21
user 186.80
sys 5.08

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/840688/ft1_filtered_4FGL_J2324.7+0801_daily_bin654.fits scfile=/scratch/kocevski/840688/ft2_4FGL_J2324.7+0801_daily_bin654.fits outfile=/scratch/kocevski/840688/cmap_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840688/ft1_filtered_4FGL_J2324.7+0801_daily_bin654.fits scfile=/scratch/kocevski/840688/ft2_4FGL_J2324.7+0801_daily_bin654.fits outfile=/scratch/kocevski/840688/cmap_HighResolution_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.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/840688/ft1_filtered_4FGL_J2324.7+0801_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/840688/ft2_4FGL_J2324.7+0801_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840688/Model_4FGL_J2324.7+0801_daily_bin654.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/840688/ft1_filtered_4FGL_J2324.7+0801_daily_bin654.fits.......................................!
real 17.62
user 16.41
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.391       1.0000         .10000E-03   10000.    
     4 'Prefactor '    163.12       1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.445       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    333.47       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    125.59       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28240E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.754       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    112.75       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10291E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   470.8912     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     2845 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    12.148        .92460E-05** at limit **
   2  Prefactor     .10000E-03    .45620        .24223E-05** at limit **
   3  norm          36.397        1.4909        .90242E-06   -.20760E-02
   4  Prefactor     163.12        1.0483        .12254E-06   -.13519E-02
   5  Prefactor     62.450        1.3761        .58227E-06   -.19079E-02
   6  Prefactor     .10075E-03    30.712       -.29816E-04** at limit **
   7  Prefactor     .10517E-03    17.526        .20437E-04** at limit **
   8  Prefactor     .10009E-03    8.2222        .15398E-04** at limit **
   9  norm          4.1308        3.6295        .79267E-06    .64047E-03
  10  Prefactor     .10032E-03    8.6681        .18415E-04** at limit **
  11  Prefactor     .10021E-03    12.132        .14721E-04** at limit **
  12  Prefactor     333.47        1.1096       -.13138E-06    .27615E-02
  13  norm          .10052E-03    8.0317        .32705E-05** at limit **
  14  Prefactor     2.4311        3.3605        .93111E-05   -.51155E-03
  15  Prefactor     125.58        1.1103       -.21273E-06    .17518E-02
  16  Prefactor     .23225E-03    38.865       -.58147E-04** at limit **
  17  Prefactor     .10002E-03    12.464        .17868E-04** at limit **
  18  norm          .10045E-03    58.448       -.57464E-04** at limit **
  19  norm          23.740        3.0382       -.28836E-05    .43730E-02
  20  Prefactor     .10000E-03    18.504        .10111E-04** at limit **
  21  Prefactor     .10404E-03    19.210       -.14029E-04** at limit **
  22  Prefactor     112.76        1.3269        .40871E-06   -.30781E-02
  23  Prefactor     .10046E-03    13.959        .23749E-04** at limit **
  24  Normalizat    .10000E-01    8.8195        .76836E-03** at limit **
  25  Prefactor     1.0198        .26308       -.48287E-04    .10411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100858
  Prefactor  = 0.0001
  norm       = 36.3966
  Prefactor  = 163.117
  Prefactor  = 62.4498
  Prefactor  = 0.000100748
  Prefactor  = 0.000105165
  Prefactor  = 0.00010009
  norm       = 4.13083
  Prefactor  = 0.000100317
  Prefactor  = 0.00010021
  Prefactor  = 333.472
  norm       = 0.000100517
  Prefactor  = 2.43111
  Prefactor  = 125.585
  Prefactor  = 0.000232251
  Prefactor  = 0.000100018
  norm       = 0.000100446
  norm       = 23.7396
  Prefactor  = 0.000100001
  Prefactor  = 0.000104041
  Prefactor  = 112.756
  Prefactor  = 0.000100456
  Normalizat = 0.01
  Prefactor  = 1.01977
 **********
 **   18 **HESSE 
 **********

 FCN=   470.8912     FROM HESSE     STATUS=OK           465 CALLS     3310 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    69.612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .45186        .64721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.397        70.077        .16609E-02   -1.4501    
   4  Prefactor     163.12        239.09        .78945E-03   -1.3147    
   5  Prefactor     62.450        50.569        .12695E-02   -1.4126    
   6  Prefactor     .10075E-03    35.153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10517E-03    47.522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10009E-03    23.199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1308        4.1700        .49570E-02   -1.5301    
  10  Prefactor     .10032E-03    23.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10021E-03    66.494        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     333.47        345.99        .55697E-03   -1.2035    
  13  norm          .10052E-03    23.864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4311        87.165        .65953E-02   -1.5396    
  15  Prefactor     125.58        6040.0        .89800E-03   -1.3462    
  16  Prefactor     .23225E-03    263.31        .99465E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    64.529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10045E-03    107.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.740        307.20        .20547E-02   -1.4733    
  20  Prefactor     .10000E-03    18.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10404E-03    81.549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     112.76        139.37        .94712E-03   -1.3580    
  23  Prefactor     .10046E-03    59.961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    6.1886        .22374       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0198        .42724        .42194E-01   -.92073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74163e-06
Minuit parameter uncertainties:
  1  0.0154743
  2  1.90906e-06
  3  70.2358
  4  240.53
  5  50.6038
  6  0.0102613
  7  0.0313595
  8  0.00289556
  9  4.17027
  10  0.00540631
  11  0.0074847
  12  348.168
  13  0.00702776
  14  29.1596
  15  1338.95
  16  0.374878
  17  0.0021308
  18  0.0138439
  19  171.893
  20  0.00031684
  21  0.0363564
  22  139.78
  23  0.010465
  24  6.10919e-05
  25  0.428676
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.003e-04  5.406e-03  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:  1.020e+00  4.287e-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:  1.000e-02  6.109e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 4.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840688/likelihoodResults_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.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) = 470.891426689
delta logL = -0.000199345658814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 470.891230594
delta logL = -3.2505766967e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1955       1.0000          .0000       10.000    
     3 'Normalizat'    .10015E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0192       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=   470.8912     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      262 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10346E-03    36.196        .10664E-01** at limit **
   2  Index         2.1096        8.9264        .50000        .10186E-04
   3  Normalizat    .10000E-01    .29635E-01    .13476E-01** at limit **
   4  Prefactor     1.0198        .13264E-01    .17964E-03   -.33092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103457
  Index      = 2.10957
  Normalizat = 0.01
  Prefactor  = 1.01977
 **********
 **   18 **HESSE 
 **********

 FCN=   470.8912     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10346E-03    320.97        .11039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1096        7.3202        .50000       -.61638    
   3  Normalizat    .10000E-01    .27958        .53904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0198        .40115E-01    .35927E-04   -.92073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.41233e-09
Minuit parameter uncertainties:
  1  0.0669812
  2  508.719
  3  6.28782e-05
  4  0.0401163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840688': 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) = 470.891227076
delta logL = 2.6670159059e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.035e-04  6.698e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.110e+00  5.087e+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:  1.020e+00  4.012e-02  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:  1.000e-02  6.288e-05  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/840688/cmap_HighResolution_408844801_409104001_4FGL_J2324.7+0801_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-02', job_status='DONE', photon_flux_upper_limit='4.89e-07', time_completed='2021-09-29 16:22:15.322364', job_id='840688', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632957735.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='654' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:22:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 840688: <4FGL_J2324.7+0801_daily_bin654> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin654 351.19 8.0282 408844801 409104001 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 :                                   347.00 sec.
    Max Memory :                                 1174 MB
    Average Memory :                             349.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   408 sec.
    Turnaround time :                            410 sec.

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

