/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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin265
RA = 351.19, Dec = 8.0282
tmin = 308016001, tmax = 308275201
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='838005', job_status='RUN', time_executed='2021-09-29 16:07:58.704959', time_epoch_executed='1632956878.7' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838005/ft1_4FGL_J2324.7+0801_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838005/ft2_4FGL_J2324.7+0801_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838005/ft1_4FGL_J2324.7+0801_daily_bin265.fits outfile=/scratch/kocevski/838005/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin265.fits ra=351.19 dec=8.0282 rad=12.0 tmin=308016001.0 tmax=308275201.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.38
user 3.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838005/ft1_filtered_4FGL_J2324.7+0801_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/838005/ft2_4FGL_J2324.7+0801_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/838005/ltcube_308016001_308275201_4FGL_J2324.7+0801_daily_bin265.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/838005/ft2_4FGL_J2324.7+0801_daily_bin265.fits
.....................!
real 11.79
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838005/ft1_filtered_4FGL_J2324.7+0801_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/838005/ft2_4FGL_J2324.7+0801_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/838005/ltcube_308016001_308275201_4FGL_J2324.7+0801_daily_bin265.fits outfile=/scratch/kocevski/838005/expmap_308016001_308275201_4FGL_J2324.7+0801_daily_bin265.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/838005/ltcube_308016001_308275201_4FGL_J2324.7+0801_daily_bin265.fits
.....................!
real 191.22
user 185.98
sys 4.93

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/838005/ft1_filtered_4FGL_J2324.7+0801_daily_bin265.fits scfile=/scratch/kocevski/838005/ft2_4FGL_J2324.7+0801_daily_bin265.fits outfile=/scratch/kocevski/838005/cmap_308016001_308275201_4FGL_J2324.7+0801_daily_bin265.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/838005/ft1_filtered_4FGL_J2324.7+0801_daily_bin265.fits scfile=/scratch/kocevski/838005/ft2_4FGL_J2324.7+0801_daily_bin265.fits outfile=/scratch/kocevski/838005/cmap_HighResolution_308016001_308275201_4FGL_J2324.7+0801_daily_bin265.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838005/ft1_filtered_4FGL_J2324.7+0801_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/838005/ft2_4FGL_J2324.7+0801_daily_bin265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838005/Model_4FGL_J2324.7+0801_daily_bin265.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/838005/ft1_filtered_4FGL_J2324.7+0801_daily_bin265.fits.....................!
real 85.52
user 84.16
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.4285       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.032       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1219       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.619       1.0000         .10000E-03   10000.    
    13 'norm      '    .32189E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.436       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7673       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.001       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.440       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1987       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68025       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=   7524.556     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2903 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8146        .32948E-07** at limit **
   2  Prefactor     5.4286        .41208       -.15071E-07    .34596E-03
   3  norm          8.9984        10.564        .13104E-06   -.79357E-06
   4  Prefactor     17.004        33.477        .21542E-05    .26804E-04
   5  Prefactor     .10000E-03    8.7014       -.46650E-06** at limit **
   6  Prefactor     1.1254        24.589        .18272E-05   -.12693E-03
   7  Prefactor     .10000E-03    68.998        .66388E-05** at limit **
   8  Prefactor     .10000E-03    3.3427       -.12444E-06** at limit **
   9  norm          .10000E-03    .26333       -.57441E-08** at limit **
  10  Prefactor     16.052        10.310        .29144E-06    .11633E-03
  11  Prefactor     .10000E-03    11.777       -.50175E-06** at limit **
  12  Prefactor     24.617        27.947        .22838E-06    .32872E-05
  13  norm          .10001E-03    5.5583       -.44471E-06** at limit **
  14  Prefactor     2.1747        7.1753        .77431E-06   -.84518E-04
  15  Prefactor     .10000E-03    55.042       -.18332E-05** at limit **
  16  Prefactor     .10000E-03    3.7962       -.84070E-07** at limit **
  17  Prefactor     .10000E-03    17.426        .16233E-06** at limit **
  18  norm          16.438        16.859       -.13953E-06    .26584E-04
  19  norm          .10000E-03    10.300        .55445E-06** at limit **
  20  Prefactor     6.7678        4.6221        .15456E-06    .35325E-04
  21  Prefactor     20.012        37.145       -.56154E-06    .12017E-05
  22  Prefactor     27.454        26.869       -.29780E-06    .12534E-04
  23  Prefactor     .10001E-03    7.0623        .33776E-06** at limit **
  24  Normalizat    1.1983        .21880        .10086E-05    .98352E-04
  25  Prefactor     .68041        .12455       -.17451E-07    .17569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.42859
  norm       = 8.99837
  Prefactor  = 17.0037
  Prefactor  = 0.0001
  Prefactor  = 1.12544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.052
  Prefactor  = 0.0001
  Prefactor  = 24.6172
  norm       = 0.000100005
  Prefactor  = 2.17467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4378
  norm       = 0.0001
  Prefactor  = 6.76776
  Prefactor  = 20.0124
  Prefactor  = 27.4541
  Prefactor  = 0.000100007
  Normalizat = 1.19828
  Prefactor  = 0.680412
 **********
 **   18 **HESSE 
 **********

 FCN=   7524.556     FROM HESSE     STATUS=OK           431 CALLS     3334 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4286        .41219        .14772E-04   -1.5242    
   3  norm          8.9984        10.563        .13360E-03   -1.5108    
   4  Prefactor     17.004        33.647        .97047E-04   -1.4883    
   5  Prefactor     .10000E-03    8.8744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1254        29.320        .22153E-02   -1.5496    
   7  Prefactor     .10000E-03    67.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3875        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .26786        .43459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.052        10.207        .10002E-03   -1.4906    
  11  Prefactor     .10000E-03    11.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.617        27.946        .80733E-04   -1.4715    
  13  norm          .10001E-03    36.937        .37678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1747        7.2455        .14023E-02   -1.5413    
  15  Prefactor     .10000E-03    55.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8036        .16505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.438        16.855        .98792E-04   -1.4897    
  19  norm          .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.7678        4.6266        .14858E-03   -1.5188    
  21  Prefactor     20.012        37.269        .89559E-04   -1.4813    
  22  Prefactor     27.454        26.976        .76478E-04   -1.4660    
  23  Prefactor     .10001E-03    14.788        .32113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1983        .25966        .31272E-03   -.86656    
  25  Prefactor     .68041        .14793        .24330E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50854e-10
