/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 74 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 6033
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin635
RA = 351.19, Dec = 8.0282
tmin = 403920001, tmax = 404179201
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='840661', job_status='RUN', time_executed='2021-09-29 16:16:47.899298', time_epoch_executed='1632957407.9' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840661

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840661/ft1_4FGL_J2324.7+0801_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840661/ft2_4FGL_J2324.7+0801_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840661/ft1_4FGL_J2324.7+0801_daily_bin635.fits outfile=/scratch/kocevski/840661/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin635.fits ra=351.19 dec=8.0282 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.09
user 9.76
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840661/ft2_4FGL_J2324.7+0801_daily_bin635.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/840661/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/840661/ft1_filtered_4FGL_J2324.7+0801_daily_bin635.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/840661/ft1_filtered_4FGL_J2324.7+0801_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/840661/ft2_4FGL_J2324.7+0801_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/840661/ltcube_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.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/840661/ft2_4FGL_J2324.7+0801_daily_bin635.fits
.....................!
real 9.25
user 8.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840661/ft1_filtered_4FGL_J2324.7+0801_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/840661/ft2_4FGL_J2324.7+0801_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/840661/ltcube_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.fits outfile=/scratch/kocevski/840661/expmap_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.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/840661/ltcube_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.fits
.....................!
real 190.77
user 186.34
sys 4.12

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/840661/ft1_filtered_4FGL_J2324.7+0801_daily_bin635.fits scfile=/scratch/kocevski/840661/ft2_4FGL_J2324.7+0801_daily_bin635.fits outfile=/scratch/kocevski/840661/cmap_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840661/ft1_filtered_4FGL_J2324.7+0801_daily_bin635.fits scfile=/scratch/kocevski/840661/ft2_4FGL_J2324.7+0801_daily_bin635.fits outfile=/scratch/kocevski/840661/cmap_HighResolution_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.8665       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.536       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13405E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.858       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16771E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9405       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5942       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.678       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93138       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91226       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=   4163.867     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     3302 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0882        .92156E-07** at limit **
   2  Prefactor     1.8664        .30928       -.75824E-08    .68224E-04
   3  norm          .10000E-03    21.149       -.34305E-06** at limit **
   4  Prefactor     23.185        42.011       -.30708E-05   -.63102E-04
   5  Prefactor     .10000E-03    5.0522        .28556E-08** at limit **
   6  Prefactor     .10000E-03    3.8981        .13079E-07** at limit **
   7  Prefactor     21.529        29.020       -.20997E-05   -.84836E-04
   8  Prefactor     .10000E-03    2.0012       -.42102E-08** at limit **
   9  norm          .10000E-03    1.1522        .13966E-07** at limit **
  10  Prefactor     9.5354        23.626       -.97295E-06   -.71833E-04
  11  Prefactor     27.850        20.857       -.77838E-06   -.61954E-04
  12  Prefactor     55.857        62.058       -.26652E-06   -.24367E-05
  13  norm          3.6936        21.095        .10325E-06    .76049E-04
  14  Prefactor     7.6660        10.395        .22301E-05   -.34700E-03
  15  Prefactor     43.678        654.66        .44519E-05    .58694E-05
  16  Prefactor     .10000E-03    33.534       -.54179E-06** at limit **
  17  Prefactor     2.9331        122.14       -.67027E-05   -.34969E-04
  18  norm          .10000E-03    10.374       -.89001E-07** at limit **
  19  norm          .10000E-03    20.955        .53238E-06** at limit **
  20  Prefactor     6.5898        9.0126       -.96294E-07    .20704E-04
  21  Prefactor     .10000E-03    51.794        .12564E-05** at limit **
  22  Prefactor     41.675        35.710       -.10518E-05   -.42194E-04
  23  Prefactor     .10000E-03    6.6888       -.41041E-07** at limit **
  24  Normalizat    .93169        .28044        .14817E-05   -.12654E-04
  25  Prefactor     .91213        .16447       -.30241E-06    .52919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.86644
  norm       = 0.0001
  Prefactor  = 23.1845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5292
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.53537
  Prefactor  = 27.8501
  Prefactor  = 55.8574
  norm       = 3.69362
  Prefactor  = 7.66604
  Prefactor  = 43.6781
  Prefactor  = 0.0001
  Prefactor  = 2.93307
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.58977
  Prefactor  = 0.0001
  Prefactor  = 41.6748
  Prefactor  = 0.0001
  Normalizat = 0.931691
  Prefactor  = 0.912129
 **********
 **   18 **HESSE 
 **********

 FCN=   4163.867     FROM HESSE     STATUS=OK           425 CALLS     3727 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0898        .16780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8664        .30965        .14084E-04   -1.5435    
   3  norm          .10000E-03    21.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.185        42.476        .83178E-04   -1.4745    
   5  Prefactor     .10000E-03    5.1386        .14161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9007        .12443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.529        29.290        .86310E-04   -1.4780    
   8  Prefactor     .10000E-03    2.0025        .89146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.2394        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5354        23.233        .12970E-03   -1.5090    
  11  Prefactor     27.850        20.918        .75905E-04   -1.4652    
  12  Prefactor     55.857        62.016        .53672E-04   -1.4212    
  13  norm          3.6936        23.036        .21041E-03   -1.5324    
  14  Prefactor     7.6660        11.744        .72384E-03   -1.5154    
  15  Prefactor     43.678        634.72        .60668E-04   -1.4385    
  16  Prefactor     .10000E-03    33.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9331        118.54        .23686E-03   -1.5365    
  18  norm          .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    20.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5898        9.0294        .15627E-03   -1.5194    
  21  Prefactor     .10000E-03    51.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     41.675        35.896        .62093E-04   -1.4416    
  23  Prefactor     .10000E-03    6.7164        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93169        .32945        .32564E-03   -.95355    
  25  Prefactor     .91213        .19327        .20815E-03   -.95719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60164e-10
