/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 195 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 = 7271
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin327
RA = 351.19, Dec = 8.0282
tmin = 324086401, tmax = 324345601
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='838108', job_status='RUN', time_executed='2021-09-29 16:09:18.744884', time_epoch_executed='1632956958.74' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838108/ft1_4FGL_J2324.7+0801_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838108/ft2_4FGL_J2324.7+0801_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838108/ft1_4FGL_J2324.7+0801_daily_bin327.fits outfile=/scratch/kocevski/838108/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin327.fits ra=351.19 dec=8.0282 rad=12.0 tmin=324086401.0 tmax=324345601.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.41
user 3.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838108/ft2_4FGL_J2324.7+0801_daily_bin327.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/838108/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin327.fits evtable="EVENTS" outfile="/scratch/kocevski/838108/ft1_filtered_4FGL_J2324.7+0801_daily_bin327.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.41
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838108/ft1_filtered_4FGL_J2324.7+0801_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/838108/ft2_4FGL_J2324.7+0801_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/838108/ltcube_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.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/838108/ft2_4FGL_J2324.7+0801_daily_bin327.fits
.....................!
real 8.98
user 8.69
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838108/ft1_filtered_4FGL_J2324.7+0801_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/838108/ft2_4FGL_J2324.7+0801_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/838108/ltcube_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.fits outfile=/scratch/kocevski/838108/expmap_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.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/838108/ltcube_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.fits
.....................!
real 145.12
user 141.14
sys 3.74

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/838108/ft1_filtered_4FGL_J2324.7+0801_daily_bin327.fits scfile=/scratch/kocevski/838108/ft2_4FGL_J2324.7+0801_daily_bin327.fits outfile=/scratch/kocevski/838108/cmap_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838108/ft1_filtered_4FGL_J2324.7+0801_daily_bin327.fits scfile=/scratch/kocevski/838108/ft2_4FGL_J2324.7+0801_daily_bin327.fits outfile=/scratch/kocevski/838108/cmap_HighResolution_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.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.45
user 0.31
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838108/ft1_filtered_4FGL_J2324.7+0801_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/838108/ft2_4FGL_J2324.7+0801_daily_bin327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838108/Model_4FGL_J2324.7+0801_daily_bin327.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/838108/ft1_filtered_4FGL_J2324.7+0801_daily_bin327.fits.....................!
real 68.71
user 67.54
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5869       1.0000         .10000E-03   10000.    
     3 'norm      '    14.703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13090E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2669       1.0000         .10000E-03   10000.    
     9 'norm      '    .59929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53949E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.898       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    94.583       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.313       1.0000         .10000E-03   10000.    
    18 'norm      '    47.164       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33575E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18424E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9161       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3897       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79209       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=   8356.327     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2987 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.965        21.607        .45094E-06   -.36054E-04
   2  Prefactor     1.5869        .25504       -.10415E-07    .87892E-03
   3  norm          14.702        14.572       -.52872E-08   -.43468E-04
   4  Prefactor     .10000E-03    15.279       -.47707E-06** at limit **
   5  Prefactor     13.061        7.3248       -.52996E-06    .19116E-03
   6  Prefactor     .10001E-03    8.2665       -.24495E-06** at limit **
   7  Prefactor     .10000E-03    5.2362       -.22324E-07** at limit **
   8  Prefactor     4.2657        7.2611       -.41170E-05    .16581E-03
   9  norm          .60076        .81922       -.23493E-06   -.18016E-02
  10  Prefactor     .10000E-03    4.5482        .12043E-05** at limit **
  11  Prefactor     39.215        25.456       -.90089E-06    .23996E-03
  12  Prefactor     35.907        33.972       -.17043E-05    .64747E-04
  13  norm          .10000E-03    3.8335        .38213E-06** at limit **
  14  Prefactor     6.0909        9.4645       -.66316E-05    .34734E-03
  15  Prefactor     94.577        103.09       -.45034E-05    .46710E-04
  16  Prefactor     .10000E-03    4.2154       -.15291E-07** at limit **
  17  Prefactor     40.324        24.242       -.33940E-05    .32146E-03
  18  norm          47.162        20.572        .73250E-08    .13238E-03
  19  norm          .10000E-03    5.8628       -.33065E-07** at limit **
  20  Prefactor     .10000E-03    1.3645       -.14690E-07** at limit **
  21  Prefactor     .10007E-03    17.263       -.93270E-06** at limit **
  22  Prefactor     .10005E-03    15.273        .12542E-07** at limit **
  23  Prefactor     1.9172        13.877       -.71599E-05   -.12198E-03
  24  Normalizat    1.3897        .21570        .42810E-05   -.49113E-04
  25  Prefactor     .79214        .12239        .17766E-06    .24852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9651
  Prefactor  = 1.58691
  norm       = 14.7021
  Prefactor  = 0.0001
  Prefactor  = 13.0607
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 4.26572
  norm       = 0.600764
  Prefactor  = 0.0001
  Prefactor  = 39.2154
  Prefactor  = 35.9071
  norm       = 0.0001
  Prefactor  = 6.09094
  Prefactor  = 94.5772
  Prefactor  = 0.0001
  Prefactor  = 40.3237
  norm       = 47.1622
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.000100051
  Prefactor  = 1.9172
  Normalizat = 1.38973
  Prefactor  = 0.792139
 **********
 **   18 **HESSE 
 **********

 FCN=   8356.327     FROM HESSE     STATUS=OK           437 CALLS     3424 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.965        21.666        .81821E-04   -1.4728    
   2  Prefactor     1.5869        .25589        .17342E-04   -1.5456    
   3  norm          14.702        14.576        .10445E-03   -1.4941    
   4  Prefactor     .10000E-03    15.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.061        7.3072        .11083E-03   -1.4985    
   6  Prefactor     .10001E-03    47.763        .49940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2657        7.2962        .19505E-03   -1.5295    
   9  norm          .60076        .70775        .93944E-03   -1.5553    
  10  Prefactor     .10000E-03    15.083        .37450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.215        25.340        .64007E-04   -1.4455    
  12  Prefactor     35.907        33.950        .66888E-04   -1.4509    
  13  norm          .10000E-03    3.8523        .17481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0909        9.5025        .16274E-03   -1.5214    
  15  Prefactor     94.577        102.86        .41326E-04   -1.3760    
  16  Prefactor     .10000E-03    4.2342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.324        23.999        .63132E-04   -1.4437    
  18  norm          47.162        20.559        .29193E-03   -1.4333    
  19  norm          .10000E-03    5.8665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.3705        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10007E-03    18.397        .12726       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    98.932        .67498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9172        14.509        .30024E-03   -1.5431    
  24  Normalizat    1.3897        .24738        .30553E-03   -.80926    
  25  Prefactor     .79214        .14303        .23783E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82989e-09
