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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin436
RA = 351.19, Dec = 8.0282
tmin = 352339201, tmax = 352598401
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='839259', job_status='RUN', time_executed='2021-09-29 16:13:38.091665', time_epoch_executed='1632957218.09' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839259/ft1_4FGL_J2324.7+0801_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839259/ft2_4FGL_J2324.7+0801_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839259/ft1_4FGL_J2324.7+0801_daily_bin436.fits outfile=/scratch/kocevski/839259/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin436.fits ra=351.19 dec=8.0282 rad=12.0 tmin=352339201.0 tmax=352598401.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.53
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839259/ft2_4FGL_J2324.7+0801_daily_bin436.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/839259/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/839259/ft1_filtered_4FGL_J2324.7+0801_daily_bin436.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839259/ft1_filtered_4FGL_J2324.7+0801_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/839259/ft2_4FGL_J2324.7+0801_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/839259/ltcube_352339201_352598401_4FGL_J2324.7+0801_daily_bin436.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/839259/ft2_4FGL_J2324.7+0801_daily_bin436.fits
.....................!
real 11.87
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839259/ft1_filtered_4FGL_J2324.7+0801_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/839259/ft2_4FGL_J2324.7+0801_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/839259/ltcube_352339201_352598401_4FGL_J2324.7+0801_daily_bin436.fits outfile=/scratch/kocevski/839259/expmap_352339201_352598401_4FGL_J2324.7+0801_daily_bin436.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/839259/ltcube_352339201_352598401_4FGL_J2324.7+0801_daily_bin436.fits
.....................!
real 190.52
user 184.97
sys 5.09

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839259/ft1_filtered_4FGL_J2324.7+0801_daily_bin436.fits scfile=/scratch/kocevski/839259/ft2_4FGL_J2324.7+0801_daily_bin436.fits outfile=/scratch/kocevski/839259/cmap_HighResolution_352339201_352598401_4FGL_J2324.7+0801_daily_bin436.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839259/ft1_filtered_4FGL_J2324.7+0801_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/839259/ft2_4FGL_J2324.7+0801_daily_bin436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839259/Model_4FGL_J2324.7+0801_daily_bin436.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/839259/ft1_filtered_4FGL_J2324.7+0801_daily_bin436.fits.....................!
real 68.46
user 67.12
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .41764E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    31.823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.417       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4619       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7331       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21709E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.631       1.0000         .10000E-03   10000.    
    19 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2606       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.292       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88356       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1211       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=   6177.501     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2964 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5891       -.10405E-06** at limit **
   2  Prefactor     .41754E-01    .95856E-01   -.55223E-07   -.11620E-02
   3  norm          31.823        19.059        .27501E-06    .84387E-05
   4  Prefactor     19.329        42.554       -.16517E-04   -.63410E-04
   5  Prefactor     2.4613        4.1672        .11154E-05   -.12492E-02
   6  Prefactor     2.7348        8.0291       -.18400E-05   -.66022E-04
   7  Prefactor     .10000E-03    7.9520       -.55637E-07** at limit **
   8  Prefactor     .10000E-03    3.1719       -.57486E-07** at limit **
   9  norm          2.1290        1.2938       -.28920E-07   -.85354E-04
  10  Prefactor     .10000E-03    19.521        .14273E-06** at limit **
  11  Prefactor     14.966        22.120        .83855E-06    .20165E-04
  12  Prefactor     .10000E-03    286.94        .19743E-04** at limit **
  13  norm          .10000E-03    7.9134       -.10127E-06** at limit **
  14  Prefactor     4.8578        8.4987        .10290E-05    .10539E-04
  15  Prefactor     .10000E-03    126.03       -.41516E-06** at limit **
  16  Prefactor     .10000E-03    5.9645       -.20391E-07** at limit **
  17  Prefactor     .10000E-03    14.642        .58128E-07** at limit **
  18  norm          16.630        17.851        .48052E-06    .15325E-04
  19  norm          .10000E-03    8.1908        .16475E-06** at limit **
  20  Prefactor     7.2595        5.4571       -.70486E-07   -.48019E-04
  21  Prefactor     .10000E-03    35.703        .45117E-08** at limit **
  22  Prefactor     34.284        23.869       -.99688E-06   -.16274E-04
  23  Prefactor     .10000E-03    2.8681       -.50442E-08** at limit **
  24  Normalizat    .88357        .22578        .11135E-05   -.30244E-04
  25  Prefactor     1.1211        .13659        .27155E-06   -.35123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0417535
  norm       = 31.8229
  Prefactor  = 19.3294
  Prefactor  = 2.4613
  Prefactor  = 2.73478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12897
  Prefactor  = 0.0001
  Prefactor  = 14.9659
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.85783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.63
  norm       = 0.0001
  Prefactor  = 7.2595
  Prefactor  = 0.0001
  Prefactor  = 34.2837
  Prefactor  = 0.0001
  Normalizat = 0.883573
  Prefactor  = 1.12113
 **********
 **   18 **HESSE 
 **********

 FCN=   6177.501     FROM HESSE     STATUS=OK           427 CALLS     3391 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41754E-01    .92567E-01    .35210E-03   -1.5667    
   3  norm          31.823        19.071        .71029E-04   -1.4579    
   4  Prefactor     19.329        42.902        .90895E-04   -1.4828    
   5  Prefactor     2.4613        9.6619        .13032E-02   -1.5394    
   6  Prefactor     2.7348        8.0024        .24630E-03   -1.5377    
   7  Prefactor     .10000E-03    7.9601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1809        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1290        1.2870        .67106E-04   -1.5416    
  10  Prefactor     .10000E-03    20.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.966        22.164        .10353E-03   -1.4934    
  12  Prefactor     .10000E-03    290.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.9629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8578        8.4963        .18257E-03   -1.5267    
  15  Prefactor     .10000E-03    126.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.630        17.849        .98212E-04   -1.4892    
  19  norm          .10000E-03    8.1925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.2595        5.4600        .14886E-03   -1.5169    
  21  Prefactor     .10000E-03    35.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.284        23.956        .68432E-04   -1.4536    
  23  Prefactor     .10000E-03    2.8715        .12999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88357        .25707        .33214E-03   -.97040    
  25  Prefactor     1.1211        .15854        .19184E-03   -.88794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42485e-08
