/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 7410
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1271
RA = 351.19, Dec = 8.0282
tmin = 568771201, tmax = 569030401
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='843755', job_status='RUN', time_executed='2021-09-29 16:27:25.002145', time_epoch_executed='1632958045.0' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843755/ft1_4FGL_J2324.7+0801_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843755/ft2_4FGL_J2324.7+0801_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843755/ft1_4FGL_J2324.7+0801_daily_bin1271.fits outfile=/scratch/kocevski/843755/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1271.fits ra=351.19 dec=8.0282 rad=12.0 tmin=568771201.0 tmax=569030401.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.63
user 3.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843755/ft1_filtered_4FGL_J2324.7+0801_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/843755/ft2_4FGL_J2324.7+0801_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/843755/ltcube_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.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/843755/ft2_4FGL_J2324.7+0801_daily_bin1271.fits
.....................!
real 12.16
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843755/ft1_filtered_4FGL_J2324.7+0801_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/843755/ft2_4FGL_J2324.7+0801_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/843755/ltcube_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.fits outfile=/scratch/kocevski/843755/expmap_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.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/843755/ltcube_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.fits
.....................!
real 192.42
user 187.64
sys 4.45

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/843755/ft1_filtered_4FGL_J2324.7+0801_daily_bin1271.fits scfile=/scratch/kocevski/843755/ft2_4FGL_J2324.7+0801_daily_bin1271.fits outfile=/scratch/kocevski/843755/cmap_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843755/ft1_filtered_4FGL_J2324.7+0801_daily_bin1271.fits scfile=/scratch/kocevski/843755/ft2_4FGL_J2324.7+0801_daily_bin1271.fits outfile=/scratch/kocevski/843755/cmap_HighResolution_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843755/ft1_filtered_4FGL_J2324.7+0801_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/843755/ft2_4FGL_J2324.7+0801_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843755/Model_4FGL_J2324.7+0801_daily_bin1271.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/843755/ft1_filtered_4FGL_J2324.7+0801_daily_bin1271.fits.....................!
real 74.13
user 72.74
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85534       1.0000         .10000E-03   10000.    
     3 'norm      '    57.716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0776       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17860E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1118       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14630E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8979       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1502       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.661       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2535       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92823       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=   6853.159     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2509 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3782        13.685        .52064E-05   -.80649E-04
   2  Prefactor     .85533        .19179       -.40200E-07   -.57510E-03
   3  norm          57.718        21.836        .12343E-06    .36526E-04
   4  Prefactor     .10000E-03    16.525       -.52875E-06** at limit **
   5  Prefactor     4.0771        5.1765        .34658E-05   -.26924E-03
   6  Prefactor     .10011E-03    5.5301        .10126E-05** at limit **
   7  Prefactor     .10000E-03    23.104       -.12465E-06** at limit **
   8  Prefactor     .10000E-03    2.3443        .13280E-08** at limit **
   9  norm          1.8808        1.2173       -.24701E-07    .64770E-04
  10  Prefactor     .57368        4.7517        .62659E-06   -.25609E-03
  11  Prefactor     .10000E-03    13.136        .57176E-06** at limit **
  12  Prefactor     .10000E-03    28.506        .80193E-06** at limit **
  13  norm          .10000E-03    1.4109       -.27928E-07** at limit **
  14  Prefactor     1.1116        3.1139        .81402E-06   -.30062E-04
  15  Prefactor     .10248E-03    1993.1       -.48383E-04** at limit **
  16  Prefactor     .10000E-03    6.7749        .10329E-07** at limit **
  17  Prefactor     6.8974        13.006        .22120E-05   -.61952E-04
  18  norm          .10000E-03    5.4756       -.10664E-08** at limit **
  19  norm          .10000E-03    9.5972       -.13626E-06** at limit **
  20  Prefactor     7.1470        5.8079       -.29737E-06    .62378E-04
  21  Prefactor     .10000E-03    42.509       -.53999E-06** at limit **
  22  Prefactor     20.660        21.419        .17411E-06   -.33440E-04
  23  Prefactor     .10000E-03    5.1617        .61317E-07** at limit **
  24  Normalizat    1.2534        .20859       -.60832E-06   -.14228E-03
  25  Prefactor     .92830        .13196       -.83891E-06   -.12888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.37821
  Prefactor  = 0.85533
  norm       = 57.718
  Prefactor  = 0.000100001
  Prefactor  = 4.07713
  Prefactor  = 0.00010011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88081
  Prefactor  = 0.573681
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.1116
  Prefactor  = 0.000102483
  Prefactor  = 0.0001
  Prefactor  = 6.8974
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.147
  Prefactor  = 0.000100001
  Prefactor  = 20.66
  Prefactor  = 0.0001
  Normalizat = 1.25337
  Prefactor  = 0.928302
 **********
 **   18 **HESSE 
 **********

 FCN=   6853.159     FROM HESSE     STATUS=OK           429 CALLS     2938 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3782        13.687        .86635E-03   -1.5244    
   2  Prefactor     .85533        .19189        .16403E-04   -1.5523    
   3  norm          57.718        21.847        .52806E-04   -1.4187    
   4  Prefactor     .10000E-03    16.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0771        5.1848        .99830E-03   -1.5304    
   6  Prefactor     .10011E-03    39.015        .37303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3536        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8808        1.2123        .70898E-04   -1.5434    
  10  Prefactor     .57368        11.067        .34708E-02   -1.5556    
  11  Prefactor     .10000E-03    13.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4125        .96021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1116        3.0436        .23694E-03   -1.5497    
  15  Prefactor     .10248E-03    2053.3        .40981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.7945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8974        12.986        .76379E-03   -1.5183    
  18  norm          .10000E-03    5.4834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.6013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1470        5.8011        .15001E-03   -1.5173    
  21  Prefactor     .10000E-03    42.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.660        21.430        .88116E-04   -1.4799    
  23  Prefactor     .10000E-03    5.1916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2534        .24464        .29788E-03   -.84969    
  25  Prefactor     .92830        .15466        .21650E-03   -.95159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09325e-09
