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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin588
RA = 351.19, Dec = 8.0282
tmin = 391737601, tmax = 391996801
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='840591', job_status='RUN', time_executed='2021-09-29 16:19:20.776033', time_epoch_executed='1632957560.78' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840591/ft1_4FGL_J2324.7+0801_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840591/ft2_4FGL_J2324.7+0801_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840591/ft1_4FGL_J2324.7+0801_daily_bin588.fits outfile=/scratch/kocevski/840591/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin588.fits ra=351.19 dec=8.0282 rad=12.0 tmin=391737601.0 tmax=391996801.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.29
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840591/ft2_4FGL_J2324.7+0801_daily_bin588.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/840591/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/840591/ft1_filtered_4FGL_J2324.7+0801_daily_bin588.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840591/ft1_filtered_4FGL_J2324.7+0801_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/840591/ft2_4FGL_J2324.7+0801_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/840591/ltcube_391737601_391996801_4FGL_J2324.7+0801_daily_bin588.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/840591/ft2_4FGL_J2324.7+0801_daily_bin588.fits
.....................!
real 11.70
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840591/ft1_filtered_4FGL_J2324.7+0801_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/840591/ft2_4FGL_J2324.7+0801_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/840591/ltcube_391737601_391996801_4FGL_J2324.7+0801_daily_bin588.fits outfile=/scratch/kocevski/840591/expmap_391737601_391996801_4FGL_J2324.7+0801_daily_bin588.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/840591/ltcube_391737601_391996801_4FGL_J2324.7+0801_daily_bin588.fits
.....................!
real 192.44
user 187.38
sys 4.64

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/840591/ft1_filtered_4FGL_J2324.7+0801_daily_bin588.fits scfile=/scratch/kocevski/840591/ft2_4FGL_J2324.7+0801_daily_bin588.fits outfile=/scratch/kocevski/840591/cmap_391737601_391996801_4FGL_J2324.7+0801_daily_bin588.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840591/ft1_filtered_4FGL_J2324.7+0801_daily_bin588.fits scfile=/scratch/kocevski/840591/ft2_4FGL_J2324.7+0801_daily_bin588.fits outfile=/scratch/kocevski/840591/cmap_HighResolution_391737601_391996801_4FGL_J2324.7+0801_daily_bin588.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/840591/ft1_filtered_4FGL_J2324.7+0801_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/840591/ft2_4FGL_J2324.7+0801_daily_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840591/Model_4FGL_J2324.7+0801_daily_bin588.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/840591/ft1_filtered_4FGL_J2324.7+0801_daily_bin588.fits.....................!
real 83.30
user 81.50
sys 1.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2222       1.0000         .10000E-03   10000.    
     3 'norm      '    11.393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.0570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.868       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1362       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.720       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3541       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11657E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.976       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5203       1.0000         .10000E-03   10000.    
    19 'norm      '    42.222       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.667       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7562       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66757       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=   7372.817     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2890 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.938        .16058E-06** at limit **
   2  Prefactor     1.2222        .23623       -.32615E-07   -.12049E-02
   3  norm          11.396        10.965       -.85223E-07   -.17712E-05
   4  Prefactor     .10000E-03    18.059        .81404E-06** at limit **
   5  Prefactor     .10000E-03    2.1889        .14224E-06** at limit **
   6  Prefactor     .10000E-03    13.863        .13368E-05** at limit **
   7  Prefactor     17.877        22.414        .93262E-07    .21447E-04
   8  Prefactor     .10000E-03    7.4495       -.28638E-05** at limit **
   9  norm          4.0572        1.1699       -.20026E-07   -.47004E-04
  10  Prefactor     30.841        17.190       -.67727E-06    .39386E-04
  11  Prefactor     2.1642        60.453        .21196E-05    .53411E-04
  12  Prefactor     36.738        43.289       -.11583E-05   -.86556E-04
  13  norm          1.3698        18.015        .54684E-05   -.84555E-04
  14  Prefactor     .10000E-03    4.3267       -.77898E-07** at limit **
  15  Prefactor     .10000E-03    54.690       -.64851E-06** at limit **
  16  Prefactor     .10000E-03    7.4769       -.51642E-06** at limit **
  17  Prefactor     34.993        34.688       -.14759E-05   -.73057E-04
  18  norm          6.5199        8.9140       -.17791E-06   -.24512E-04
  19  norm          42.222        20.857        .29748E-07    .36859E-04
  20  Prefactor     .10000E-03    2.8594       -.89209E-07** at limit **
  21  Prefactor     27.689        38.426       -.15084E-05   -.76312E-04
  22  Prefactor     .10000E-03    32.893       -.21046E-05** at limit **
  23  Prefactor     9.7575        8.3056       -.19242E-06   -.14131E-04
  24  Normalizat    1.2173        .22810        .25488E-05   -.14813E-03
  25  Prefactor     .66774        .12863       -.20607E-05    .18083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.22224
  norm       = 11.3958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8768
  Prefactor  = 0.000100001
  norm       = 4.0572
  Prefactor  = 30.8409
  Prefactor  = 2.16423
  Prefactor  = 36.738
  norm       = 1.36981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9933
  norm       = 6.51988
  norm       = 42.222
  Prefactor  = 0.0001
  Prefactor  = 27.6892
  Prefactor  = 0.0001
  Prefactor  = 9.75747
  Normalizat = 1.2173
  Prefactor  = 0.667744
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.817     FROM HESSE     STATUS=OK           427 CALLS     3317 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2222        .23634        .17571E-04   -1.5487    
   3  norm          11.396        10.965        .11869E-03   -1.5033    
   4  Prefactor     .10000E-03    18.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1950        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.877        22.435        .94688E-04   -1.4862    
   8  Prefactor     .10000E-03    7.9669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.0572        1.1701        .48299E-04   -1.5305    
  10  Prefactor     30.841        17.388        .72116E-04   -1.4597    
  11  Prefactor     2.1642        61.087        .28204E-03   -1.5414    
  12  Prefactor     36.738        43.465        .66138E-04   -1.4495    
  13  norm          1.3698        18.667        .18787E-02   -1.5474    
  14  Prefactor     .10000E-03    4.3940        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.993        34.738        .67761E-04   -1.4524    
  18  norm          6.5199        8.9124        .15717E-03   -1.5197    
  19  norm          42.222        20.801        .61694E-04   -1.4407    
  20  Prefactor     .10000E-03    2.9353        .28305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.689        38.452        .76164E-04   -1.4655    
  22  Prefactor     .10000E-03    33.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.7575        8.3077        .12829E-03   -1.5083    
  24  Normalizat    1.2173        .23729        .28623E-03   -.86070    
  25  Prefactor     .66774        .13413        .22587E-03   -1.0480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78748e-10
