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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1058
RA = 351.19, Dec = 8.0282
tmin = 513561601, tmax = 513820801
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='842357', job_status='RUN', time_executed='2021-09-29 16:23:30.606863', time_epoch_executed='1632957810.61' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842357/ft1_4FGL_J2324.7+0801_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842357/ft1_4FGL_J2324.7+0801_daily_bin1058.fits outfile=/scratch/kocevski/842357/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1058.fits ra=351.19 dec=8.0282 rad=12.0 tmin=513561601.0 tmax=513820801.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.72
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.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/842357/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/842357/ft1_filtered_4FGL_J2324.7+0801_daily_bin1058.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842357/ft1_filtered_4FGL_J2324.7+0801_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/842357/ltcube_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.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/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.fits
.....................!
real 12.10
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842357/ft1_filtered_4FGL_J2324.7+0801_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/842357/ltcube_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.fits outfile=/scratch/kocevski/842357/expmap_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.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/842357/ltcube_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.fits
.....................!
real 190.27
user 185.48
sys 4.44

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/842357/ft1_filtered_4FGL_J2324.7+0801_daily_bin1058.fits scfile=/scratch/kocevski/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.fits outfile=/scratch/kocevski/842357/cmap_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842357/ft1_filtered_4FGL_J2324.7+0801_daily_bin1058.fits scfile=/scratch/kocevski/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.fits outfile=/scratch/kocevski/842357/cmap_HighResolution_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.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/842357/ft1_filtered_4FGL_J2324.7+0801_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/842357/ft2_4FGL_J2324.7+0801_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842357/Model_4FGL_J2324.7+0801_daily_bin1058.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/842357/ft1_filtered_4FGL_J2324.7+0801_daily_bin1058.fits.....................!
real 75.59
user 74.26
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9954       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0259       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6566       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.5701       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16190E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9381       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.248       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.909       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0055       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97938       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=   6817.942     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2545 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9914        15.096        .52744E-05    .46432E-04
   2  Prefactor     3.0259        .32038       -.79381E-08   -.10667E-02
   3  norm          1.7509        15.473        .11539E-05    .83875E-05
   4  Prefactor     .10000E-03    6.8837       -.11304E-05** at limit **
   5  Prefactor     .10000E-03    5.5569        .23571E-06** at limit **
   6  Prefactor     .10000E-03    4.1168        .67337E-07** at limit **
   7  Prefactor     2.6491        22.390        .83219E-06    .55757E-05
   8  Prefactor     .10000E-03    6.9196        .38602E-06** at limit **
   9  norm          .10000E-03    .38135        .71512E-07** at limit **
  10  Prefactor     5.2003        11.519        .45383E-06   -.74872E-04
  11  Prefactor     9.2273        22.433       -.22965E-06   -.80271E-04
  12  Prefactor     .10000E-03    13.306       -.36233E-06** at limit **
  13  norm          8.5586        11.262       -.12886E-05   -.55562E-03
  14  Prefactor     .10008E-03    7.7455       -.22458E-05** at limit **
  15  Prefactor     .10000E-03    69.970       -.67534E-07** at limit **
  16  Prefactor     .10000E-03    2.5653       -.10239E-07** at limit **
  17  Prefactor     .10000E-03    26.279       -.11462E-05** at limit **
  18  norm          1.9322        21.395        .11765E-04    .48810E-04
  19  norm          .10000E-03    7.1212        .51177E-06** at limit **
  20  Prefactor     1.5622        3.3089        .20467E-06   -.52505E-04
  21  Prefactor     22.211        33.674        .48409E-05   -.13455E-03
  22  Prefactor     31.911        22.078       -.28818E-07   -.29717E-04
  23  Prefactor     .10000E-03    4.7931        .42099E-07** at limit **
  24  Normalizat    1.0056        .22372       -.15848E-05   -.24963E-03
  25  Prefactor     .97935        .13620       -.69432E-06   -.38940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99137
  Prefactor  = 3.02586
  norm       = 1.7509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64907
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.20034
  Prefactor  = 9.22726
  Prefactor  = 0.0001
  norm       = 8.55861
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.93221
  norm       = 0.0001
  Prefactor  = 1.56219
  Prefactor  = 22.2107
  Prefactor  = 31.9107
  Prefactor  = 0.0001
  Normalizat = 1.00562
  Prefactor  = 0.979352
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.942     FROM HESSE     STATUS=OK           427 CALLS     2972 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9914        15.204        .11727E-02   -1.5362    
   2  Prefactor     3.0259        .32075        .14546E-04   -1.5360    
   3  norm          1.7509        15.490        .31629E-03   -1.5443    
   4  Prefactor     .10000E-03    6.8505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.6807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1297        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6491        22.412        .25009E-03   -1.5382    
   8  Prefactor     .10000E-03    7.1224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .50094        .99212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2003        11.411        .17633E-03   -1.5252    
  11  Prefactor     9.2273        22.431        .13193E-03   -1.5100    
  12  Prefactor     .10000E-03    13.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5586        10.641        .68465E-03   -1.5123    
  14  Prefactor     .10008E-03    21.856        .35266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5673        .12914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9322        22.143        .14912E-02   -1.5430    
  19  norm          .10000E-03    7.1207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5622        3.2777        .21184E-03   -1.5458    
  21  Prefactor     22.211        33.193        .84920E-04   -1.4765    
  22  Prefactor     31.911        22.091        .70933E-04   -1.4578    
  23  Prefactor     .10000E-03    4.8151        .17654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0056        .26443        .33176E-03   -.92842    
  25  Prefactor     .97935        .16181        .21371E-03   -.93421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21487e-09
