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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin923
RA = 351.19, Dec = 8.0282
tmin = 478569601, tmax = 478828801
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='842162', job_status='RUN', time_executed='2021-09-29 16:23:07.972335', time_epoch_executed='1632957787.97' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842162

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842162/ft1_4FGL_J2324.7+0801_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842162/ft2_4FGL_J2324.7+0801_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842162/ft1_4FGL_J2324.7+0801_daily_bin923.fits outfile=/scratch/kocevski/842162/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin923.fits ra=351.19 dec=8.0282 rad=12.0 tmin=478569601.0 tmax=478828801.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.51
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842162/ft2_4FGL_J2324.7+0801_daily_bin923.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/842162/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin923.fits evtable="EVENTS" outfile="/scratch/kocevski/842162/ft1_filtered_4FGL_J2324.7+0801_daily_bin923.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/842162/ft1_filtered_4FGL_J2324.7+0801_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/842162/ft2_4FGL_J2324.7+0801_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/842162/ltcube_478569601_478828801_4FGL_J2324.7+0801_daily_bin923.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/842162/ft2_4FGL_J2324.7+0801_daily_bin923.fits
.....................!
real 11.71
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842162/ft1_filtered_4FGL_J2324.7+0801_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/842162/ft2_4FGL_J2324.7+0801_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/842162/ltcube_478569601_478828801_4FGL_J2324.7+0801_daily_bin923.fits outfile=/scratch/kocevski/842162/expmap_478569601_478828801_4FGL_J2324.7+0801_daily_bin923.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/842162/ltcube_478569601_478828801_4FGL_J2324.7+0801_daily_bin923.fits
.....................!
real 190.57
user 186.23
sys 4.03

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842162/ft1_filtered_4FGL_J2324.7+0801_daily_bin923.fits scfile=/scratch/kocevski/842162/ft2_4FGL_J2324.7+0801_daily_bin923.fits outfile=/scratch/kocevski/842162/cmap_HighResolution_478569601_478828801_4FGL_J2324.7+0801_daily_bin923.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/842162/ft1_filtered_4FGL_J2324.7+0801_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/842162/ft2_4FGL_J2324.7+0801_daily_bin923.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842162/Model_4FGL_J2324.7+0801_daily_bin923.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/842162/ft1_filtered_4FGL_J2324.7+0801_daily_bin923.fits.....................!
real 93.84
user 92.59
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.1545       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0127       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.438       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 '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .22010       1.0000         .10000E-03   10000.    
    19 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14748E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1708       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3073       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99350       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=   8354.501     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2910 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.955        .88090E-06** at limit **
   2  Prefactor     3.1545        .34924        .33822E-08   -.17495E-03
   3  norm          4.0119        12.978        .30279E-06   -.21548E-04
   4  Prefactor     .10000E-03    14.514       -.43423E-06** at limit **
   5  Prefactor     .10000E-03    3.8915        .44082E-07** at limit **
   6  Prefactor     12.610        11.187        .52069E-07   -.55078E-06
   7  Prefactor     .10000E-03    3.5450        .12789E-07** at limit **
   8  Prefactor     .10000E-03    4.6288        .11589E-06** at limit **
   9  norm          1.1154        .95608        .45437E-07    .20395E-04
  10  Prefactor     .10000E-03    13.757       -.10276E-05** at limit **
  11  Prefactor     58.444        28.985        .45143E-06    .18135E-03
  12  Prefactor     .10000E-03    14.879        .26167E-06** at limit **
  13  norm          .10000E-03    3.7739       -.19436E-07** at limit **
  14  Prefactor     .10000E-03    3.9346        .17965E-07** at limit **
  15  Prefactor     .10002E-03    47.514       -.61119E-05** at limit **
  16  Prefactor     .10000E-03    11.298       -.27968E-06** at limit **
  17  Prefactor     .10001E-03    31.869        .39382E-05** at limit **
  18  norm          .10055E-03    8.9044       -.49467E-06** at limit **
  19  norm          .10000E-03    21.565       -.30092E-05** at limit **
  20  Prefactor     .10000E-03    2.0021       -.22552E-07** at limit **
  21  Prefactor     .10000E-03    18.171        .20822E-05** at limit **
  22  Prefactor     .10001E-03    69.039        .58341E-05** at limit **
  23  Prefactor     4.1715        8.2409        .50175E-05   -.53835E-03
  24  Normalizat    1.3072        .21674       -.47922E-06   -.21591E-04
  25  Prefactor     .99362        .13217       -.10167E-07   -.56152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.15448
  norm       = 4.01195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11544
  Prefactor  = 0.0001
  Prefactor  = 58.4438
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.000100551
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  Prefactor  = 4.17148
  Normalizat = 1.30719
  Prefactor  = 0.993624
 **********
 **   18 **HESSE 
 **********

 FCN=   8354.501     FROM HESSE     STATUS=OK           427 CALLS     3337 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1545        .34946        .17295E-04   -1.5353    
   3  norm          4.0119        12.969        .20132E-03   -1.5307    
   4  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9146        .17605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.610        11.188        .11280E-03   -1.4998    
   7  Prefactor     .10000E-03    3.5457        .16808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1154        .88750        .80178E-03   -1.5497    
  10  Prefactor     .10000E-03    13.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.444        29.086        .52481E-04   -1.4178    
  12  Prefactor     .10000E-03    14.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7881        .17337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9585        .17699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    49.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    32.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10055E-03    16.401        .93840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0229        .12626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    71.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.1715        8.5284        .98675E-03   -1.5299    
  24  Normalizat    1.3072        .25498        .33569E-03   -.83352    
  25  Prefactor     .99362        .15597        .23328E-03   -.92942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73418e-09
