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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1611
RA = 351.19, Dec = 8.0282
tmin = 656899201, tmax = 657158401
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='500233', job_status='RUN', time_executed='2021-12-08 09:28:47.255786', time_epoch_executed='1638984527.26' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500233

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500233/ft1_4FGL_J2324.7+0801_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500233/ft1_4FGL_J2324.7+0801_daily_bin1611.fits outfile=/scratch/kocevski/500233/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1611.fits ra=351.19 dec=8.0282 rad=12.0 tmin=656899201.0 tmax=657158401.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.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/500233/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1611.fits evtable="EVENTS" outfile="/scratch/kocevski/500233/ft1_filtered_4FGL_J2324.7+0801_daily_bin1611.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/500233/ft1_filtered_4FGL_J2324.7+0801_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/500233/ltcube_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.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/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.fits
.....................!
real 13.58
user 13.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500233/ft1_filtered_4FGL_J2324.7+0801_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/500233/ltcube_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.fits outfile=/scratch/kocevski/500233/expmap_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.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/500233/ltcube_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.fits
.....................!
real 191.00
user 186.33
sys 4.28

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/500233/ft1_filtered_4FGL_J2324.7+0801_daily_bin1611.fits scfile=/scratch/kocevski/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.fits outfile=/scratch/kocevski/500233/cmap_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500233/ft1_filtered_4FGL_J2324.7+0801_daily_bin1611.fits scfile=/scratch/kocevski/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.fits outfile=/scratch/kocevski/500233/cmap_HighResolution_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500233/ft1_filtered_4FGL_J2324.7+0801_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/500233/ft2_4FGL_J2324.7+0801_daily_bin1611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500233/Model_4FGL_J2324.7+0801_daily_bin1611.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/500233/ft1_filtered_4FGL_J2324.7+0801_daily_bin1611.fits.....................!
real 81.15
user 79.65
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6193       1.0000         .10000E-03   10000.    
     3 'norm      '    34.609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.727       1.0000         .10000E-03   10000.    
     9 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12495E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    110.51       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4557       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17482E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.367       1.0000         .10000E-03   10000.    
    18 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10418E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19380E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.585       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .91771E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.829       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76111       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97355       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=   7436.451     FROM MIGRAD    STATUS=CONVERGED   1069 CALLS     3426 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4822        .18142E-02** at limit **
   2  Prefactor     1.6193        .25988        .16771E-04   -.31861E-04
   3  norm          34.628        16.667        .68119E-04    .16189E-04
   4  Prefactor     21.899        37.550        .85622E-04   -.33194E-05
   5  Prefactor     11.070        7.4900        .12045E-03   -.14441E-04
   6  Prefactor     .10000E-03    5.6900        .18142E-02** at limit **
   7  Prefactor     25.879        22.303        .78759E-04    .67843E-05
   8  Prefactor     12.733        7.8731        .11228E-03   -.14884E-04
   9  norm          .10000E-03    .49325        .94089E-03** at limit **
  10  Prefactor     4.6672        16.435        .18662E-03   -.68837E-05
  11  Prefactor     .10000E-03    22.175        .18142E-02** at limit **
  12  Prefactor     110.26        68.074        .19131E-03   -.38626E-05
  13  norm          4.4591        10.725        .19076E-03   -.57927E-04
  14  Prefactor     .10000E-03    3.1485        .14893E-02** at limit **
  15  Prefactor     .10000E-03    85.511        .18142E-02** at limit **
  16  Prefactor     16.419        14.919        .99007E-04   -.22965E-06
  17  Prefactor     10.329        36.588        .12444E-03   -.35446E-04
  18  norm          .10000E-03    17.889        .18142E-02** at limit **
  19  norm          .10000E-03    41.754        .18142E-02** at limit **
  20  Prefactor     .10000E-03    8.8182        .40795E-01** at limit **
  21  Prefactor     12.591        39.128        .11291E-03   -.14801E-04
  22  Prefactor     .10000E-03    14.087        .96955E-01** at limit **
  23  Prefactor     14.833        11.449        .10401E-03   -.78699E-05
  24  Normalizat    .76088        .24207        .35737E-03   -.42024E-04
  25  Prefactor     .97353        .14119        .20045E-03   -.84542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.61933
  norm       = 34.6282
  Prefactor  = 21.8988
  Prefactor  = 11.0702
  Prefactor  = 0.0001
  Prefactor  = 25.8789
  Prefactor  = 12.7335
  norm       = 0.0001
  Prefactor  = 4.6672
  Prefactor  = 0.0001
  Prefactor  = 110.256
  norm       = 4.45913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4194
  Prefactor  = 10.3286
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5907
  Prefactor  = 0.0001
  Prefactor  = 14.8325
  Normalizat = 0.760881
  Prefactor  = 0.973528
 **********
 **   18 **HESSE 
 **********

 FCN=   7436.451     FROM HESSE     STATUS=OK           421 CALLS     3847 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6193        .25988        .33542E-05   -1.5453    
   3  norm          34.628        16.666        .27247E-05   -1.4530    
   4  Prefactor     21.899        37.556        .34249E-05   -1.4772    
   5  Prefactor     11.070        7.4899        .48178E-05   -1.5042    
   6  Prefactor     .10000E-03    5.6908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.879        22.299        .31504E-05   -1.4690    
   8  Prefactor     12.733        7.8727        .44912E-05   -1.4994    
   9  norm          .10000E-03    .49381        .18818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6672        16.403        .74650E-05   -1.5276    
  11  Prefactor     .10000E-03    22.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     110.26        68.049        .76526E-05   -1.3604    
  13  norm          4.4591        10.710        .76305E-05   -1.5286    
  14  Prefactor     .10000E-03    3.1489        .29787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    85.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.419        14.630        .39603E-05   -1.4897    
  17  Prefactor     10.329        36.549        .49777E-05   -1.5065    
  18  norm          .10000E-03    17.901        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    41.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0365        .50193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.591        39.109        .45166E-05   -1.4998    
  22  Prefactor     .10000E-03    13.868        .98227E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.833        11.449        .41604E-05   -1.4938    
  24  Normalizat    .76088        .24206        .14295E-04   -1.0154    
  25  Prefactor     .97353        .14126        .40089E-04   -.93617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59624e-11
