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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin883
RA = 351.19, Dec = 8.0282
tmin = 468201601, tmax = 468460801
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='842103', job_status='RUN', time_executed='2021-09-29 16:22:40.229792', time_epoch_executed='1632957760.23' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='883'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842103/ft1_4FGL_J2324.7+0801_daily_bin883.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842103/ft2_4FGL_J2324.7+0801_daily_bin883.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842103/ft1_4FGL_J2324.7+0801_daily_bin883.fits outfile=/scratch/kocevski/842103/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin883.fits ra=351.19 dec=8.0282 rad=12.0 tmin=468201601.0 tmax=468460801.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.45
user 3.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/842103/ft2_4FGL_J2324.7+0801_daily_bin883.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/842103/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin883.fits evtable="EVENTS" outfile="/scratch/kocevski/842103/ft1_filtered_4FGL_J2324.7+0801_daily_bin883.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/842103/ft1_filtered_4FGL_J2324.7+0801_daily_bin883.fits" evtable="EVENTS" scfile=/scratch/kocevski/842103/ft2_4FGL_J2324.7+0801_daily_bin883.fits sctable="SC_DATA" outfile=/scratch/kocevski/842103/ltcube_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.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/842103/ft2_4FGL_J2324.7+0801_daily_bin883.fits
.....................!
real 12.12
user 11.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842103/ft1_filtered_4FGL_J2324.7+0801_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/842103/ft2_4FGL_J2324.7+0801_daily_bin883.fits sctable="SC_DATA" expcube=/scratch/kocevski/842103/ltcube_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.fits outfile=/scratch/kocevski/842103/expmap_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.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/842103/ltcube_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.fits
.....................!
real 191.05
user 186.48
sys 4.22

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/842103/ft1_filtered_4FGL_J2324.7+0801_daily_bin883.fits scfile=/scratch/kocevski/842103/ft2_4FGL_J2324.7+0801_daily_bin883.fits outfile=/scratch/kocevski/842103/cmap_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842103/ft1_filtered_4FGL_J2324.7+0801_daily_bin883.fits scfile=/scratch/kocevski/842103/ft2_4FGL_J2324.7+0801_daily_bin883.fits outfile=/scratch/kocevski/842103/cmap_HighResolution_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.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.59
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842103/ft1_filtered_4FGL_J2324.7+0801_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/842103/ft2_4FGL_J2324.7+0801_daily_bin883.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842103/Model_4FGL_J2324.7+0801_daily_bin883.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/842103/ft1_filtered_4FGL_J2324.7+0801_daily_bin883.fits.....................!
real 100.40
user 98.22
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.5892       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.408       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.024       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2971       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28926E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2436       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1372       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.181       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.631       1.0000         .10000E-03   10000.    
    18 'norm      '    24.091       1.0000         .10000E-03   10000.    
    19 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.924       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.218       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55218       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8797.345     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2418 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3642        .62796E-05** at limit **
   2  Prefactor     8.5895        .48838        .12001E-07    .13592E-02
   3  norm          .10000E-03    6.8893        .23981E-05** at limit **
   4  Prefactor     11.390        1.6822       -.95882E-06    .99766E-03
   5  Prefactor     .10003E-03    5.5513        .11576E-04** at limit **
   6  Prefactor     13.020        1.5718        .11804E-05   -.17612E-02
   7  Prefactor     9.2966        1.4886        .30640E-06    .91342E-03
   8  Prefactor     .11684E-03    88.047       -.20989E-04** at limit **
   9  norm          3.2428        1.3933       -.17915E-06    .27560E-03
  10  Prefactor     .10007E-03    5.4334       -.14934E-04** at limit **
  11  Prefactor     6.2283        5.2749       -.40885E-06    .72270E-03
  12  Prefactor     44.181        1.0650        .15057E-06   -.42951E-03
  13  norm          8.4641        1.0680        .37735E-06    .16852E-03
  14  Prefactor     .10000E-03    2.8243        .74425E-07** at limit **
  15  Prefactor     .13178E-03    36.923        .11468E-04** at limit **
  16  Prefactor     3.0599        10.329        .92532E-05    .27979E-02
  17  Prefactor     34.625        1.0704        .71246E-07   -.62005E-03
  18  norm          24.087        1.3056       -.47206E-06    .59817E-03
  19  norm          .10001E-03    5.8779       -.64472E-05** at limit **
  20  Prefactor     .10000E-03    3.9507        .35935E-06** at limit **
  21  Prefactor     25.913        1.4653       -.72911E-06    .28554E-02
  22  Prefactor     21.211        1.5350        .82577E-06   -.23474E-02
  23  Prefactor     .10000E-03    1.6102        .42363E-06** at limit **
  24  Normalizat    .55244        .24770       -.21427E-05    .12770E-03
  25  Prefactor     1.1688        .15949        .80181E-06    .19065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 8.58948
  norm       = 0.000100003
  Prefactor  = 11.39
  Prefactor  = 0.000100027
  Prefactor  = 13.0202
  Prefactor  = 9.2966
  Prefactor  = 0.000116836
  norm       = 3.24282
  Prefactor  = 0.000100068
  Prefactor  = 6.22831
  Prefactor  = 44.1807
  norm       = 8.46408
  Prefactor  = 0.0001
  Prefactor  = 0.000131784
  Prefactor  = 3.05986
  Prefactor  = 34.625
  norm       = 24.0871
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 25.9133
  Prefactor  = 21.2106
  Prefactor  = 0.0001
  Normalizat = 0.552441
  Prefactor  = 1.16875
 **********
 **   18 **HESSE 
 **********

 FCN=   8797.345     FROM HESSE     STATUS=OK           485 CALLS     2903 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5895        .49093        .34098E-02   -1.5122    
   3  norm          .10000E-03    6.9511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.390        28.343        .29652E-02   -1.5033    
   5  Prefactor     .10003E-03    5.8915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.020        16.443        .27748E-02   -1.4986    
   7  Prefactor     9.2966        9.8161        .32860E-02   -1.5098    
   8  Prefactor     .11684E-03    4.5409        .91667E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2428        1.4024        .56223E-02   -1.5348    
  10  Prefactor     .10007E-03    5.9949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2283        21.594        .40514E-02   -1.5209    
  12  Prefactor     44.181        40.797        .15079E-02   -1.4378    
  13  norm          8.4641        7.3104        .34450E-02   -1.5126    
  14  Prefactor     .10000E-03    2.7973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13178E-03    107.17        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0599        11.048        .57859E-02   -1.5358    
  17  Prefactor     34.625        28.212        .17024E-02   -1.4530    
  18  norm          24.087        17.125        .20403E-02   -1.4726    
  19  norm          .10001E-03    9.5301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.913        42.294        .19670E-02   -1.4689    
  22  Prefactor     21.211        21.429        .21738E-02   -1.4787    
  23  Prefactor     .10000E-03    1.6101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .55244        .24462        .11009       -1.1004    
  25  Prefactor     1.1688        .14369        .50959E-01   -.87298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37829e-07