Minuit parameter uncertainties:
  1  0.000142855
  2  0.349455
  3  12.9778
  4  7.16325e-05
  5  2.53193e-06
  6  11.1895
  7  1.43718e-06
  8  6.5279e-06
  9  0.887515
  10  0.000166317
  11  29.0931
  12  4.66499e-05
  13  1.93483e-06
  14  6.60642e-07
  15  0.00194036
  16  1.78771e-06
  17  0.000985419
  18  0.00601443
  19  0.000583874
  20  3.24104e-06
  21  0.000397338
  22  0.00194458
  23  8.53088
  24  0.255222
  25  0.156036
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.663e-04  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.936e-01  1.560e-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.307e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/842162/likelihoodResults_478569601_478828801_4FGL_J2324.7+0801_daily_bin923.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) = 8354.50087119
delta logL = -0.000340723527188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8354.50053096
delta logL = -4.9334630603e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12296E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3000       1.0000          .0000       10.000    
     3 'Normalizat'    1.3075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99346       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=   8354.501     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      220 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10090E-03    1.3280        .90712E-01** at limit **
   2  Index         2.4178        2.0024        .50000       -.74319E-04
   3  Normalizat    1.3072        .27451E-02    .75854E-01    .14301E-03
   4  Prefactor     .99362        .17000E-02    .46185E-01    .88727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100901
  Index      = 2.41776
  Normalizat = 1.30719
  Prefactor  = 0.993624
 **********
 **   18 **HESSE 
 **********

 FCN=   8354.501     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      255 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10090E-03    444.52        .42325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4178        7.3260        .50000       -.54270    
   3  Normalizat    1.3072        .17198E-01    .33569E-03   -.83352    
   4  Prefactor     .99362        .10661E-01    .23328E-03   -.92942    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.8114e-07
Minuit parameter uncertainties:
  1  0.0403332
  2  12.9548
  3  0.0171976
  4  0.0106607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842162': 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) = 8354.50052787
delta logL = 2.59063017438e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.009e-04  4.033e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.418e+00  1.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:  9.936e-01  1.066e-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:  1.307e+00  1.720e-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/842162/cmap_HighResolution_478569601_478828801_4FGL_J2324.7+0801_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-09-29 16:36:28.997733', job_id='842162', GAL2='0.99', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632958589.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='923' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:36:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 842162: <4FGL_J2324.7+0801_daily_bin923> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin923> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:29 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:30 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:20:30 2021
Terminated at Wed Sep 29 16:36:29 2021
Results reported at Wed Sep 29 16:36:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin923 351.19 8.0282 478569601 478828801 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 :                                   798.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

