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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin464
RA = 351.19, Dec = 8.0282
tmin = 359596801, tmax = 359856001
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='839300', job_status='RUN', time_executed='2021-09-29 16:12:32.969045', time_epoch_executed='1632957152.97' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839300/ft1_4FGL_J2324.7+0801_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839300/ft2_4FGL_J2324.7+0801_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839300/ft1_4FGL_J2324.7+0801_daily_bin464.fits outfile=/scratch/kocevski/839300/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin464.fits ra=351.19 dec=8.0282 rad=12.0 tmin=359596801.0 tmax=359856001.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.80
user 3.56
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839300/ft1_filtered_4FGL_J2324.7+0801_daily_bin464.fits" evtable="EVENTS" scfile=/scratch/kocevski/839300/ft2_4FGL_J2324.7+0801_daily_bin464.fits sctable="SC_DATA" outfile=/scratch/kocevski/839300/ltcube_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.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/839300/ft2_4FGL_J2324.7+0801_daily_bin464.fits
.....................!
real 11.89
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839300/ft1_filtered_4FGL_J2324.7+0801_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/839300/ft2_4FGL_J2324.7+0801_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/839300/ltcube_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.fits outfile=/scratch/kocevski/839300/expmap_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.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/839300/ltcube_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.fits
.....................!
real 189.64
user 184.95
sys 4.26

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/839300/ft1_filtered_4FGL_J2324.7+0801_daily_bin464.fits scfile=/scratch/kocevski/839300/ft2_4FGL_J2324.7+0801_daily_bin464.fits outfile=/scratch/kocevski/839300/cmap_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839300/ft1_filtered_4FGL_J2324.7+0801_daily_bin464.fits scfile=/scratch/kocevski/839300/ft2_4FGL_J2324.7+0801_daily_bin464.fits outfile=/scratch/kocevski/839300/cmap_HighResolution_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.821       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3289       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.024       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    32.292       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18574E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87444       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=   8296.100     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2582 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.258        .76359E-06** at limit **
   2  Prefactor     .10000E-03    .41612E-01   -.28099E-07** at limit **
   3  norm          11.951        11.464        .73600E-08   -.93441E-05
   4  Prefactor     .10000E-03    18.374       -.11385E-05** at limit **
   5  Prefactor     8.4506        5.7852        .12204E-05   -.34519E-03
   6  Prefactor     .10000E-03    6.0512       -.39891E-07** at limit **
   7  Prefactor     6.4295        11.923        .95094E-07   -.24774E-04
   8  Prefactor     22.819        8.9349       -.58739E-07   -.18878E-04
   9  norm          2.3289        1.0427        .49744E-07   -.10124E-03
  10  Prefactor     .32647        6.8366        .17721E-05   -.68051E-03
  11  Prefactor     11.023        12.507       -.14092E-07   -.49134E-05
  12  Prefactor     .10000E-03    28.590       -.56484E-06** at limit **
  13  norm          17.577        9.7132       -.28085E-06   -.82393E-03
  14  Prefactor     .10000E-03    3.9756       -.52772E-07** at limit **
  15  Prefactor     .10000E-03    65.222       -.60092E-06** at limit **
  16  Prefactor     .10000E-03    5.3403       -.15352E-06** at limit **
  17  Prefactor     .10000E-03    9.1526        .14146E-08** at limit **
  18  norm          .10000E-03    5.5861       -.65475E-08** at limit **
  19  norm          32.309        19.163        .21265E-06    .12034E-03
  20  Prefactor     .10000E-03    1.8817       -.87495E-07** at limit **
  21  Prefactor     18.989        30.203       -.35308E-05   -.37637E-03
  22  Prefactor     .10000E-03    5.3820        .15694E-06** at limit **
  23  Prefactor     .10000E-03    3.8354        .42600E-06** at limit **
  24  Normalizat    1.0460        .17712        .50566E-06   -.26378E-03
  25  Prefactor     .87434        .10783       -.37634E-06   -.21333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9513
  Prefactor  = 0.000100001
  Prefactor  = 8.45062
  Prefactor  = 0.0001
  Prefactor  = 6.42947
  Prefactor  = 22.8187
  norm       = 2.32889
  Prefactor  = 0.326469
  Prefactor  = 11.0231
  Prefactor  = 0.0001
  norm       = 17.5767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.3089
  Prefactor  = 0.000100001
  Prefactor  = 18.9886
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.04598
  Prefactor  = 0.874342
 **********
 **   18 **HESSE 
 **********

 FCN=   8296.100     FROM HESSE     STATUS=OK           427 CALLS     3009 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .80641E-01    .35997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.951        11.465        .11587E-03   -1.5016    
   4  Prefactor     .10000E-03    18.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4506        6.2348        .68945E-03   -1.5126    
   6  Prefactor     .10000E-03    6.0880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4295        11.918        .15828E-03   -1.5201    
   8  Prefactor     22.819        8.9311        .83849E-04   -1.4752    
   9  norm          2.3289        1.0434        .13437E-03   -1.5403    
  10  Prefactor     .32647        58.341        .37337E-02   -1.5594    
  11  Prefactor     11.023        12.499        .12066E-03   -1.5044    
  12  Prefactor     .10000E-03    28.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.577        9.5691        .95580E-04   -1.4869    
  14  Prefactor     .10000E-03    4.0058        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    65.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.6021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          32.309        18.400        .70512E-04   -1.4571    
  20  Prefactor     .10000E-03    12.111        .22999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.989        32.754        .91883E-04   -1.4836    
  22  Prefactor     .10000E-03    5.3980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.459        .34274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0460        .20425        .29267E-03   -.91506    
  25  Prefactor     .87434        .12518        .20030E-03   -.97044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43021e-09