Minuit parameter uncertainties:
  1  13.4932
  2  0.320751
  3  10.4188
  4  4.69577e-05
  5  8.79724e-06
  6  8.38477e-06
  7  15.418
  8  2.27342e-05
  9  3.36713e-06
  10  11.4162
  11  22.4514
  12  6.56897e-06
  13  10.6432
  14  0.00258963
  15  1.11261e-05
  16  2.32699e-06
  17  0.00023952
  18  13.0879
  19  2.31034e-05
  20  3.27809
  21  33.2205
  22  22.0968
  23  1.01055e-05
  24  0.264778
  25  0.16189
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.200e+00  1.142e+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:  9.794e-01  1.619e-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.006e+00  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842357/likelihoodResults_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.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) = 6817.33909852
delta logL = 0.603176466727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6817.31994719
delta logL = 0.622327790607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7094       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3450       1.0000          .0000       10.000    
     3 'Normalizat'    .95013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99777       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.

 FCN=   6817.320     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7074        31.820        .80386E-02    .76895E-03
   2  Index         3.3460        2.8844        .10054        .19505E-03
   3  Normalizat    .95031        .63982E-01    .76783E-01    .19484E-04
   4  Prefactor     .99768        .40040E-01    .46239E-01    .19541E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70739
  Index      = 3.34599
  Normalizat = 0.950309
  Prefactor  = 0.997678
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.320     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7074        66.567        .92006E-04   -1.5447    
   2  Index         3.3460        6.6691        .53555E-02   -.33715    
   3  Normalizat    .95031        .26713        .33982E-03   -.94714    
   4  Prefactor     .99768        .16854        .21177E-03   -.92807    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33837e-09
Minuit parameter uncertainties:
  1  21.3468
  2  5.55878
  3  0.267508
  4  0.168625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842357': 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) = 6817.31994578
delta logL = 0.62232920731

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.707e+00  2.135e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.346e+00  5.559e+00  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:  9.977e-01  1.686e-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:  9.503e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.35 +/- 5.56
Photon Flux (Free Index): 6.85e-08 +/- 6.61e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/842357/cmap_HighResolution_513561601_513820801_4FGL_J2324.7+0801_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='6.22e-01', photon_flux2='6.85e-08', job_status='DONE', time_completed='2021-09-29 16:35:21.781868', photon_index_error2='5.56', photon_index2='3.35', ts='0.31', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.98e-05', EG='1.01', time_epoch_completed='1632958521.78', return_code='0', job_id='842357', GAL2='1.00', EG2='0.95', return_code2='102', photon_flux_error2='6.61e-08', ts2='1.66', photon_index='2.23' WHERE bin_id='1058' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:35:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 842357: <4FGL_J2324.7+0801_daily_bin1058> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1058> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:42 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:44 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:20:44 2021
Terminated at Wed Sep 29 16:35:22 2021
Results reported at Wed Sep 29 16:35:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1058 351.19 8.0282 513561601 513820801 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 :                                   707.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

