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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin544
RA = 351.19, Dec = 8.0282
tmin = 380332801, tmax = 380592001
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='839421', job_status='RUN', time_executed='2021-09-29 16:11:35.294586', time_epoch_executed='1632957095.29' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839421/ft1_4FGL_J2324.7+0801_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839421/ft2_4FGL_J2324.7+0801_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839421/ft1_4FGL_J2324.7+0801_daily_bin544.fits outfile=/scratch/kocevski/839421/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin544.fits ra=351.19 dec=8.0282 rad=12.0 tmin=380332801.0 tmax=380592001.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.47
user 3.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839421/ft2_4FGL_J2324.7+0801_daily_bin544.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/839421/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin544.fits evtable="EVENTS" outfile="/scratch/kocevski/839421/ft1_filtered_4FGL_J2324.7+0801_daily_bin544.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839421/ft1_filtered_4FGL_J2324.7+0801_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/839421/ft2_4FGL_J2324.7+0801_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/839421/ltcube_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.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/839421/ft2_4FGL_J2324.7+0801_daily_bin544.fits
.....................!
real 11.85
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839421/ft1_filtered_4FGL_J2324.7+0801_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/839421/ft2_4FGL_J2324.7+0801_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/839421/ltcube_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.fits outfile=/scratch/kocevski/839421/expmap_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.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/839421/ltcube_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.fits
.....................!
real 191.09
user 185.80
sys 4.90

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/839421/ft1_filtered_4FGL_J2324.7+0801_daily_bin544.fits scfile=/scratch/kocevski/839421/ft2_4FGL_J2324.7+0801_daily_bin544.fits outfile=/scratch/kocevski/839421/cmap_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839421/ft1_filtered_4FGL_J2324.7+0801_daily_bin544.fits scfile=/scratch/kocevski/839421/ft2_4FGL_J2324.7+0801_daily_bin544.fits outfile=/scratch/kocevski/839421/cmap_HighResolution_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839421/ft1_filtered_4FGL_J2324.7+0801_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/839421/ft2_4FGL_J2324.7+0801_daily_bin544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839421/Model_4FGL_J2324.7+0801_daily_bin544.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/839421/ft1_filtered_4FGL_J2324.7+0801_daily_bin544.fits.....................!
real 77.07
user 75.71
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3065       1.0000         .10000E-03   10000.    
     3 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0600       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.696       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10596E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3964       1.0000         .10000E-03   10000.    
    19 'norm      '    .14412E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .80856E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.174       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.350       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1222       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88576       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=   7052.906     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2413 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.885       -.27651E-06** at limit **
   2  Prefactor     2.3065        .27971       -.25936E-07   -.82041E-03
   3  norm          .10000E-03    5.1740       -.63218E-07** at limit **
   4  Prefactor     4.3863        1.6076       -.16757E-07   -.12186E-03
   5  Prefactor     4.0582        3.6565       -.13634E-06   -.65521E-02
   6  Prefactor     .10000E-03    6.0767        .31564E-06** at limit **
   7  Prefactor     .10000E-03    7.5381       -.51099E-06** at limit **
   8  Prefactor     10.700        1.3703       -.61945E-07    .12692E-02
   9  norm          2.8085        1.3964       -.32957E-07    .43443E-03
  10  Prefactor     .10000E-03    3.6544       -.67451E-07** at limit **
  11  Prefactor     5.1486        2.4044        .12497E-06   -.23812E-02
  12  Prefactor     .10004E-03    19.284        .22221E-06** at limit **
  13  norm          .10000E-03    3.9099        .74011E-07** at limit **
  14  Prefactor     8.5833        2.9029       -.19956E-06   -.82255E-04
  15  Prefactor     .17008E-02    174.66       -.21730E-05** at limit **
  16  Prefactor     .10015E-03    13.444        .54954E-06** at limit **
  17  Prefactor     .10023E-03    9.8995        .18547E-05** at limit **
  18  norm          2.3951        1.0252       -.69193E-08    .31661E-04
  19  norm          .10000E-03    32.727       -.30691E-05** at limit **
  20  Prefactor     4.2397        4.7655        .22645E-06   -.80204E-04
  21  Prefactor     .23683E-03    435.49       -.21630E-05** at limit **
  22  Prefactor     28.167        2.0211        .37882E-07   -.36499E-02
  23  Prefactor     10.351        1.0212        .97502E-08    .11503E-03
  24  Normalizat    1.1222        .24403        .43820E-05    .83008E-03
  25  Prefactor     .88585        .15426       -.10835E-05    .86122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 2.30653
  norm       = 0.0001
  Prefactor  = 4.38626
  Prefactor  = 4.05818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6997
  norm       = 2.80846
  Prefactor  = 0.0001
  Prefactor  = 5.1486
  Prefactor  = 0.000100039
  norm       = 0.0001
  Prefactor  = 8.58329
  Prefactor  = 0.00170076
  Prefactor  = 0.000100152
  Prefactor  = 0.000100231
  norm       = 2.39511
  norm       = 0.0001
  Prefactor  = 4.23971
  Prefactor  = 0.000236834
  Prefactor  = 28.1665
  Prefactor  = 10.3513
  Normalizat = 1.1222
  Prefactor  = 0.885849
 **********
 **   18 **HESSE 
 **********

 FCN=   7052.906     FROM HESSE     STATUS=OK           483 CALLS     2896 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3065        .28013        .33721E-02   -1.5404    
   3  norm          .10000E-03    5.1706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3863        85.128        .48043E-02   -1.5289    
   5  Prefactor     4.0582        4.4029        .50026E-02   -1.5305    
   6  Prefactor     .10000E-03    6.0490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.700        8.1256        .30627E-02   -1.5054    
   9  norm          2.8085        1.4008        .60694E-02   -1.5373    
  10  Prefactor     .10000E-03    3.6395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1486        15.618        .44255E-02   -1.5254    
  12  Prefactor     .10004E-03    22.746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5833        6.1711        .34209E-02   -1.5122    
  15  Prefactor     .17008E-02    1026.2        .90759E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10015E-03    16.909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10023E-03    19.331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3951        8.2546        .66133E-02   -1.5398    
  19  norm          .10000E-03    32.885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2397        4.7931        .48928E-02   -1.5296    
  21  Prefactor     .23683E-03    28.200        .13590       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.167        23.784        .18869E-02   -1.4646    
  23  Prefactor     10.351        8.5816        .31136E-02   -1.5064    
  24  Normalizat    1.1222        .21539        .70779E-01   -.89042    
  25  Prefactor     .88585        .13174        .44823E-01   -.96637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62465e-06
