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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin607
RA = 351.19, Dec = 8.0282
tmin = 396662401, tmax = 396921601
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='840621', job_status='RUN', time_executed='2021-09-29 16:19:10.106642', time_epoch_executed='1632957550.11' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840621/ft1_4FGL_J2324.7+0801_daily_bin607.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840621/ft2_4FGL_J2324.7+0801_daily_bin607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840621/ft1_4FGL_J2324.7+0801_daily_bin607.fits outfile=/scratch/kocevski/840621/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin607.fits ra=351.19 dec=8.0282 rad=12.0 tmin=396662401.0 tmax=396921601.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.38
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840621/ft2_4FGL_J2324.7+0801_daily_bin607.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/840621/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin607.fits evtable="EVENTS" outfile="/scratch/kocevski/840621/ft1_filtered_4FGL_J2324.7+0801_daily_bin607.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840621/ft1_filtered_4FGL_J2324.7+0801_daily_bin607.fits" evtable="EVENTS" scfile=/scratch/kocevski/840621/ft2_4FGL_J2324.7+0801_daily_bin607.fits sctable="SC_DATA" outfile=/scratch/kocevski/840621/ltcube_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.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/840621/ft2_4FGL_J2324.7+0801_daily_bin607.fits
.....................!
real 11.87
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840621/ft1_filtered_4FGL_J2324.7+0801_daily_bin607.fits evtable="EVENTS" scfile=/scratch/kocevski/840621/ft2_4FGL_J2324.7+0801_daily_bin607.fits sctable="SC_DATA" expcube=/scratch/kocevski/840621/ltcube_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.fits outfile=/scratch/kocevski/840621/expmap_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.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/840621/ltcube_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.fits
.....................!
real 191.26
user 185.69
sys 5.20

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/840621/ft1_filtered_4FGL_J2324.7+0801_daily_bin607.fits scfile=/scratch/kocevski/840621/ft2_4FGL_J2324.7+0801_daily_bin607.fits outfile=/scratch/kocevski/840621/cmap_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840621/ft1_filtered_4FGL_J2324.7+0801_daily_bin607.fits scfile=/scratch/kocevski/840621/ft2_4FGL_J2324.7+0801_daily_bin607.fits outfile=/scratch/kocevski/840621/cmap_HighResolution_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.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/840621/ft1_filtered_4FGL_J2324.7+0801_daily_bin607.fits evtable="EVENTS" scfile=/scratch/kocevski/840621/ft2_4FGL_J2324.7+0801_daily_bin607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840621/Model_4FGL_J2324.7+0801_daily_bin607.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/840621/ft1_filtered_4FGL_J2324.7+0801_daily_bin607.fits.....................!
real 80.11
user 78.61
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3950       1.0000         .10000E-03   10000.    
     3 'norm      '    13.669       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12875E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .27386E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11150E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8229       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99307       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88123       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=   7958.921     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2532 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.930       -.70258E-07** at limit **
   2  Prefactor     1.3950        .22951        .82374E-08    .11500E-03
   3  norm          13.669        11.883        .68231E-07   -.12475E-04
   4  Prefactor     30.214        27.002        .15222E-06   -.19627E-04
   5  Prefactor     .10000E-03    2.9691       -.27965E-07** at limit **
   6  Prefactor     .10000E-03    5.0396       -.24777E-07** at limit **
   7  Prefactor     21.922        15.503        .10514E-06   -.32483E-04
   8  Prefactor     .10000E-03    2.6386       -.11735E-06** at limit **
   9  norm          2.1339        1.0763        .37441E-07   -.24237E-03
  10  Prefactor     .10000E-03    2.5448       -.22399E-07** at limit **
  11  Prefactor     .10000E-03    6.2539       -.37743E-07** at limit **
  12  Prefactor     .10000E-03    118.70       -.14919E-05** at limit **
  13  norm          .10000E-03    1.9421       -.34645E-08** at limit **
  14  Prefactor     5.3448        5.7496        .23951E-06    .21492E-03
  15  Prefactor     .10001E-03    108.66       -.41121E-05** at limit **
  16  Prefactor     2.6383        10.164       -.35573E-05   -.64576E-04
  17  Prefactor     .10000E-03    14.753        .35115E-07** at limit **
  18  norm          .10000E-03    4.0200       -.18837E-07** at limit **
  19  norm          .10002E-03    57.919       -.13850E-04** at limit **
  20  Prefactor     .10000E-03    2.1580        .32092E-06** at limit **
  21  Prefactor     .10000E-03    153.10        .52019E-05** at limit **
  22  Prefactor     11.093        11.657       -.14471E-06   -.23048E-03
  23  Prefactor     1.8232        4.6208        .76460E-06    .68832E-03
  24  Normalizat    .99296        .17975       -.41945E-06   -.59445E-03
  25  Prefactor     .88131        .10956       -.28893E-06   -.87008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.395
  norm       = 13.6692
  Prefactor  = 30.2135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9217
  Prefactor  = 0.0001
  norm       = 2.13394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.34479
  Prefactor  = 0.000100009
  Prefactor  = 2.63828
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0927
  Prefactor  = 1.82317
  Normalizat = 0.992961
  Prefactor  = 0.881309
 **********
 **   18 **HESSE 
 **********

 FCN=   7958.921     FROM HESSE     STATUS=OK           423 CALLS     2955 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3950        .22963        .16726E-04   -1.5472    
   3  norm          13.669        11.887        .10834E-03   -1.4968    
   4  Prefactor     30.214        27.026        .72890E-04   -1.4608    
   5  Prefactor     .10000E-03    2.9893        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.922        15.515        .85534E-04   -1.4771    
   8  Prefactor     .10000E-03    6.3061        .28183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1339        1.0741        .28220E-04   -1.5416    
  10  Prefactor     .10000E-03    2.5519        .13898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    120.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9488        .12135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3448        5.7706        .17382E-03   -1.5246    
  15  Prefactor     .10001E-03    109.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6383        10.235        .25227E-03   -1.5383    
  17  Prefactor     .10000E-03    14.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0223        .17469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    57.891        .59672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2325        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    154.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.093        11.667        .12028E-03   -1.5042    
  23  Prefactor     1.8232        4.6849        .30379E-03   -1.5438    
  24  Normalizat    .99296        .21102        .29994E-03   -.93267    
  25  Prefactor     .88131        .12845        .20035E-03   -.96797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70187e-09