Minuit parameter uncertainties:
  1  1.4554e-07
  2  0.259879
  3  16.668
  4  37.597
  5  7.49054
  6  6.58201e-06
  7  22.3061
  8  7.87335
  9  2.80356e-07
  10  16.4192
  11  2.34202e-05
  12  68.0968
  13  10.7144
  14  9.99781e-06
  15  2.41863e-05
  16  14.633
  17  36.6282
  18  3.67486e-05
  19  5.12049e-05
  20  1.49122e-05
  21  39.1889
  22  2.24563e-05
  23  11.4504
  24  0.242398
  25  0.14131
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.667e+00  1.642e+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.735e-01  1.413e-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:  7.609e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/500233/likelihoodResults_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.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) = 7435.77058096
delta logL = 0.680842009077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7435.7216178
delta logL = 0.729805163022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0295       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6283       1.0000          .0000       10.000    
     3 'Normalizat'    .69263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99674       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=   7435.722     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0261        13.770        .12532E-01    .96510E-03
   2  Index         3.6298        2.3885        .96255E-01    .20259E-03
   3  Normalizat    .69261        .48249E-01    .84175E-01    .25984E-04
   4  Prefactor     .99685        .30443E-01    .46226E-01   -.56481E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02613
  Index      = 3.62985
  Normalizat = 0.692614
  Prefactor  = 0.996847
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.722     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0261        34.991        .71649E-04   -1.5505    
   2  Index         3.6298        6.7318        .50162E-02   -.27758    
   3  Normalizat    .69261        .20182        .37280E-03   -1.0419    
   4  Prefactor     .99685        .12859        .19822E-03   -.92835    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.81062e-07
Minuit parameter uncertainties:
  1  11.9912
  2  4.97526
  3  0.202035
  4  0.128632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500233': 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) = 7435.72161624
delta logL = 0.729806723813

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.026e+00  1.199e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.630e+00  4.975e+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.968e-01  1.286e-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:  6.926e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.63 +/- 4.98
Photon Flux (Free Index): 7.98e-08 +/- 6.70e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/500233/cmap_HighResolution_656899201_657158401_4FGL_J2324.7+0801_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='7.30e-01', photon_flux2='7.98e-08', job_status='DONE', time_completed='2021-12-08 09:41:56.379905', photon_index_error2='4.98', photon_index2='3.63', ts='0.16', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.78e-05', EG='0.76', time_epoch_completed='1638985316.38', return_code='0', job_id='500233', GAL2='1.00', EG2='0.69', return_code2='102', photon_flux_error2='6.70e-08', ts2='1.72', photon_index='2.23' WHERE bin_id='1611' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:41:56 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 500233: <4FGL_J2324.7+0801_daily_bin1611> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1611> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:33 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:27:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:27:03 2021
Terminated at Wed Dec  8 09:41:57 2021
Results reported at Wed Dec  8 09:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1611 351.19 8.0282 656899201 657158401 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 :                                   788.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            984 sec.

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

