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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin755
RA = 351.19, Dec = 8.0282
tmin = 435024001, tmax = 435283201
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='840836', job_status='RUN', time_executed='2021-09-29 16:17:02.781910', time_epoch_executed='1632957422.78' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840836/ft1_4FGL_J2324.7+0801_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840836/ft2_4FGL_J2324.7+0801_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840836/ft1_4FGL_J2324.7+0801_daily_bin755.fits outfile=/scratch/kocevski/840836/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin755.fits ra=351.19 dec=8.0282 rad=12.0 tmin=435024001.0 tmax=435283201.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.03
user 4.79
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840836/ft1_filtered_4FGL_J2324.7+0801_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/840836/ft2_4FGL_J2324.7+0801_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/840836/ltcube_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.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/840836/ft2_4FGL_J2324.7+0801_daily_bin755.fits
.....................!
real 14.30
user 13.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840836/ft1_filtered_4FGL_J2324.7+0801_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/840836/ft2_4FGL_J2324.7+0801_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/840836/ltcube_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.fits outfile=/scratch/kocevski/840836/expmap_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.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/840836/ltcube_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.fits
.....................!
real 189.73
user 185.14
sys 4.23

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/840836/ft1_filtered_4FGL_J2324.7+0801_daily_bin755.fits scfile=/scratch/kocevski/840836/ft2_4FGL_J2324.7+0801_daily_bin755.fits outfile=/scratch/kocevski/840836/cmap_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840836/ft1_filtered_4FGL_J2324.7+0801_daily_bin755.fits scfile=/scratch/kocevski/840836/ft2_4FGL_J2324.7+0801_daily_bin755.fits outfile=/scratch/kocevski/840836/cmap_HighResolution_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.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.59
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840836/ft1_filtered_4FGL_J2324.7+0801_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/840836/ft2_4FGL_J2324.7+0801_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840836/Model_4FGL_J2324.7+0801_daily_bin755.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/840836/ft1_filtered_4FGL_J2324.7+0801_daily_bin755.fits.....................!
real 48.09
user 46.71
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5799       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.872       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.311       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.473       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0117       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.760       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.152       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.980       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71636       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91430       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=   3451.598     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2923 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.146        35.846        .50983E-06   -.17385E-05
   2  Prefactor     2.5798        .40283       -.14746E-07   -.31736E-03
   3  norm          5.3152        45.906        .22826E-06    .10870E-05
   4  Prefactor     .10000E-03    24.168        .24108E-06** at limit **
   5  Prefactor     11.874        11.449        .13211E-06   -.13239E-04
   6  Prefactor     15.835        25.859       -.20784E-06   -.40171E-05
   7  Prefactor     .10000E-03    19.744        .13415E-06** at limit **
   8  Prefactor     .10000E-03    22.452        .32400E-06** at limit **
   9  norm          3.2686        2.4617       -.10378E-06    .42821E-05
  10  Prefactor     12.264        27.854       -.22007E-06    .53581E-05
  11  Prefactor     9.3096        34.804       -.18093E-05   -.13413E-04
  12  Prefactor     .10000E-03    37.555       -.41590E-06** at limit **
  13  norm          21.276        22.303       -.12029E-06    .23173E-06
  14  Prefactor     9.6473        17.036       -.60119E-06   -.12758E-05
  15  Prefactor     .10000E-03    209.47       -.57294E-07** at limit **
  16  Prefactor     .10000E-03    26.830       -.16019E-05** at limit **
  17  Prefactor     .10000E-03    15.483       -.25373E-07** at limit **
  18  norm          12.471        24.906        .66980E-07   -.68723E-05
  19  norm          3.9781        73.065        .79583E-06    .15755E-04
  20  Prefactor     .10000E-03    5.6675       -.59933E-06** at limit **
  21  Prefactor     25.659        79.183       -.44615E-05   -.33328E-04
  22  Prefactor     37.150        41.884       -.53383E-06   -.10123E-04
  23  Prefactor     18.975        25.076       -.87206E-06   -.85351E-05
  24  Normalizat    .71647        .43011        .11866E-04   -.57943E-05
  25  Prefactor     .91431        .22994       -.54411E-05    .42999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1465
  Prefactor  = 2.57977
  norm       = 5.31519
  Prefactor  = 0.0001
  Prefactor  = 11.8735
  Prefactor  = 15.8355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26863
  Prefactor  = 12.2645
  Prefactor  = 9.30959
  Prefactor  = 0.0001
  norm       = 21.2757
  Prefactor  = 9.6473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4709
  norm       = 3.97808
  Prefactor  = 0.0001
  Prefactor  = 25.6588
  Prefactor  = 37.1496
  Prefactor  = 18.9749
  Normalizat = 0.716474
  Prefactor  = 0.914312
 **********
 **   18 **HESSE 
 **********

 FCN=   3451.598     FROM HESSE     STATUS=OK           431 CALLS     3354 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.146        35.989        .81519E-04   -1.4725    
   2  Prefactor     2.5798        .40537        .13412E-04   -1.5387    
   3  norm          5.3152        45.913        .17425E-03   -1.5247    
   4  Prefactor     .10000E-03    24.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.874        11.443        .11626E-03   -1.5019    
   6  Prefactor     15.835        25.841        .10063E-03   -1.4912    
   7  Prefactor     .10000E-03    19.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2686        2.4582        .76883E-04   -1.5346    
  10  Prefactor     12.264        27.812        .11417E-03   -1.5007    
  11  Prefactor     9.3096        34.774        .13154E-03   -1.5098    
  12  Prefactor     .10000E-03    37.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.276        22.261        .86861E-04   -1.4785    
  14  Prefactor     9.6473        17.009        .12898E-03   -1.5087    
  15  Prefactor     .10000E-03    209.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.471        24.899        .11342E-03   -1.5002    
  19  norm          3.9781        72.473        .20135E-03   -1.5309    
  20  Prefactor     .10000E-03    5.7160        .13687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.659        79.906        .78927E-04   -1.4694    
  22  Prefactor     37.150        41.904        .65754E-04   -1.4488    
  23  Prefactor     18.975        25.090        .91934E-04   -1.4836    
  24  Normalizat    .71647        .42885        .42956E-03   -1.0325    
  25  Prefactor     .91431        .22984        .22547E-03   -.95643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43833e-11
