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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1553
RA = 351.19, Dec = 8.0282
tmin = 641865601, tmax = 642124801
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='844143', job_status='RUN', time_executed='2021-09-29 16:30:16.437830', time_epoch_executed='1632958216.44' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844143/ft1_4FGL_J2324.7+0801_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844143/ft1_4FGL_J2324.7+0801_daily_bin1553.fits outfile=/scratch/kocevski/844143/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1553.fits ra=351.19 dec=8.0282 rad=12.0 tmin=641865601.0 tmax=642124801.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.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/844143/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/844143/ft1_filtered_4FGL_J2324.7+0801_daily_bin1553.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.42
user 0.29
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844143/ft1_filtered_4FGL_J2324.7+0801_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/844143/ltcube_641865601_642124801_4FGL_J2324.7+0801_daily_bin1553.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/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.fits
.....................!
real 9.64
user 9.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844143/ft1_filtered_4FGL_J2324.7+0801_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/844143/ltcube_641865601_642124801_4FGL_J2324.7+0801_daily_bin1553.fits outfile=/scratch/kocevski/844143/expmap_641865601_642124801_4FGL_J2324.7+0801_daily_bin1553.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/844143/ltcube_641865601_642124801_4FGL_J2324.7+0801_daily_bin1553.fits
.....................!
real 154.47
user 150.22
sys 3.97

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/844143/ft1_filtered_4FGL_J2324.7+0801_daily_bin1553.fits scfile=/scratch/kocevski/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.fits outfile=/scratch/kocevski/844143/cmap_641865601_642124801_4FGL_J2324.7+0801_daily_bin1553.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.46
user 0.29
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844143/ft1_filtered_4FGL_J2324.7+0801_daily_bin1553.fits scfile=/scratch/kocevski/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.fits outfile=/scratch/kocevski/844143/cmap_HighResolution_641865601_642124801_4FGL_J2324.7+0801_daily_bin1553.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.46
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844143/ft1_filtered_4FGL_J2324.7+0801_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/844143/ft2_4FGL_J2324.7+0801_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844143/Model_4FGL_J2324.7+0801_daily_bin1553.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/844143/ft1_filtered_4FGL_J2324.7+0801_daily_bin1553.fits.....................!
real 52.46
user 51.34
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51128       1.0000         .10000E-03   10000.    
     3 'norm      '    45.749       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.856       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40923E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .49976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5281       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6822       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.947       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27499E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.004       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97454       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94973       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=   6040.237     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2945 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.799       -.94829E-07** at limit **
   2  Prefactor     .51126        .16476        .19873E-08   -.71988E-03
   3  norm          45.751        20.329        .15558E-06    .10584E-04
   4  Prefactor     .10000E-03    17.604       -.42378E-06** at limit **
   5  Prefactor     .10000E-03    5.5437        .11223E-06** at limit **
   6  Prefactor     .10000E-03    22.437        .54185E-05** at limit **
   7  Prefactor     24.859        24.963        .13379E-05   -.44125E-04
   8  Prefactor     .10001E-03    6.0859        .72192E-06** at limit **
   9  norm          .50006        .84600       -.56914E-07   -.36239E-03
  10  Prefactor     14.168        9.4438        .13311E-06    .32385E-05
  11  Prefactor     5.5242        13.145       -.23227E-06   -.10052E-03
  12  Prefactor     .10000E-03    42.924        .68903E-05** at limit **
  13  norm          .10000E-03    3.8749        .18142E-07** at limit **
  14  Prefactor     8.6809        8.0714        .54439E-08   -.88348E-04
  15  Prefactor     .10000E-03    68.955        .12922E-05** at limit **
  16  Prefactor     .10000E-03    36.150       -.72448E-05** at limit **
  17  Prefactor     29.940        23.849       -.13968E-05    .11472E-03
  18  norm          .10000E-03    24.710       -.49019E-05** at limit **
  19  norm          5.9501        22.135        .12730E-04    .93453E-04
  20  Prefactor     .10001E-03    3.2924       -.15061E-05** at limit **
  21  Prefactor     .10000E-03    17.602       -.59000E-06** at limit **
  22  Prefactor     17.007        21.535        .11407E-05   -.31897E-04
  23  Prefactor     .10000E-03    5.8835       -.26478E-08** at limit **
  24  Normalizat    .97467        .21480       -.74403E-06    .18767E-03
  25  Prefactor     .94965        .12980       -.21081E-06    .14171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.511265
  norm       = 45.7511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 24.8593
  Prefactor  = 0.000100009
  norm       = 0.500062
  Prefactor  = 14.1679
  Prefactor  = 5.52416
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 8.68088
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 29.9399
  norm       = 0.000100002
  norm       = 5.95007
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 17.0067
  Prefactor  = 0.0001
  Normalizat = 0.974669
  Prefactor  = 0.949648
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.237     FROM HESSE     STATUS=OK           427 CALLS     3372 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .51126        .16419        .17213E-04   -1.5565    
   3  norm          45.751        20.327        .59277E-04   -1.4354    
   4  Prefactor     .10000E-03    17.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.6484        .17860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.988        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.859        24.943        .80348E-04   -1.4710    
   8  Prefactor     .10001E-03    25.546        .36324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .50006        .69442        .89416E-03   -1.5567    
  10  Prefactor     14.168        9.4382        .10641E-03   -1.4955    
  11  Prefactor     5.5242        12.982        .17088E-03   -1.5238    
  12  Prefactor     .10000E-03    42.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8879        .14927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6809        8.0726        .13604E-03   -1.5119    
  15  Prefactor     .10000E-03    68.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.940        23.791        .73214E-04   -1.4613    
  18  norm          .10000E-03    24.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9501        22.219        .16503E-03   -1.5220    
  20  Prefactor     .10001E-03    16.076        .25610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.007        21.533        .97128E-04   -1.4883    
  23  Prefactor     .10000E-03    5.9158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97467        .24756        .30757E-03   -.93884    
  25  Prefactor     .94965        .15124        .19769E-03   -.94427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40634e-09