Minuit parameter uncertainties:
  1  1.5511e-07
  2  0.412194
  3  10.5657
  4  33.6844
  5  1.74825e-05
  6  11.4945
  7  0.000182401
  8  4.16365e-06
  9  5.51058e-07
  10  10.2078
  11  2.03985e-05
  12  27.9611
  13  0.000876073
  14  7.24845
  15  0.000113996
  16  5.61995e-06
  17  1.21061e-05
  18  16.8599
  19  4.64126e-06
  20  4.62687
  21  37.3126
  22  26.9882
  23  0.000661878
  24  0.259943
  25  0.148013
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.605e+01  1.021e+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:  6.804e-01  1.480e-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.198e+00  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.82
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.57e-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) = 7523.90700699
delta logL = 0.649217071559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7523.84701496
delta logL = 0.709209095723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4643       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1786       1.0000          .0000       10.000    
     3 'Normalizat'    1.2397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67607       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=   7523.847     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      256 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4531        17.840        .13779E-03    .19802E-04
   2  Index         1.1767        .98234        .10840E-01   -.15696E-04
   3  Normalizat    1.2400        .24237        .30839E-03    .32146E-04
   4  Prefactor     .67587        .14748        .24446E-03   -.95567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.4531
  Index      = 1.17668
  Normalizat = 1.24003
  Prefactor  = 0.675868
 **********
 **   18 **HESSE 
 **********

 FCN=   7523.847     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4531        20.911        .55115E-05   -1.5126    
   2  Index         1.1767        1.1450        .43361E-03   -.87052    
   3  Normalizat    1.2400        .24264        .12336E-04   -.85375    
   4  Prefactor     .67587        .14780        .97785E-05   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09062e-11
Minuit parameter uncertainties:
  1  20.9296
  2  1.17056
  3  0.242856
  4  0.147887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838005': 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) = 7523.84700943
delta logL = 0.709214629132

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.453e+00  2.093e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.177e+00  1.171e+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:  6.759e-01  1.479e-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.240e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.16
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.18 +/- 1.17
Photon Flux (Free Index): 8.41e-09 +/- 2.05e-08
Energy Flux (Free Index): 7.54e-05 +/- 1.15e-04

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/838005/cmap_HighResolution_308016001_308275201_4FGL_J2324.7+0801_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='7.54e-05', photon_flux_error='3.67e-08', dlogl='7.09e-01', energy_flux='2.47e-05', photon_flux2='8.41e-09', job_status='DONE', time_completed='2021-09-29 16:19:26.864872', photon_index_error2='1.17', photon_index2='1.18', ts='13.82', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='1.20', time_epoch_completed='1632957566.86', return_code='0', job_id='838005', GAL2='0.68', EG2='1.24', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.05e-08', ts2='15.16', photon_index='2.23' WHERE bin_id='265' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:19:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 838005: <4FGL_J2324.7+0801_daily_bin265> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin265> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:46 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:47 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:05:47 2021
Terminated at Wed Sep 29 16:19:27 2021
Results reported at Wed Sep 29 16:19:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin265 351.19 8.0282 308016001 308275201 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