Minuit parameter uncertainties:
  1  36.0213
  2  0.405373
  3  31.2754
  4  1.97765e-05
  5  11.4452
  6  25.8592
  7  1.18768e-05
  8  3.69421e-05
  9  2.45829
  10  27.8412
  11  34.8494
  12  6.7542e-05
  13  22.2694
  14  17.0178
  15  3.11416e-05
  16  0.00019479
  17  3.36591e-06
  18  24.9193
  19  34.0064
  20  3.55727e-05
  21  80.2421
  22  41.9376
  23  25.1044
  24  0.43088
  25  0.230084
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.226e+01  2.784e+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.143e-01  2.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  7.165e-01  4.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 2.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840836/likelihoodResults_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3451.20358593
delta logL = 0.394094028992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3451.18078428
delta logL = 0.416895680662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0819       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2163       1.0000          .0000       10.000    
     3 'Normalizat'    .66194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93113       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=   3451.181     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      277 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0795        20.588        .12498E-03   -.27651E-02
   2  Index         3.2164        1.9055        .44613E-02   -.79320E-03
   3  Normalizat    .66189        .37901        .44476E-03   -.55529E-03
   4  Prefactor     .93115        .22255        .22337E-03   -.96529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.07951
  Index      = 3.21639
  Normalizat = 0.661889
  Prefactor  = 0.931153
 **********
 **   18 **HESSE 
 **********

 FCN=   3451.181     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0795        11.029        .49992E-05   -1.5304    
   2  Index         3.2164        1.1677        .17845E-03   -.36476    
   3  Normalizat    .66189        .37889        .88952E-04   -1.0542    
   4  Prefactor     .93115        .22198        .44675E-04   -.95061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73143e-09
Minuit parameter uncertainties:
  1  11.0349
  2  1.18019
  3  0.380399
  4  0.222195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840836': 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) = 3451.18078421
delta logL = 0.416895747424

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.080e+00  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.216e+00  1.180e+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.312e-01  2.222e-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:  6.619e-01  3.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.22 +/- 1.18
Photon Flux (Free Index): 1.22e-07 +/- 1.38e-07
Energy Flux (Free Index): 2.21e-05 +/- 2.51e-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/840836/cmap_HighResolution_435024001_435283201_4FGL_J2324.7+0801_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-02', comment='SUCCESS', energy_flux2='2.21e-05', dlogl='4.17e-01', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-29 16:25:45.556309', photon_index_error2='1.18', photon_index2='3.22', ts='0.30', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.71e-07', energy_flux_error2='2.51e-05', EG='0.72', time_epoch_completed='1632957945.56', return_code='0', job_id='840836', GAL2='0.93', EG2='0.66', return_code2='0', photon_flux_error2='1.38e-07', ts2='1.16', photon_index='2.23' WHERE bin_id='755' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 840836: <4FGL_J2324.7+0801_daily_bin755> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin755> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:37 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:38 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:38 2021
Terminated at Wed Sep 29 16:25:46 2021
Results reported at Wed Sep 29 16:25:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin755 351.19 8.0282 435024001 435283201 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 :                                   522.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            609 sec.

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

