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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin686
RA = 351.19, Dec = 8.0282
tmin = 417139201, tmax = 417398401
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='840736', job_status='RUN', time_executed='2021-09-29 16:19:19.467549', time_epoch_executed='1632957559.47' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840736/ft1_4FGL_J2324.7+0801_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840736/ft2_4FGL_J2324.7+0801_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840736/ft1_4FGL_J2324.7+0801_daily_bin686.fits outfile=/scratch/kocevski/840736/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin686.fits ra=351.19 dec=8.0282 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.47
user 5.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840736/ft2_4FGL_J2324.7+0801_daily_bin686.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/840736/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/840736/ft1_filtered_4FGL_J2324.7+0801_daily_bin686.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840736/ft1_filtered_4FGL_J2324.7+0801_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/840736/ft2_4FGL_J2324.7+0801_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/840736/ltcube_417139201_417398401_4FGL_J2324.7+0801_daily_bin686.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/840736/ft2_4FGL_J2324.7+0801_daily_bin686.fits
.....................!
real 12.40
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840736/ft1_filtered_4FGL_J2324.7+0801_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/840736/ft2_4FGL_J2324.7+0801_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/840736/ltcube_417139201_417398401_4FGL_J2324.7+0801_daily_bin686.fits outfile=/scratch/kocevski/840736/expmap_417139201_417398401_4FGL_J2324.7+0801_daily_bin686.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/840736/ltcube_417139201_417398401_4FGL_J2324.7+0801_daily_bin686.fits
.....................!
real 190.14
user 184.96
sys 4.77

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/840736/ft1_filtered_4FGL_J2324.7+0801_daily_bin686.fits scfile=/scratch/kocevski/840736/ft2_4FGL_J2324.7+0801_daily_bin686.fits outfile=/scratch/kocevski/840736/cmap_417139201_417398401_4FGL_J2324.7+0801_daily_bin686.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840736/ft1_filtered_4FGL_J2324.7+0801_daily_bin686.fits scfile=/scratch/kocevski/840736/ft2_4FGL_J2324.7+0801_daily_bin686.fits outfile=/scratch/kocevski/840736/cmap_HighResolution_417139201_417398401_4FGL_J2324.7+0801_daily_bin686.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840736/ft1_filtered_4FGL_J2324.7+0801_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/840736/ft2_4FGL_J2324.7+0801_daily_bin686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840736/Model_4FGL_J2324.7+0801_daily_bin686.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/840736/ft1_filtered_4FGL_J2324.7+0801_daily_bin686.fits.....................!
real 62.22
user 60.82
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8550       1.0000         .10000E-03   10000.    
     3 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.111       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.698       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28768E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0735       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    731.53       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12612E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    36.658       1.0000         .10000E-03   10000.    
    19 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11434E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10924E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.298       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.839       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94145       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96062       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=   4965.880     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2909 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3898        .24967E-06** at limit **
   2  Prefactor     2.8550        .35358       -.11769E-07   -.18411E-03
   3  norm          .10000E-03    10.842       -.40643E-06** at limit **
   4  Prefactor     .10000E-03    13.873        .29605E-06** at limit **
   5  Prefactor     .10000E-03    3.6111        .38216E-07** at limit **
   6  Prefactor     15.112        15.829        .18909E-07   -.39666E-06
   7  Prefactor     51.683        36.038        .59349E-06    .48832E-04
   8  Prefactor     .10002E-03    7.9887       -.23205E-05** at limit **
   9  norm          .10000E-03    1.4376       -.23238E-05** at limit **
  10  Prefactor     34.934        22.074       -.76812E-07    .83577E-05
  11  Prefactor     1.3136        137.56        .15958E-04    .63618E-04
  12  Prefactor     .10000E-03    29.250        .88101E-06** at limit **
  13  norm          .10000E-03    13.329        .48234E-06** at limit **
  14  Prefactor     29.510        16.778        .18869E-07   -.84213E-05
  15  Prefactor     730.74        525.72        .23716E-04    .80632E-04
  16  Prefactor     .10000E-03    16.830       -.19379E-05** at limit **
  17  Prefactor     .10000E-03    31.436        .57391E-06** at limit **
  18  norm          36.653        26.020        .29062E-06   -.21003E-05
  19  norm          .10000E-03    16.305       -.70049E-06** at limit **
  20  Prefactor     .10000E-03    8.7611       -.21140E-05** at limit **
  21  Prefactor     .10000E-03    35.557       -.12430E-05** at limit **
  22  Prefactor     89.350        60.605       -.23791E-05    .41733E-04
  23  Prefactor     28.833        25.685        .26676E-06   -.22663E-06
  24  Normalizat    .94168        .32660       -.92782E-06    .14778E-03
  25  Prefactor     .96025        .17856       -.51762E-06    .22568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.85499
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1124
  Prefactor  = 51.6832
  Prefactor  = 0.000100016
  norm       = 0.000100003
  Prefactor  = 34.934
  Prefactor  = 1.31357
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.5098
  Prefactor  = 730.739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.6527
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 89.3501
  Prefactor  = 28.8335
  Normalizat = 0.941682
  Prefactor  = 0.960245
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.880     FROM HESSE     STATUS=OK           421 CALLS     3330 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8550        .35390        .14096E-04   -1.5370    
   3  norm          .10000E-03    10.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6163        .13077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.112        15.827        .10304E-03   -1.4930    
   7  Prefactor     51.683        36.085        .55779E-04   -1.4269    
   8  Prefactor     .10002E-03    33.929        .35332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2385        .14224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.934        22.065        .67817E-04   -1.4525    
  11  Prefactor     1.3136        148.67        .23381E-02   -1.5479    
  12  Prefactor     .10000E-03    29.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.510        16.822        .73746E-04   -1.4621    
  15  Prefactor     730.74        545.92        .76808E-04   -1.0233    
  16  Prefactor     .10000E-03    16.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          36.653        26.018        .33097E-03   -1.4496    
  19  norm          .10000E-03    16.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     89.350        60.666        .21260E-03   -1.3815    
  23  Prefactor     28.833        25.787        .74604E-04   -1.4634    
  24  Normalizat    .94168        .37537        .41260E-03   -.95011    
  25  Prefactor     .96025        .20628        .23736E-03   -.94067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28215e-09
