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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin709
RA = 351.19, Dec = 8.0282
tmin = 423100801, tmax = 423360001
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='840769', job_status='RUN', time_executed='2021-09-29 16:18:04.902726', time_epoch_executed='1632957484.9' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840769/ft1_4FGL_J2324.7+0801_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840769/ft2_4FGL_J2324.7+0801_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840769/ft1_4FGL_J2324.7+0801_daily_bin709.fits outfile=/scratch/kocevski/840769/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin709.fits ra=351.19 dec=8.0282 rad=12.0 tmin=423100801.0 tmax=423360001.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 4.99
user 4.68
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840769/ft2_4FGL_J2324.7+0801_daily_bin709.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/840769/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/840769/ft1_filtered_4FGL_J2324.7+0801_daily_bin709.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840769/ft1_filtered_4FGL_J2324.7+0801_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/840769/ft2_4FGL_J2324.7+0801_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/840769/ltcube_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.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/840769/ft2_4FGL_J2324.7+0801_daily_bin709.fits
.....................!
real 11.95
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840769/ft1_filtered_4FGL_J2324.7+0801_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/840769/ft2_4FGL_J2324.7+0801_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/840769/ltcube_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.fits outfile=/scratch/kocevski/840769/expmap_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.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/840769/ltcube_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.fits
.....................!
real 191.88
user 186.16
sys 5.17

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/840769/ft1_filtered_4FGL_J2324.7+0801_daily_bin709.fits scfile=/scratch/kocevski/840769/ft2_4FGL_J2324.7+0801_daily_bin709.fits outfile=/scratch/kocevski/840769/cmap_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840769/ft1_filtered_4FGL_J2324.7+0801_daily_bin709.fits scfile=/scratch/kocevski/840769/ft2_4FGL_J2324.7+0801_daily_bin709.fits outfile=/scratch/kocevski/840769/cmap_HighResolution_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840769/ft1_filtered_4FGL_J2324.7+0801_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/840769/ft2_4FGL_J2324.7+0801_daily_bin709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840769/Model_4FGL_J2324.7+0801_daily_bin709.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/840769/ft1_filtered_4FGL_J2324.7+0801_daily_bin709.fits.....................!
real 88.88
user 87.41
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0976       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9138       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.484       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.508       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.118       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49125       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.070       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0543       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3664       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65853       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=   7669.269     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2901 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0910        23.708        .12219E-05   -.78187E-05
   2  Prefactor     5.9139        .46115       -.32401E-08    .10307E-02
   3  norm          2.2643        3.2264        .47314E-06   -.37986E-03
   4  Prefactor     .10000E-03    7.9626        .25727E-07** at limit **
   5  Prefactor     10.485        9.3654        .31950E-07    .87608E-04
   6  Prefactor     6.1244        10.517       -.81297E-08    .65282E-04
   7  Prefactor     48.508        23.270        .23170E-06    .32558E-05
   8  Prefactor     11.509        9.2269       -.15123E-07    .90658E-04
   9  norm          2.2214        1.0762       -.78923E-08   -.39860E-05
  10  Prefactor     .10000E-03    3.4504       -.12308E-06** at limit **
  11  Prefactor     16.121        16.711       -.72918E-08    .57087E-04
  12  Prefactor     .10000E-03    31.979        .39078E-06** at limit **
  13  norm          19.808        12.216        .22341E-05    .13193E-02
  14  Prefactor     .46992        12.927       -.40269E-05    .61342E-03
  15  Prefactor     .10000E-03    69.135        .53659E-05** at limit **
  16  Prefactor     11.064        12.031        .10885E-06   -.99768E-04
  17  Prefactor     .10000E-03    16.454        .42390E-07** at limit **
  18  norm          .10000E-03    4.8829       -.54809E-07** at limit **
  19  norm          .10000E-03    20.411        .94930E-06** at limit **
  20  Prefactor     .10000E-03    1.2697        .14072E-07** at limit **
  21  Prefactor     .10000E-03    155.74        .30358E-06** at limit **
  22  Prefactor     .10000E-03    20.131       -.91258E-06** at limit **
  23  Prefactor     4.0546        5.3063       -.75219E-08    .24927E-04
  24  Normalizat    1.3665        .22294       -.31694E-06    .48526E-03
  25  Prefactor     .65852        .13097       -.37733E-07    .41406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.09096
  Prefactor  = 5.91391
  norm       = 2.26431
  Prefactor  = 0.0001
  Prefactor  = 10.4847
  Prefactor  = 6.12435
  Prefactor  = 48.5081
  Prefactor  = 11.509
  norm       = 2.22142
  Prefactor  = 0.0001
  Prefactor  = 16.1206
  Prefactor  = 0.0001
  norm       = 19.8084
  Prefactor  = 0.469921
  Prefactor  = 0.0001
  Prefactor  = 11.0638
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.05457
  Normalizat = 1.36645
  Prefactor  = 0.658522
 **********
 **   18 **HESSE 
 **********

 FCN=   7669.269     FROM HESSE     STATUS=OK           429 CALLS     3330 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0910        23.679        .15057E-03   -1.5175    
   2  Prefactor     5.9139        .46267        .15587E-04   -1.5222    
   3  norm          2.2643        10.542        .13649E-02   -1.5407    
   4  Prefactor     .10000E-03    7.9640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.485        9.3737        .12375E-03   -1.5060    
   6  Prefactor     6.1244        10.515        .16223E-03   -1.5213    
   7  Prefactor     48.508        23.276        .57573E-04   -1.4314    
   8  Prefactor     11.509        9.2255        .11809E-03   -1.5029    
   9  norm          2.2214        1.0733        .61105E-04   -1.5410    
  10  Prefactor     .10000E-03    3.4583        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.121        16.709        .99760E-04   -1.4905    
  12  Prefactor     .10000E-03    32.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.808        13.880        .90085E-04   -1.4818    
  14  Prefactor     .46992        62.399        .41690E-02   -1.5571    
  15  Prefactor     .10000E-03    67.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.064        12.157        .60206E-03   -1.5043    
  17  Prefactor     .10000E-03    16.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    20.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.2706        .96330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    157.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.0546        5.3021        .20025E-03   -1.5305    
  24  Normalizat    1.3665        .26890        .31587E-03   -.81604    
  25  Prefactor     .65852        .15783        .26542E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67253e-09