Minuit parameter uncertainties:
  1  3.2509e-06
  2  0.309654
  3  2.48852e-05
  4  42.5318
  5  3.58881e-06
  6  5.83128e-07
  7  29.3097
  8  2.00559e-07
  9  6.57978e-05
  10  23.2553
  11  20.9235
  12  62.0877
  13  18.4586
  14  11.7476
  15  337.408
  16  0.000138819
  17  37.3714
  18  1.45266e-05
  19  2.71619e-05
  20  9.03123
  21  0.000169419
  22  35.9147
  23  8.1307e-06
  24  0.330168
  25  0.193412
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  9.535e+00  2.326e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.121e-01  1.934e-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.317e-01  3.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/840661/likelihoodResults_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.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) = 4163.16509121
delta logL = 0.701965889664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4163.15410351
delta logL = 0.712953596767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60156       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9096       1.0000          .0000       10.000    
     3 'Normalizat'    .85442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94551       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=   4163.154     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      303 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60174        9.2741        .92535E-02    .96544E-03
   2  Index         3.9100        2.4853        .99774E-01   -.19809E-04
   3  Normalizat    .85503        .67834E-01    .76310E-01    .35272E-04
   4  Prefactor     .94520        .43194E-01    .45582E-01    .68405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.601737
  Index      = 3.90996
  Normalizat = 0.855028
  Prefactor  = 0.9452
 **********
 **   18 **HESSE 
 **********

 FCN=   4163.154     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60174        21.945        .42139E-03   -1.5553    
   2  Index         3.9100        6.8183        .36960E-02   -.21977    
   3  Normalizat    .85503        .24204        .33776E-03   -.98059    
   4  Prefactor     .94520        .15500        .20473E-03   -.94579    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.66273e-08
Minuit parameter uncertainties:
  1  7.27008
  2  4.97169
  3  0.242349
  4  0.155068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840661': 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) = 4163.1541
delta logL = 0.71295710602

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.017e-01  7.270e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.910e+00  4.972e+00  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.452e-01  1.551e-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.550e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.91 +/- 4.97
Photon Flux (Free Index): 9.11e-08 +/- 7.65e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.86e-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/840661/cmap_HighResolution_403920001_404179201_4FGL_J2324.7+0801_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='1.38e-05', dlogl='7.13e-01', photon_flux2='9.11e-08', job_status='DONE', time_completed='2021-09-29 16:26:57.545496', photon_index_error2='4.97', photon_index2='3.91', ts='0.39', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.86e-05', EG='0.93', time_epoch_completed='1632958017.55', return_code='0', job_id='840661', GAL2='0.95', EG2='0.86', return_code2='102', photon_flux_error2='7.65e-08', ts2='1.89', photon_index='2.23' WHERE bin_id='635' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:26:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 840661: <4FGL_J2324.7+0801_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin635 351.19 8.0282 403920001 404179201 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 :                                   608.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            694 sec.

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