Minuit parameter uncertainties:
  1  21.6734
  2  0.255886
  3  14.58
  4  7.93896e-06
  5  7.30768
  6  0.00131727
  7  9.3986e-06
  8  7.29776
  9  0.707756
  10  8.04027e-05
  11  25.3465
  12  33.9684
  13  7.39345e-05
  14  9.50482
  15  103.05
  16  7.0722e-06
  17  24.0042
  18  20.5624
  19  3.28266e-06
  20  2.92491e-06
  21  0.00226504
  22  0.00447981
  23  10.5515
  24  0.247593
  25  0.143094
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  8.040e-05  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:  7.921e-01  1.431e-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.390e+00  2.476e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838108/likelihoodResults_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.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) = 8356.32772676
delta logL = -0.000313428565278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8356.32741353
delta logL = -1.95272150449e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2318       1.0000          .0000       10.000    
     3 'Normalizat'    1.3898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79211       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=   8356.327     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      224 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10881        .90712E-01** at limit **
   2  Index         2.2350        6.6306        .50000       -.13792E-05
   3  Normalizat    1.3897        .91708E-03    .69061E-01    .35245E-04
   4  Prefactor     .79214        .55937E-03    .43615E-01    .51086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23496
  Normalizat = 1.38973
  Prefactor  = 0.792137
 **********
 **   18 **HESSE 
 **********

 FCN=   8356.327     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      259 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.426        .33854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2350        8.4177        .50000       -.58597    
   3  Normalizat    1.3897        .77284E-02    .30553E-03   -.80926    
   4  Prefactor     .79214        .47165E-02    .23783E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17204e-09
Minuit parameter uncertainties:
  1  0.000103882
  2  93.1335
  3  0.00772836
  4  0.00471647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838108': 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) = 8356.32741333
delta logL = 3.37604433298e-09

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.039e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.235e+00  9.313e+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:  7.921e-01  4.716e-03  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.390e+00  7.728e-03  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/838108/cmap_HighResolution_324086401_324345601_4FGL_J2324.7+0801_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-29 16:19:48.069851', job_id='838108', GAL2='0.79', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632957588.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.38e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='327' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:19:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 838108: <4FGL_J2324.7+0801_daily_bin327> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin327> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:55 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:56 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:05:56 2021
Terminated at Wed Sep 29 16:19:48 2021
Results reported at Wed Sep 29 16:19:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin327 351.19 8.0282 324086401 324345601 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 :                                   624.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