Minuit parameter uncertainties:
  1  2.26597e-05
  2  0.164191
  3  20.3304
  4  2.88511e-05
  5  1.53153e-06
  6  0.000451924
  7  24.9534
  8  0.000938338
  9  0.694427
  10  9.43917
  11  12.9883
  12  0.000663312
  13  7.03048e-06
  14  8.07365
  15  0.000167467
  16  0.000749206
  17  23.7984
  18  0.000428192
  19  22.2498
  20  0.000683556
  21  2.82609e-05
  22  21.5426
  23  5.47822e-06
  24  0.247856
  25  0.151305
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.417e+01  9.439e+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:  9.496e-01  1.513e-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.747e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.34
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.45e-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) = 6039.9959575
delta logL = 0.241513274439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6039.99591014
delta logL = 0.241560631193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.842       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8626       1.0000          .0000       10.000    
     3 'Normalizat'    .99000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94566       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=   6039.996     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      270 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.823        435.72        .23705E-02   -.56208E-05
   2  Index         1.8617        5.3264        .16002        .41464E-04
   3  Normalizat    .98979        .23972        .69078E-01    .14694E-04
   4  Prefactor     .94586        .91400E-01    .45584E-01    .75364E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8233
  Index      = 1.86165
  Normalizat = 0.989791
  Prefactor  = 0.945858
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.996     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.823        12.649        .94820E-04   -1.4863    
   2  Index         1.8617        .52207        .83380E-02   -.67856    
   3  Normalizat    .98979        .23675        .30558E-03   -.93373    
   4  Prefactor     .94586        .15096        .19810E-03   -.94557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32754e-12
Minuit parameter uncertainties:
  1  12.651
  2  0.523646
  3  0.237003
  4  0.151026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844143': 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) = 6039.99590594
delta logL = 0.241564826843

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.782e+01  1.265e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.862e+00  5.236e-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.459e-01  1.510e-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.898e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.80
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.86 +/- 0.52
Photon Flux (Free Index): 3.35e-08 +/- 3.29e-08
Energy Flux (Free Index): 3.35e-05 +/- 3.55e-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/844143/cmap_HighResolution_641865601_642124801_4FGL_J2324.7+0801_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='3.35e-05', photon_flux_error='3.40e-08', dlogl='2.42e-01', energy_flux='2.18e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-09-29 16:38:34.743586', photon_index_error2='0.52', photon_index2='1.86', ts='8.34', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.55e-05', EG='0.97', time_epoch_completed='1632958714.74', return_code='0', job_id='844143', GAL2='0.95', EG2='0.99', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='3.29e-08', ts2='8.80', photon_index='2.23' WHERE bin_id='1553' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:38:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 844143: <4FGL_J2324.7+0801_daily_bin1553> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1553> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:26:12 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:26:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:26:14 2021
Terminated at Wed Sep 29 16:38:35 2021
Results reported at Wed Sep 29 16:38:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1553 351.19 8.0282 641865601 642124801 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 :                                   492.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            743 sec.

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