Minuit parameter uncertainties:
  1  1.15715e-06
  2  0.3539
  3  6.87971e-06
  4  1.82694e-07
  5  3.28084e-06
  6  15.8313
  7  36.1005
  8  0.00148156
  9  0.000153224
  10  22.0706
  11  28.0194
  12  2.45486e-05
  13  1.68372e-05
  14  16.8246
  15  550.009
  16  0.00017287
  17  5.70073e-05
  18  26.0263
  19  3.70205e-05
  20  0.000178794
  21  7.99012e-05
  22  60.7078
  23  25.7966
  24  0.376427
  25  0.206447
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.493e+01  2.207e+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.602e-01  2.064e-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.417e-01  3.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.33
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 7.94e-08
Energy Flux (Fixed Index): 5.37e-05 +/- 3.39e-05

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) = 4965.7342152
delta logL = 0.145900473431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4965.72615857
delta logL = 0.153957103143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.581       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5512       1.0000          .0000       10.000    
     3 'Normalizat'    .90261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97217       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=   4965.726     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      264 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.557        287.77        .19801E-02    .25309E-04
   2  Index         2.5512        3.0947        .12458        .11084E-03
   3  Normalizat    .90192        .17736        .94864E-01    .22744E-04
   4  Prefactor     .97317        .71730E-01    .45918E-01   -.52795E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5571
  Index      = 2.55116
  Normalizat = 0.901921
  Prefactor  = 0.97317
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.726     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.557        26.126        .79202E-04   -1.4696    
   2  Index         2.5512        .64923        .45068E-02   -.51182    
   3  Normalizat    .90192        .35966        .42028E-03   -.96393    
   4  Prefactor     .97317        .20592        .23584E-03   -.93629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35114e-12
Minuit parameter uncertainties:
  1  26.1379
  2  0.651653
  3  0.360621
  4  0.206087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840736': 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) = 4965.72613615
delta logL = 0.153979529716

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  2.556e+01  2.614e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.551e+00  6.517e-01  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.732e-01  2.061e-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.019e-01  3.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.55 +/- 0.65
Photon Flux (Free Index): 1.76e-07 +/- 1.37e-07
Energy Flux (Free Index): 4.85e-05 +/- 2.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/840736/cmap_HighResolution_417139201_417398401_4FGL_J2324.7+0801_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='4.85e-05', photon_flux_error='7.94e-08', dlogl='1.54e-01', energy_flux='5.37e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-29 16:28:45.034890', photon_index_error2='0.65', photon_index2='2.55', ts='5.33', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.90e-05', EG='0.94', time_epoch_completed='1632958125.03', return_code='0', job_id='840736', GAL2='0.97', EG2='0.90', return_code2='0', energy_flux_error='3.39e-05', photon_flux_error2='1.37e-07', ts2='5.62', photon_index='2.23' WHERE bin_id='686' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:28:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 840736: <4FGL_J2324.7+0801_daily_bin686> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin686> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:30 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:15:31 2021
Terminated at Wed Sep 29 16:28:45 2021
Results reported at Wed Sep 29 16:28:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin686 351.19 8.0282 417139201 417398401 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 :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

