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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1574
RA = 351.19, Dec = 8.0282
tmin = 647308801, tmax = 647568001
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='844164', job_status='RUN', time_executed='2021-09-29 16:28:29.414755', time_epoch_executed='1632958109.41' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844164/ft1_4FGL_J2324.7+0801_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844164/ft2_4FGL_J2324.7+0801_daily_bin1574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844164/ft1_4FGL_J2324.7+0801_daily_bin1574.fits outfile=/scratch/kocevski/844164/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1574.fits ra=351.19 dec=8.0282 rad=12.0 tmin=647308801.0 tmax=647568001.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844164/ft1_filtered_4FGL_J2324.7+0801_daily_bin1574.fits" evtable="EVENTS" scfile=/scratch/kocevski/844164/ft2_4FGL_J2324.7+0801_daily_bin1574.fits sctable="SC_DATA" outfile=/scratch/kocevski/844164/ltcube_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.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/844164/ft2_4FGL_J2324.7+0801_daily_bin1574.fits
.....................!
real 11.65
user 11.26
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844164/ft1_filtered_4FGL_J2324.7+0801_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/844164/ft2_4FGL_J2324.7+0801_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/844164/ltcube_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.fits outfile=/scratch/kocevski/844164/expmap_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.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/844164/ltcube_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.fits
.....................!
real 190.23
user 184.62
sys 5.29

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/844164/ft1_filtered_4FGL_J2324.7+0801_daily_bin1574.fits scfile=/scratch/kocevski/844164/ft2_4FGL_J2324.7+0801_daily_bin1574.fits outfile=/scratch/kocevski/844164/cmap_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.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/844164/ft1_filtered_4FGL_J2324.7+0801_daily_bin1574.fits scfile=/scratch/kocevski/844164/ft2_4FGL_J2324.7+0801_daily_bin1574.fits outfile=/scratch/kocevski/844164/cmap_HighResolution_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844164/ft1_filtered_4FGL_J2324.7+0801_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/844164/ft2_4FGL_J2324.7+0801_daily_bin1574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844164/Model_4FGL_J2324.7+0801_daily_bin1574.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/844164/ft1_filtered_4FGL_J2324.7+0801_daily_bin1574.fits.....................!
real 73.04
user 71.67
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29035       1.0000         .10000E-03   10000.    
     3 'norm      '    17.677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    86.205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0553       1.0000         .10000E-03   10000.    
     9 'norm      '    .44445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.689       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0361       1.0000         .10000E-03   10000.    
    18 'norm      '    .10678E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11585E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11557E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60575       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0695       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=   7221.806     FROM MIGRAD    STATUS=CONVERGED   1031 CALLS     3413 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.362        .18142E-02** at limit **
   2  Prefactor     .29035        .12650        .19351E-04   -.41420E-03
   3  norm          17.673        11.726        .95260E-04    .19572E-04
   4  Prefactor     86.217        40.293        .43270E-04    .18077E-04
   5  Prefactor     4.7700        6.9795        .92111E-03    .53838E-04
   6  Prefactor     .10000E-03    4.0966        .16774E-02** at limit **
   7  Prefactor     .10000E-03    13.656        .18142E-02** at limit **
   8  Prefactor     9.0567        6.9703        .13319E-03   -.10414E-04
   9  norm          .44337        .59072        .88446E-03   -.11170E-02
  10  Prefactor     1.9852        6.1971        .29411E-03   -.26208E-04
  11  Prefactor     8.8312        16.397        .13488E-03   -.56474E-05
  12  Prefactor     .10000E-03    34.831        .18142E-02** at limit **
  13  norm          .10000E-03    6.3597        .36285E-03** at limit **
  14  Prefactor     3.8675        7.2030        .20523E-03   -.15117E-03
  15  Prefactor     .10000E-03    117.64        .18142E-02** at limit **
  16  Prefactor     14.693        12.693        .10450E-03    .76695E-04
  17  Prefactor     7.0354        16.390        .15124E-03   -.48862E-04
  18  norm          .10000E-03    23.792        .18142E-02** at limit **
  19  norm          .10000E-03    32.486        .91498E-01** at limit **
  20  Prefactor     .10000E-03    4.1559        .33075E-02** at limit **
  21  Prefactor     .10000E-03    11.769        .18142E-02** at limit **
  22  Prefactor     .10000E-03    10.139        .18142E-02** at limit **
  23  Prefactor     .10000E-03    1.9255        .11513E-02** at limit **
  24  Normalizat    .60569        .21631        .35111E-03   -.28914E-04
  25  Prefactor     1.0695        .13529        .17719E-03   -.98437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.290354
  norm       = 17.6733
  Prefactor  = 86.2172
  Prefactor  = 4.76999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.05674
  norm       = 0.443372
  Prefactor  = 1.98519
  Prefactor  = 8.83115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.86747
  Prefactor  = 0.0001
  Prefactor  = 14.6932
  Prefactor  = 7.0354
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.605694
  Prefactor  = 1.06953
 **********
 **   18 **HESSE 
 **********

 FCN=   7221.806     FROM HESSE     STATUS=OK           415 CALLS     3828 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .29035        .12649        .77402E-06   -1.5600    
   3  norm          17.673        11.726        .38104E-05   -1.4867    
   4  Prefactor     86.217        40.293        .86539E-05   -1.3848    
   5  Prefactor     4.7700        6.9762        .36844E-04   -1.5271    
   6  Prefactor     .10000E-03    4.0970        .33548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0567        6.9697        .53276E-05   -1.5106    
   9  norm          .44337        .59032        .35378E-04   -1.5575    
  10  Prefactor     1.9852        6.1960        .11764E-04   -1.5426    
  11  Prefactor     8.8312        16.395        .53951E-05   -1.5114    
  12  Prefactor     .10000E-03    34.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3599        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8675        7.2005        .82091E-05   -1.5315    
  15  Prefactor     .10000E-03    117.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.693        12.448        .41802E-05   -1.4941    
  17  Prefactor     7.0354        16.388        .60494E-05   -1.5177    
  18  norm          .10000E-03    23.810        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    26.602        .10255       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1764        .66149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9255        .23027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .60569        .21631        .14045E-04   -1.0774    
  25  Prefactor     1.0695        .13534        .35438E-04   -.90447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28294e-10