Minuit parameter uncertainties:
  1  13.6953
  2  0.19189
  3  21.85
  4  0.000214623
  5  5.1854
  6  0.00415388
  7  7.98444e-05
  8  5.66185e-07
  9  1.21231
  10  5.04014
  11  0.000181575
  12  0.000416961
  13  1.59555e-06
  14  3.04405
  15  0.148213
  16  2.65732e-05
  17  12.9912
  18  2.8923e-06
  19  2.94362e-05
  20  5.80155
  21  0.000305268
  22  21.4383
  23  7.81173e-06
  24  0.244866
  25  0.154732
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.737e-01  5.040e+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.283e-01  1.547e-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.253e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/843755/likelihoodResults_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.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) = 6852.13447693
delta logL = 1.02442469974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6852.13421367
delta logL = 1.02468795799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0105       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0128       1.0000          .0000       10.000    
     3 'Normalizat'    1.2522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92636       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=   6852.134     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      257 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0105        4.7504        .50344E-02   -.29929E-02
   2  Index         1.0126        .47908        .30778       -.60843E-04
   3  Normalizat    1.2521        .20407        .67312E-01    .86860E-05
   4  Prefactor     .92643        .13056        .45340E-01    .87113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01054
  Index      = 1.01263
  Normalizat = 1.25209
  Prefactor  = 0.926426
 **********
 **   18 **HESSE 
 **********

 FCN=   6852.134     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0105        6.1497        .19075E-03   -1.5307    
   2  Index         1.0126        .65658        .12821E-01   -.92310    
   3  Normalizat    1.2521        .23904        .29779E-03   -.85008    
   4  Prefactor     .92643        .15306        .21653E-03   -.95224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22845e-09
Minuit parameter uncertainties:
  1  6.1507
  2  0.661882
  3  0.239252
  4  0.153133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843755': 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) = 6852.13421353
delta logL = 1.02468809594

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.011e+00  6.151e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.013e+00  6.619e-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.264e-01  1.531e-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.252e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.01 +/- 0.66
Photon Flux (Free Index): 4.23e-09 +/- 5.48e-09
Energy Flux (Free Index): 5.93e-05 +/- 9.61e-05

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/843755/cmap_HighResolution_568771201_569030401_4FGL_J2324.7+0801_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', comment='SUCCESS', energy_flux2='5.93e-05', dlogl='1.02e+00', photon_flux2='4.23e-09', job_status='DONE', time_completed='2021-09-29 16:40:12.893854', photon_index_error2='0.66', photon_index2='1.01', ts='0.01', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='6.12e-08', energy_flux_error2='9.61e-05', EG='1.25', time_epoch_completed='1632958812.89', return_code='0', job_id='843755', GAL2='0.93', EG2='1.25', return_code2='0', photon_flux_error2='5.48e-09', ts2='2.06', photon_index='2.23' WHERE bin_id='1271' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 843755: <4FGL_J2324.7+0801_daily_bin1271> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1271> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:39 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:40 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:25:40 2021
Terminated at Wed Sep 29 16:40:13 2021
Results reported at Wed Sep 29 16:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1271 351.19 8.0282 568771201 569030401 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