Minuit parameter uncertainties:
  1  23.7105
  2  0.462671
  3  9.77409
  4  7.24683e-07
  5  9.37497
  6  10.5186
  7  23.2807
  8  9.22669
  9  1.07329
  10  4.89723e-06
  11  16.7141
  12  1.76318e-05
  13  13.8825
  14  10.8404
  15  0.000351306
  16  12.1594
  17  1.40193e-05
  18  4.65762e-06
  19  3.92904e-05
  20  1.52379e-07
  21  2.53826e-05
  22  4.33303e-05
  23  5.3027
  24  0.269178
  25  0.157941
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.897e-06  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.585e-01  1.579e-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.366e+00  2.692e-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: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840769/likelihoodResults_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.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) = 7669.27081789
delta logL = -0.00136665066111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7669.26945115
delta logL = 8.84792825673e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2113       1.0000          .0000       10.000    
     3 'Normalizat'    1.3665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65851       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=   7669.269     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    43.479        .16066E-02** at limit **
   2  Index         2.1508        5.9380        .50000        .33523E-04
   3  Normalizat    1.3664        .19773E-01    .31587E-03   -.39231E-04
   4  Prefactor     .65852        .12038E-01    .26542E-03    .23901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101268
  Index      = 2.15081
  Normalizat = 1.36645
  Prefactor  = 0.658524
 **********
 **   18 **HESSE 
 **********

 FCN=   7669.269     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10127E-03    184.97        .32133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1508        5.9437        .50000       -.60631    
   3  Normalizat    1.3664        .42834E-01    .12635E-04   -.81604    
   4  Prefactor     .65852        .26075E-01    .10617E-04   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.76944e-08
Minuit parameter uncertainties:
  1  0.0307271
  2  544.765
  3  0.0428348
  4  0.0260753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840769': 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) = 7669.26945073
delta logL = 5.13017766934e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.013e-04  3.073e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.151e+00  5.448e+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:  6.585e-01  2.608e-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.366e+00  4.283e-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/840769/cmap_HighResolution_423100801_423360001_4FGL_J2324.7+0801_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-29 16:31:28.351193', job_id='840769', GAL2='0.66', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632958288.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='709' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:31:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 840769: <4FGL_J2324.7+0801_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin709 351.19 8.0282 423100801 423360001 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 :                                   802.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

