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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1041
RA = 351.19, Dec = 8.0282
tmin = 509155201, tmax = 509414401
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='842333', job_status='RUN', time_executed='2021-09-29 16:23:24.043136', time_epoch_executed='1632957804.04' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842333/ft1_4FGL_J2324.7+0801_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842333/ft2_4FGL_J2324.7+0801_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842333/ft1_4FGL_J2324.7+0801_daily_bin1041.fits outfile=/scratch/kocevski/842333/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1041.fits ra=351.19 dec=8.0282 rad=12.0 tmin=509155201.0 tmax=509414401.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.63
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842333/ft1_filtered_4FGL_J2324.7+0801_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/842333/ft2_4FGL_J2324.7+0801_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/842333/ltcube_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.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/842333/ft2_4FGL_J2324.7+0801_daily_bin1041.fits
.....................!
real 11.72
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842333/ft1_filtered_4FGL_J2324.7+0801_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/842333/ft2_4FGL_J2324.7+0801_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/842333/ltcube_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.fits outfile=/scratch/kocevski/842333/expmap_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.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/842333/ltcube_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.fits
.....................!
real 190.40
user 184.99
sys 5.10

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/842333/ft1_filtered_4FGL_J2324.7+0801_daily_bin1041.fits scfile=/scratch/kocevski/842333/ft2_4FGL_J2324.7+0801_daily_bin1041.fits outfile=/scratch/kocevski/842333/cmap_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.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/842333/ft1_filtered_4FGL_J2324.7+0801_daily_bin1041.fits scfile=/scratch/kocevski/842333/ft2_4FGL_J2324.7+0801_daily_bin1041.fits outfile=/scratch/kocevski/842333/cmap_HighResolution_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842333/ft1_filtered_4FGL_J2324.7+0801_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/842333/ft2_4FGL_J2324.7+0801_daily_bin1041.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842333/Model_4FGL_J2324.7+0801_daily_bin1041.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/842333/ft1_filtered_4FGL_J2324.7+0801_daily_bin1041.fits.....................!
real 79.81
user 78.44
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7910       1.0000         .10000E-03   10000.    
     3 'norm      '    17.713       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68677       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8706       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.428       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9021       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73817       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1689       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=   6900.214     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3274 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5745        .26031E-06** at limit **
   2  Prefactor     3.7910        .35882       -.10765E-07   -.27427E-03
   3  norm          17.717        19.074        .39074E-06    .21259E-04
   4  Prefactor     .10000E-03    43.989       -.43693E-05** at limit **
   5  Prefactor     7.4729        6.9606        .17999E-05   -.38543E-03
   6  Prefactor     9.2841        9.7721       -.24548E-07   -.61782E-05
   7  Prefactor     .10000E-03    8.4322        .39819E-06** at limit **
   8  Prefactor     .68921        5.1184        .67582E-06   -.22826E-03
   9  norm          .10000E-03    .67037        .32087E-06** at limit **
  10  Prefactor     6.1066        9.8519        .35678E-05   -.28456E-03
  11  Prefactor     6.8672        20.008       -.48640E-06   -.58881E-04
  12  Prefactor     .10000E-03    37.766        .38782E-05** at limit **
  13  norm          12.491        8.5436       -.48355E-06   -.12558E-04
  14  Prefactor     .10000E-03    5.2319       -.19225E-06** at limit **
  15  Prefactor     46.569        442.66        .26413E-04    .37586E-04
  16  Prefactor     23.202        15.771       -.77966E-06   -.11881E-03
  17  Prefactor     .10000E-03    7.9738       -.58371E-06** at limit **
  18  norm          .10000E-03    15.614       -.17286E-05** at limit **
  19  norm          .10000E-03    19.127        .11577E-05** at limit **
  20  Prefactor     .10000E-03    3.8957        .70903E-06** at limit **
  21  Prefactor     7.8998        42.186       -.55283E-07   -.25416E-04
  22  Prefactor     .10000E-03    11.576        .61732E-06** at limit **
  23  Prefactor     .10000E-03    3.3377        .18854E-07** at limit **
  24  Normalizat    .73823        .23808       -.49618E-06   -.68323E-04
  25  Prefactor     1.1688        .15230       -.64388E-06   -.44990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.79104
  norm       = 17.7169
  Prefactor  = 0.000100004
  Prefactor  = 7.47289
  Prefactor  = 9.28409
  Prefactor  = 0.0001
  Prefactor  = 0.689205
  norm       = 0.0001
  Prefactor  = 6.10662
  Prefactor  = 6.86724
  Prefactor  = 0.000100004
  norm       = 12.491
  Prefactor  = 0.0001
  Prefactor  = 46.5691
  Prefactor  = 23.2016
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.89981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.738232
  Prefactor  = 1.16882
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.214     FROM HESSE     STATUS=OK           425 CALLS     3699 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7910        .35905        .14713E-04   -1.5319    
   3  norm          17.717        19.090        .95165E-04   -1.4866    
   4  Prefactor     .10000E-03    45.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4729        7.0563        .73355E-03   -1.5161    
   6  Prefactor     9.2841        9.7692        .13153E-03   -1.5098    
   7  Prefactor     .10000E-03    8.4529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .68921        11.200        .34460E-02   -1.5542    
   9  norm          .10000E-03    .68981        .13207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1066        10.064        .81230E-03   -1.5214    
  11  Prefactor     6.8672        19.718        .15306E-03   -1.5184    
  12  Prefactor     .10000E-03    38.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.491        8.5410        .11334E-03   -1.5001    
  14  Prefactor     .10000E-03    5.3189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     46.569        470.22        .29422E-03   -1.4342    
  16  Prefactor     23.202        15.931        .83155E-04   -1.4744    
  17  Prefactor     .10000E-03    7.9945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    16.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9174        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8998        42.251        .14264E-03   -1.5146    
  22  Prefactor     .10000E-03    11.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3455        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73823        .26906        .39416E-03   -1.0240    
  25  Prefactor     1.1688        .17327        .20975E-03   -.87296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98144e-08