Minuit parameter uncertainties:
  1  0.000499218
  2  0.280132
  3  1.37728e-06
  4  38.7099
  5  4.40321
  6  2.09049e-05
  7  4.60034e-05
  8  8.12641
  9  1.40086
  10  4.29564e-06
  11  15.6302
  12  0.00188183
  13  9.19306e-06
  14  6.17156
  15  2.60937
  16  0.00320456
  17  0.00422808
  18  8.25856
  19  0.000144915
  20  4.7935
  21  0.124296
  22  23.7922
  23  8.58262
  24  0.215561
  25  0.131788
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.296e-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:  8.858e-01  1.318e-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.122e+00  2.156e-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: 5.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839421/likelihoodResults_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.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) = 7052.90690433
delta logL = -0.00130202582295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7052.90560227
delta logL = 3.46299202647e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2185       1.0000          .0000       10.000    
     3 'Normalizat'    1.1222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88586       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7052.906     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10106E-03    78.440        .15702E-02** at limit **
   2  Index         2.1406        6.9711        .50000        .17262E-04
   3  Normalizat    1.1222        .25008E-01    .31318E-03   -.77683E-05
   4  Prefactor     .88585        .15955E-01    .22077E-03   -.58706E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7052.906     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      370 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10106E-03    78.440        .35556E-03** at limit **
   2  Index         2.1406        6.9711        .49704E-03    .17262E-04
   3  Normalizat    1.1222        .25008E-01    .42392E-05   -.77683E-05
   4  Prefactor     .88585        .15955E-01    .33069E-05   -.58706E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7052.906     FROM MIGRAD    STATUS=FAILED        81 CALLS      451 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    395.22        .62809E-03** at limit **
   2  Index         1.8296        5.8806        .50000       -.97989E-06
   3  Normalizat    1.1222        .61740E-01    .25055E-05    .96196E-04
   4  Prefactor     .88585        .39365E-01    .17661E-05    .14161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82963
  Normalizat = 1.1222
  Prefactor  = 0.88585
 **********
 **   18 **HESSE 
 **********

 FCN=   7052.906     FROM HESSE     STATUS=OK            27 CALLS      478 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.171        .12562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8296        5.6568        .50000       -.68681    
   3  Normalizat    1.1222        .23702        .50109E-06   -.89042    
   4  Prefactor     .88585        .15114        .35323E-06   -.96637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81212e-09
Minuit parameter uncertainties:
  1  4.16591e-06
  2  244.576
  3  0.237242
  4  0.151215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839421': 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): 1
logL (Free Index) = 7052.90560123
delta logL = 1.07880623545e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.166e-06  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.830e+00  2.446e+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:  8.859e-01  1.512e-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.122e+00  2.372e-01  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/839421/cmap_HighResolution_380332801_380592001_4FGL_J2324.7+0801_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-09-29 16:23:28.161620', job_id='839421', GAL2='0.89', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632957808.16', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='544' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:23:28 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin544 351.19 8.0282 380332801 380592001 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            778 sec.

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