Minuit parameter uncertainties:
  1  3.25778e-06
  2  0.126486
  3  11.728
  4  40.3055
  5  6.97743
  6  6.17832e-06
  7  1.26478e-05
  8  6.97035
  9  0.59033
  10  6.19803
  11  16.4035
  12  1.14227e-05
  13  9.21638e-05
  14  7.20212
  15  0.000197631
  16  12.4499
  17  16.3987
  18  8.95288e-06
  19  8.005e-05
  20  2.16532e-06
  21  4.14807e-06
  22  6.6039e-06
  23  7.47429e-07
  24  0.216614
  25  0.135383
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.985e+00  6.198e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.070e+00  1.354e-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:  6.057e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/844164/likelihoodResults_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.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) = 7221.78033625
delta logL = 0.0257038598929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7221.76984564
delta logL = 0.0361944642882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0748       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8556       1.0000          .0000       10.000    
     3 'Normalizat'    .60888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0678       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=   7221.770     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      228 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0693        148.54        .57829E-02    .39553E-03
   2  Index         1.8560        2.1544        .44425        .50092E-05
   3  Normalizat    .60891        .26844E-01    .79094E-01    .20196E-04
   4  Prefactor     1.0677        .17018E-01    .38966E-01   -.48704E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06929
  Index      = 1.85598
  Normalizat = 0.608906
  Prefactor  = 1.06774
 **********
 **   18 **HESSE 
 **********

 FCN=   7221.770     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0693        7.8697        .23132E-03   -1.5358    
   2  Index         1.8560        1.2099        .87886E-02   -.68001    
   3  Normalizat    .60891        .20098        .35024E-03   -1.0761    
   4  Prefactor     1.0677        .13311        .17731E-03   -.90504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04504e-11
Minuit parameter uncertainties:
  1  7.87235
  2  1.23035
  3  0.201222
  4  0.133154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844164': 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) = 7221.76984535
delta logL = 0.0361947533647

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.069e+00  7.872e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.856e+00  1.230e+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:  1.068e+00  1.332e-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:  6.089e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 351.190 8.028

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/844164/cmap_HighResolution_647308801_647568001_4FGL_J2324.7+0801_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-29 16:41:09.745553', job_id='844164', GAL2='1.07', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632958869.75', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.62e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1574' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:41:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 844164: <4FGL_J2324.7+0801_daily_bin1574> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1574 351.19 8.0282 647308801 647568001 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 :                                   755.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