Minuit parameter uncertainties:
  1  1.81116e-05
  2  0.236339
  3  10.9665
  4  8.08639e-05
  5  5.56552e-06
  6  9.92879e-05
  7  22.4454
  8  0.00018061
  9  1.17008
  10  17.3909
  11  23.0217
  12  43.5026
  13  10.1167
  14  6.82553e-06
  15  0.000183013
  16  3.21988e-05
  17  34.7582
  18  8.91424
  19  20.8043
  20  5.48454e-06
  21  38.4864
  22  0.000210496
  23  8.30867
  24  0.237497
  25  0.134192
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.084e+01  1.739e+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:  6.677e-01  1.342e-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.217e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.67
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 6.26e-08
Energy Flux (Fixed Index): 4.74e-05 +/- 2.67e-05

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) = 7372.38665179
delta logL = 0.430517728782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7372.36304481
delta logL = 0.454124709391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.814       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6963       1.0000          .0000       10.000    
     3 'Normalizat'    1.1588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69230       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=   7372.363     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      285 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.804        24.271        .97675E-04    .10331E-02
   2  Index         2.6967        .77521        .36191E-02    .43643E-03
   3  Normalizat    1.1587        .23793        .29209E-03    .36314E-04
   4  Prefactor     .69232        .14006        .22224E-03   -.44854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8039
  Index      = 2.69669
  Normalizat = 1.15868
  Prefactor  = 0.692319
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.363     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.804        17.970        .39070E-05   -1.4888    
   2  Index         2.6967        .57429        .14476E-03   -.47874    
   3  Normalizat    1.1587        .23196        .11684E-04   -.87889    
   4  Prefactor     .69232        .13697        .44448E-04   -1.0383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78717e-10
Minuit parameter uncertainties:
  1  17.9757
  2  0.575909
  3  0.232163
  4  0.137038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840591': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7372.36304456
delta logL = 0.45412495543

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  6.923e-01  1.370e-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.159e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.62
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.70 +/- 0.58
Photon Flux (Free Index): 1.58e-07 +/- 8.00e-08
Energy Flux (Free Index): 3.81e-05 +/- 1.82e-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/840591/cmap_HighResolution_391737601_391996801_4FGL_J2324.7+0801_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='3.81e-05', photon_flux_error='6.26e-08', dlogl='4.54e-01', energy_flux='4.74e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-29 16:30:30.380701', photon_index_error2='0.58', photon_index2='2.70', ts='6.67', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='1.22', time_epoch_completed='1632958230.38', return_code='0', job_id='840591', GAL2='0.69', EG2='1.16', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='8.00e-08', ts2='7.62', photon_index='2.23' WHERE bin_id='588' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 840591: <4FGL_J2324.7+0801_daily_bin588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin588 351.19 8.0282 391737601 391996801 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 :                                   669.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

