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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1396
RA = 351.19, Dec = 8.0282
tmin = 601171201, tmax = 601430401
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='843937', job_status='RUN', time_executed='2021-09-29 16:26:43.740055', time_epoch_executed='1632958003.74' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843937

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843937/ft1_4FGL_J2324.7+0801_daily_bin1396.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843937/ft2_4FGL_J2324.7+0801_daily_bin1396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843937/ft1_4FGL_J2324.7+0801_daily_bin1396.fits outfile=/scratch/kocevski/843937/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1396.fits ra=351.19 dec=8.0282 rad=12.0 tmin=601171201.0 tmax=601430401.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.66
user 3.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843937/ft2_4FGL_J2324.7+0801_daily_bin1396.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/843937/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1396.fits evtable="EVENTS" outfile="/scratch/kocevski/843937/ft1_filtered_4FGL_J2324.7+0801_daily_bin1396.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/843937/ft1_filtered_4FGL_J2324.7+0801_daily_bin1396.fits" evtable="EVENTS" scfile=/scratch/kocevski/843937/ft2_4FGL_J2324.7+0801_daily_bin1396.fits sctable="SC_DATA" outfile=/scratch/kocevski/843937/ltcube_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.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/843937/ft2_4FGL_J2324.7+0801_daily_bin1396.fits
.....................!
real 14.00
user 13.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843937/ft1_filtered_4FGL_J2324.7+0801_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/843937/ft2_4FGL_J2324.7+0801_daily_bin1396.fits sctable="SC_DATA" expcube=/scratch/kocevski/843937/ltcube_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.fits outfile=/scratch/kocevski/843937/expmap_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.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/843937/ltcube_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.fits
.....................!
real 193.96
user 188.49
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/843937/ft1_filtered_4FGL_J2324.7+0801_daily_bin1396.fits scfile=/scratch/kocevski/843937/ft2_4FGL_J2324.7+0801_daily_bin1396.fits outfile=/scratch/kocevski/843937/cmap_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843937/ft1_filtered_4FGL_J2324.7+0801_daily_bin1396.fits scfile=/scratch/kocevski/843937/ft2_4FGL_J2324.7+0801_daily_bin1396.fits outfile=/scratch/kocevski/843937/cmap_HighResolution_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .60083       1.0000         .10000E-03   10000.    
     3 'norm      '    23.439       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .85301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1255       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7086       1.0000         .10000E-03   10000.    
     9 'norm      '    .48349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29228E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10865E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2741       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.297       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2707       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66634       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=   5881.427     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2492 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8119       -.77904E-06** at limit **
   2  Prefactor     .60086        .16879       -.27714E-08   -.73906E-04
   3  norm          23.448        21.078        .42244E-06    .38427E-04
   4  Prefactor     .10000E-03    9.8246        .43946E-05** at limit **
   5  Prefactor     .85235        5.5906        .73479E-06   -.36869E-03
   6  Prefactor     6.1241        11.639       -.16610E-07   -.27949E-04
   7  Prefactor     .10000E-03    10.511       -.41752E-05** at limit **
   8  Prefactor     5.7090        4.8287        .10341E-05   -.19793E-02
   9  norm          .48358        .45402       -.29969E-08    .11619E-03
  10  Prefactor     11.819        9.7777        .30126E-06   -.29596E-03
  11  Prefactor     5.4709        12.491       -.42899E-06   -.24658E-04
  12  Prefactor     .10000E-03    41.500        .39140E-05** at limit **
  13  norm          .10000E-03    3.1519        .11086E-07** at limit **
  14  Prefactor     .10001E-03    3.8882       -.47845E-06** at limit **
  15  Prefactor     .10000E-03    78.697       -.30960E-05** at limit **
  16  Prefactor     .10000E-03    5.3720        .11839E-07** at limit **
  17  Prefactor     .10000E-03    23.333       -.48361E-05** at limit **
  18  norm          .10000E-03    4.7420       -.41836E-07** at limit **
  19  norm          .10000E-03    16.255        .16095E-05** at limit **
  20  Prefactor     4.2702        4.9912        .68752E-06    .46058E-04
  21  Prefactor     .10000E-03    21.433        .22836E-05** at limit **
  22  Prefactor     17.299        21.999        .37143E-06    .28312E-04
  23  Prefactor     .10000E-03    3.8890        .35806E-08** at limit **
  24  Normalizat    1.2702        .19946       -.39791E-06    .11671E-03
  25  Prefactor     .66651        .12004       -.19346E-06    .97061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.600857
  norm       = 23.4476
  Prefactor  = 0.000100002
  Prefactor  = 0.852352
  Prefactor  = 6.12406
  Prefactor  = 0.000100002
  Prefactor  = 5.70895
  norm       = 0.483575
  Prefactor  = 11.8194
  Prefactor  = 5.47086
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.27019
  Prefactor  = 0.0001
  Prefactor  = 17.2992
  Prefactor  = 0.0001
  Normalizat = 1.27024
  Prefactor  = 0.666514
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.427     FROM HESSE     STATUS=OK           427 CALLS     2919 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .60086        .16830        .16031E-04   -1.5553    
   3  norm          23.448        21.118        .82737E-04   -1.4739    
   4  Prefactor     .10000E-03    10.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .85235        5.8448        .35369E-03   -1.5523    
   6  Prefactor     6.1241        11.632        .16221E-03   -1.5213    
   7  Prefactor     .10000E-03    10.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7090        6.7682        .84058E-03   -1.5230    
   9  norm          .48358        .48973        .48804E-03   -1.5569    
  10  Prefactor     11.819        9.8597        .58252E-03   -1.5020    
  11  Prefactor     5.4709        12.597        .17179E-03   -1.5240    
  12  Prefactor     .10000E-03    41.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1616        .13284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    15.738        .28290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    78.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3849        .17341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.7494        .16310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2702        4.9706        .17722E-03   -1.5295    
  21  Prefactor     .10000E-03    21.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.299        22.019        .96300E-04   -1.4876    
  23  Prefactor     .10000E-03    3.8996        .14769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2702        .23010        .25742E-03   -.84459    
  25  Prefactor     .66651        .13940        .21197E-03   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77368e-09