Minuit parameter uncertainties:
  1  0.000160175
  2  5.89682e-07
  3  11.4675
  4  0.000282613
  5  6.23523
  6  1.0668e-05
  7  11.9219
  8  8.93166
  9  1.04339
  10  8.73582
  11  12.5018
  12  0.000140396
  13  9.56994
  14  2.44965e-06
  15  0.000268864
  16  1.81255e-05
  17  2.64964e-06
  18  3.43621e-06
  19  18.4028
  20  0.000160979
  21  32.785
  22  2.57455e-05
  23  0.000542003
  24  0.204399
  25  0.125216
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.265e-01  8.736e+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:  8.743e-01  1.252e-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.046e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839300/likelihoodResults_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.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) = 8293.63713696
delta logL = 2.46236594979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8293.53044137
delta logL = 2.56906153674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75952E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7023       1.0000          .0000       10.000    
     3 'Normalizat'    .90695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92917       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=   8293.530     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      309 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74855E-03    .55738E-02    .33814E-03** at limit **
   2  Index         6.7079        1.6561        .83060E-01    .25540E-03
   3  Normalizat    .90694        .48735E-01    .70270E-01    .34247E-04
   4  Prefactor     .92920        .30983E-01    .45376E-01    .25825E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000748549
  Index      = 6.70794
  Normalizat = 0.906942
  Prefactor  = 0.929196
 **********
 **   18 **HESSE 
 **********

 FCN=   8293.530     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      344 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74855E-03    .11827E-01    .13808E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7079        2.6649        .33302E-02    .34861    
   3  Normalizat    .90694        .16198        .31091E-03   -.96217    
   4  Prefactor     .92920        .10104        .19476E-03   -.95128    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.52798e-08
Minuit parameter uncertainties:
  1  0.00553916
  2  2.83344
  3  0.162065
  4  0.101065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839300': 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) = 8293.53043905
delta logL = 2.56906385797

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.485e-04  5.539e-03  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  6.708e+00  2.833e+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.292e-01  1.011e-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.069e-01  1.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.55
Ra Dec: 351.190 8.028
Photon Index (Free Index): 6.71 +/- 2.83
Photon Flux (Free Index): 1.22e-07 +/- 6.32e-08
Energy Flux (Free Index): 1.48e-05 +/- 8.20e-06

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/839300/cmap_HighResolution_359596801_359856001_4FGL_J2324.7+0801_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='2.57e+00', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-29 16:25:28.882931', photon_index_error2='2.83', photon_index2='6.71', ts='0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.23e-08', energy_flux_error2='8.20e-06', EG='1.05', time_epoch_completed='1632957928.88', return_code='0', job_id='839300', GAL2='0.93', EG2='0.91', return_code2='102', photon_flux_error2='6.32e-08', ts2='5.55', photon_index='2.23' WHERE bin_id='464' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 839300: <4FGL_J2324.7+0801_daily_bin464> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin464> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:20 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:10:21 2021
Terminated at Wed Sep 29 16:25:29 2021
Results reported at Wed Sep 29 16:25:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin464 351.19 8.0282 359596801 359856001 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 :                                   774.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