Minuit parameter uncertainties:
  1  1.99196e-05
  2  0.359049
  3  19.0966
  4  0.000839284
  5  7.05709
  6  9.77085
  7  3.8113e-05
  8  5.55743
  9  6.94254e-06
  10  10.0665
  11  19.7371
  12  0.000770187
  13  8.54179
  14  6.26753e-06
  15  299.05
  16  15.9342
  17  5.09617e-05
  18  0.00016809
  19  9.83305e-05
  20  3.66753e-05
  21  36.5789
  22  7.60891e-05
  23  2.52512e-06
  24  0.269541
  25  0.173355
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.107e+00  1.007e+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:  1.169e+00  1.734e-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.382e-01  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
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/842333/likelihoodResults_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.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) = 6900.21345048
delta logL = 0.000100491218291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6900.21338659
delta logL = 0.000164383472111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2426       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2090       1.0000          .0000       10.000    
     3 'Normalizat'    .73873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1687       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6900.213     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      270 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2482        13.913        .80333E-03    .97182E-04
   2  Index         2.2072        1.2323        .90235E-02    .17587E-03
   3  Normalizat    .73881        .26106        .39402E-03   -.34624E-06
   4  Prefactor     1.1686        .17186        .20977E-03    .10839E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.24824
  Index      = 2.20716
  Normalizat = 0.738813
  Prefactor  = 1.16856
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.213     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2482        12.769        .16067E-03   -1.5208    
   2  Index         2.2072        1.1336        .18047E-02   -.59266    
   3  Normalizat    .73881        .26082        .15761E-04   -1.0238    
   4  Prefactor     1.1686        .17176        .83909E-05   -.87304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4857e-12
Minuit parameter uncertainties:
  1  12.7743
  2  1.14818
  3  0.261256
  4  0.17184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842333': 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) = 6900.21338373
delta logL = 0.000167240330484

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.248e+00  1.277e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.207e+00  1.148e+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.169e+00  1.718e-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.388e-01  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/842333/cmap_HighResolution_509155201_509414401_4FGL_J2324.7+0801_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-29 16:36:24.959082', job_id='842333', GAL2='1.17', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632958584.96', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.67e-04', ts2='0.51', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1041' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:36:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 842333: <4FGL_J2324.7+0801_daily_bin1041> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1041 351.19 8.0282 509155201 509414401 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 :                                   775.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