Minuit parameter uncertainties:
  1  4.37082e-05
  2  0.1683
  3  21.1246
  4  0.000272329
  5  4.46435
  6  11.6365
  7  0.000261468
  8  6.76914
  9  0.489735
  10  9.86102
  11  12.6031
  12  0.000483176
  13  4.12127e-06
  14  0.000740801
  15  0.000563811
  16  1.44283e-05
  17  0.000431867
  18  6.28015e-07
  19  7.82418e-05
  20  4.97107
  21  0.000200636
  22  22.0295
  23  1.02308e-06
  24  0.230288
  25  0.139476
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.182e+01  9.861e+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:  6.665e-01  1.395e-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.270e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.52e-05

TS (Fixed Index): 2.24
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/843937/likelihoodResults_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.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) = 5881.38458958
delta logL = 0.0427900619216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.38388217
delta logL = 0.0434974703721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6394       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4089       1.0000          .0000       10.000    
     3 'Normalizat'    1.2627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66905       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=   5881.384     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6405        12.257        .12907E-03   -.35699E-03
   2  Index         2.4089        .68523        .62187E-02   -.12361E-03
   3  Normalizat    1.2628        .22496        .25805E-03    .28022E-03
   4  Prefactor     .66901        .13833        .21160E-03    .40518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.64055
  Index      = 2.40891
  Normalizat = 1.2628
  Prefactor  = 0.669013
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.384     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6405        11.218        .51629E-05   -1.5087    
   2  Index         2.4089        .62723        .24875E-03   -.54477    
   3  Normalizat    1.2628        .22486        .51610E-04   -.84684    
   4  Prefactor     .66901        .13831        .42320E-04   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99305e-10
Minuit parameter uncertainties:
  1  11.2208
  2  0.629505
  3  0.225036
  4  0.138382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843937': 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) = 5881.38388213
delta logL = 0.0434975125308

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.641e+00  1.122e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.409e+00  6.295e-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:  6.690e-01  1.384e-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.263e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.41 +/- 0.63
Photon Flux (Free Index): 4.96e-08 +/- 4.54e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.43e-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/843937/cmap_HighResolution_601171201_601430401_4FGL_J2324.7+0801_daily_bin1396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.29e-03', comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='1.61e-05', photon_flux_error='3.55e-08', dlogl='4.35e-02', energy_flux='1.82e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-09-29 16:37:55.815030', photon_index_error2='0.63', photon_index2='2.41', ts='2.24', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.43e-05', EG='1.27', time_epoch_completed='1632958675.82', return_code='0', job_id='843937', GAL2='0.67', EG2='1.26', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.54e-08', ts2='2.32', photon_index='2.23' WHERE bin_id='1396' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:37:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 843937: <4FGL_J2324.7+0801_daily_bin1396> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1396 351.19 8.0282 601171201 601430401 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            721 sec.

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