Minuit parameter uncertainties:
  1  8.73051e-06
  2  0.229626
  3  11.8886
  4  27.0368
  5  1.42934e-07
  6  2.23262e-06
  7  15.5177
  8  4.93079e-06
  9  1.07415
  10  9.93025e-07
  11  1.18725e-06
  12  0.000604714
  13  1.05377e-06
  14  5.77122
  15  0.00199542
  16  10.2417
  17  8.26377e-06
  18  9.69521e-07
  19  0.00207482
  20  1.80905e-05
  21  0.000493068
  22  11.6695
  23  4.68583
  24  0.211194
  25  0.128495
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  9.930e-07  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:  8.813e-01  1.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  9.930e-01  2.112e-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: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840621/likelihoodResults_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.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) = 7958.92249785
delta logL = -0.00186066726656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7958.92063645
delta logL = 7.2693637776e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1951       1.0000          .0000       10.000    
     3 'Normalizat'    .99301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88126       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7958.921     FROM MIGRAD    STATUS=FAILED        89 CALLS      242 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10204E-03    24.034        .14493E-02** at limit **
   2  Index         2.1274        8.3954        .50000        .84165E-04
   3  Normalizat    .99296        .13280E-01    .29994E-03   -.16905E-04
   4  Prefactor     .88131        .84602E-02    .20035E-03   -.25024E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7958.921     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      360 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10204E-03    24.034        .26411E-03** at limit **
   2  Index         2.1274        8.3954        .17323E-02    .84165E-04
   3  Normalizat    .99296        .13280E-01    .13477E-04   -.16905E-04
   4  Prefactor     .88131        .84602E-02    .93403E-05   -.25024E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7958.921     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      408 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.443        .28986E-02** at limit **
   2  Index         1.6784        7.9088        .50000        .37564E-06
   3  Normalizat    .99296        .13027E-01    .11997E-04    .40329E-03
   4  Prefactor     .88131        .82992E-02    .80140E-05    .60234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.67841
  Normalizat = 0.992963
  Prefactor  = 0.88131
 **********
 **   18 **HESSE 
 **********

 FCN=   7958.921     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      437 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    143.03        .57972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6784        6.7093        .50000       -.72658    
   3  Normalizat    .99296        .29249E-01    .23995E-05   -.93267    
   4  Prefactor     .88131        .18635E-01    .16028E-05   -.96797    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0708e-10
Minuit parameter uncertainties:
  1  0.000264877
  2  431.771
  3  0.0292496
  4  0.0186354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840621': 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): 102
logL (Free Index) = 7958.92063071
delta logL = 6.47393699182e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.649e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.678e+00  4.318e+02  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:  8.813e-01  1.864e-02  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  9.930e-01  2.925e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

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/840621/cmap_HighResolution_396662401_396921601_4FGL_J2324.7+0801_daily_bin607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-29 16:31:34.109020', job_id='840621', GAL2='0.88', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632958294.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='607' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 840621: <4FGL_J2324.7+0801_daily_bin607> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin607> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:20 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:22 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:22 2021
Terminated at Wed Sep 29 16:31:34 2021
Results reported at Wed Sep 29 16:31:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin607 351.19 8.0282 396662401 396921601 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 :                                   744.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