Minuit parameter uncertainties:
  1  5.85901e-07
  2  0.0925674
  3  19.0743
  4  42.9709
  5  9.66802
  6  8.00558
  7  7.90839e-06
  8  8.61144e-06
  9  1.28701
  10  3.07725e-06
  11  22.1759
  12  0.000463786
  13  3.62381e-05
  14  8.49841
  15  2.63688e-05
  16  2.80252e-06
  17  1.10147e-05
  18  17.8544
  19  4.59248e-07
  20  5.46034
  21  1.70554e-05
  22  23.9624
  23  2.52627e-06
  24  0.257422
  25  0.158603
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  3.077e-06  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:  1.121e+00  1.586e-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:  8.836e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839259/likelihoodResults_352339201_352598401_4FGL_J2324.7+0801_daily_bin436.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6177.50170783
delta logL = -0.000238333912421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6177.50147104
delta logL = -1.54571534949e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46724E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3466       1.0000          .0000       10.000    
     3 'Normalizat'    .88401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1209       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=   6176.955     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      292 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44689        .83498        .10595E-01   -.84718E-03
   2  Index         3.9190        .64485        .97003E-01    .11067E-03
   3  Normalizat    .81131        .22529        .77965E-01   -.36247E-03
   4  Prefactor     1.1430        .13824        .36843E-01   -.96821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.446887
  Index      = 3.91896
  Normalizat = 0.811311
  Prefactor  = 1.14297
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.955     FROM HESSE     STATUS=OK            33 CALLS      325 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44689        1.5464        .52067E-03   -1.5842    
   2  Index         3.9190        1.4301        .52505E-02   -.21793    
   3  Normalizat    .81131        .24789        .34512E-03   -.99650    
   4  Prefactor     1.1430        .15607        .19014E-03   -.88105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35836e-10
Minuit parameter uncertainties:
  1  1.54657
  2  1.45135
  3  0.248235
  4  0.156131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839259': 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) = 6176.95456628
delta logL = 0.546903213402

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.469e-01  1.547e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.919e+00  1.451e+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:  1.143e+00  1.561e-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:  8.113e-01  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.92 +/- 1.45
Photon Flux (Free Index): 6.91e-08 +/- 4.72e-07
Energy Flux (Free Index): 1.05e-05 +/- 6.91e-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/839259/cmap_HighResolution_352339201_352598401_4FGL_J2324.7+0801_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='5.47e-01', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-09-29 16:24:53.011915', photon_index_error2='1.45', photon_index2='3.92', ts='-0.00', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.45e-08', energy_flux_error2='6.91e-05', EG='0.88', time_epoch_completed='1632957893.01', return_code='0', job_id='839259', GAL2='1.14', EG2='0.81', return_code2='0', photon_flux_error2='4.72e-07', ts2='1.24', photon_index='2.23' WHERE bin_id='436' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:24:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 839259: <4FGL_J2324.7+0801_daily_bin436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin436 351.19 8.0282 352339201 352598401 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 :                                   674.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