Minuit parameter uncertainties:
  1  0.000265768
  2  0.490928
  3  0.000275739
  4  28.3765
  5  0.000793163
  6  16.4483
  7  9.81784
  8  0.0174887
  9  1.40243
  10  0.00127668
  11  21.6207
  12  40.823
  13  7.31115
  14  1.6945e-06
  15  0.116938
  16  11.0555
  17  28.2228
  18  17.128
  19  0.000607929
  20  7.04432e-05
  21  42.3433
  22  21.4363
  23  1.18384e-05
  24  0.245101
  25  0.143739
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.001e-04  1.277e-03  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:  1.169e+00  1.437e-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:  5.524e-01  2.451e-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: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842103/likelihoodResults_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.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) = 8797.34600489
delta logL = -0.000788760093201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8797.34521614
delta logL = -1.43536453834e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2243       1.0000          .0000       10.000    
     3 'Normalizat'    .55241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1688       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=   8797.345     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4145        .90712E-02** at limit **
   2  Index         2.2208        5.3869        .50000        .48130E-05
   3  Normalizat    .55244        .46322E-02    .11009        .69909E-04
   4  Prefactor     1.1688        .30320E-02    .50959E-01    .29038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22076
  Normalizat = 0.552439
  Prefactor  = 1.16875
 **********
 **   18 **HESSE 
 **********

 FCN=   8797.345     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2208        5.6634        .50000       -.58938    
   3  Normalizat    .55244        .16813E-01    .48840E-03   -1.1004    
   4  Prefactor     1.1688        .11049E-01    .22526E-03   -.87298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08423e-07
Minuit parameter uncertainties:
  1  2.36357e-05
  2  286.046
  3  0.0168128
  4  0.0110486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842103': 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) = 8797.34521611
delta logL = 1.41008058563e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.169e+00  1.105e-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:  5.524e-01  1.681e-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/842103/cmap_HighResolution_468201601_468460801_4FGL_J2324.7+0801_daily_bin883.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-29 16:36:52.972031', job_id='842103', GAL2='1.17', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632958612.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='883' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:36:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 842103: <4FGL_J2324.7+0801_daily_bin883> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin883 351.19 8.0282 468201601 468460801 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 :                                   851.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

