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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin331
RA = 351.19, Dec = 8.0282
tmin = 325123201, tmax = 325382401
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='838115', job_status='RUN', time_executed='2021-09-29 16:06:18.376146', time_epoch_executed='1632956778.38' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838115/ft1_4FGL_J2324.7+0801_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838115/ft2_4FGL_J2324.7+0801_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838115/ft1_4FGL_J2324.7+0801_daily_bin331.fits outfile=/scratch/kocevski/838115/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin331.fits ra=351.19 dec=8.0282 rad=12.0 tmin=325123201.0 tmax=325382401.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.60
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838115/ft1_filtered_4FGL_J2324.7+0801_daily_bin331.fits" evtable="EVENTS" scfile=/scratch/kocevski/838115/ft2_4FGL_J2324.7+0801_daily_bin331.fits sctable="SC_DATA" outfile=/scratch/kocevski/838115/ltcube_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.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/838115/ft2_4FGL_J2324.7+0801_daily_bin331.fits
.....................!
real 11.78
user 11.47
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838115/ft1_filtered_4FGL_J2324.7+0801_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/838115/ft2_4FGL_J2324.7+0801_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/838115/ltcube_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.fits outfile=/scratch/kocevski/838115/expmap_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.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/838115/ltcube_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.fits
.....................!
real 189.93
user 184.97
sys 4.65

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/838115/ft1_filtered_4FGL_J2324.7+0801_daily_bin331.fits scfile=/scratch/kocevski/838115/ft2_4FGL_J2324.7+0801_daily_bin331.fits outfile=/scratch/kocevski/838115/cmap_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838115/ft1_filtered_4FGL_J2324.7+0801_daily_bin331.fits scfile=/scratch/kocevski/838115/ft2_4FGL_J2324.7+0801_daily_bin331.fits outfile=/scratch/kocevski/838115/cmap_HighResolution_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.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/838115/ft1_filtered_4FGL_J2324.7+0801_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/838115/ft2_4FGL_J2324.7+0801_daily_bin331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838115/Model_4FGL_J2324.7+0801_daily_bin331.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/838115/ft1_filtered_4FGL_J2324.7+0801_daily_bin331.fits.....................!
real 74.55
user 73.25
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9791       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9712       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2863       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.700       1.0000         .10000E-03   10000.    
    13 'norm      '    17.756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    139.32       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2793       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9920       1.0000         .10000E-03   10000.    
    18 'norm      '    16.548       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.459       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6105       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82254       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=   6847.286     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2874 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0047        .33004E-06** at limit **
   2  Prefactor     1.9791        .25312        .96343E-08   -.26606E-02
   3  norm          .10000E-03    11.769        .55523E-06** at limit **
   4  Prefactor     .10000E-03    29.702        .11935E-06** at limit **
   5  Prefactor     1.9706        3.9895        .32196E-06   -.32471E-04
   6  Prefactor     .10000E-03    5.0394        .29014E-06** at limit **
   7  Prefactor     37.844        23.342        .23212E-06   -.99840E-04
   8  Prefactor     .10000E-03    4.0125        .13301E-05** at limit **
   9  norm          1.2862        1.0265       -.41179E-07   -.49333E-03
  10  Prefactor     .10000E-03    3.6177       -.60592E-06** at limit **
  11  Prefactor     .10000E-03    5.2126       -.43357E-07** at limit **
  12  Prefactor     48.693        54.959        .24845E-06   -.10750E-03
  13  norm          17.769        10.138       -.16654E-05   -.16338E-02
  14  Prefactor     .10000E-03    10.639        .15280E-05** at limit **
  15  Prefactor     139.41        182.59       -.99194E-05    .81940E-04
  16  Prefactor     4.2780        13.587       -.32539E-05   -.43594E-05
  17  Prefactor     1.9545        108.99        .15618E-04   -.10372E-03
  18  norm          16.550        12.292        .16086E-06   -.74583E-04
  19  norm          .10000E-03    8.6651       -.31057E-06** at limit **
  20  Prefactor     1.9031        6.0635        .10423E-04   -.33269E-03
  21  Prefactor     39.452        47.363       -.10856E-05   -.23747E-03
  22  Prefactor     .10000E-03    10.012       -.95605E-06** at limit **
  23  Prefactor     2.6102        7.5144        .67508E-06   -.20648E-04
  24  Normalizat    1.0756        .21054       -.34069E-05   -.75340E-03
  25  Prefactor     .82258        .12449        .54125E-07   -.11395E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.97912
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97063
  Prefactor  = 0.0001
  Prefactor  = 37.844
  Prefactor  = 0.0001
  norm       = 1.28625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.6925
  norm       = 17.769
  Prefactor  = 0.000100003
  Prefactor  = 139.405
  Prefactor  = 4.27804
  Prefactor  = 1.95453
  norm       = 16.5496
  norm       = 0.0001
  Prefactor  = 1.90307
  Prefactor  = 39.4519
  Prefactor  = 0.0001
  Prefactor  = 2.61022
  Normalizat = 1.07561
  Prefactor  = 0.822576
 **********
 **   18 **HESSE 
 **********

 FCN=   6847.286     FROM HESSE     STATUS=OK           415 CALLS     3289 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9791        .25335        .14321E-04   -1.5427    
   3  norm          .10000E-03    11.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9706        3.9625        .22748E-03   -1.5427    
   6  Prefactor     .10000E-03    5.0650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.844        23.368        .65153E-04   -1.4477    
   8  Prefactor     .10000E-03    10.983        .31933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2862        1.0286        .35601E-03   -1.5481    
  10  Prefactor     .10000E-03    3.6262        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.693        54.911        .57462E-04   -1.4311    
  13  norm          17.769        10.186        .95049E-04   -1.4865    
  14  Prefactor     .10000E-03    11.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     139.41        181.99        .17064E-03   -1.3341    
  16  Prefactor     4.2780        13.514        .97380E-03   -1.5294    
  17  Prefactor     1.9545        109.57        .29354E-03   -1.5428    
  18  norm          16.550        12.293        .98456E-04   -1.4894    
  19  norm          .10000E-03    8.6674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9031        6.1147        .14862E-02   -1.5432    
  21  Prefactor     39.452        47.446        .63809E-04   -1.4451    
  22  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.6102        7.5006        .25247E-03   -1.5385    
  24  Normalizat    1.0756        .24650        .30373E-03   -.90539    
  25  Prefactor     .82258        .14609        .21392E-03   -.98901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89052e-09
Minuit parameter uncertainties:
  1  4.5275e-05
  2  0.253349
  3  5.65149e-05
  4  0.000233627
  5  3.96305
  6  1.34666e-05
  7  23.3736
  8  4.99961e-05
  9  1.02864
  10  5.79429e-05
  11  2.8415e-05
  12  54.968
  13  10.1871
  14  0.000353911
  15  182.73
  16  13.5241
  17  29.3242
  18  12.2953
  19  3.69667e-06
  20  6.11669
  21  47.4917
  22  1.25496e-05
  23  7.50326
  24  0.246767
  25  0.146157
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.794e-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:  8.226e-01  1.462e-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.076e+00  2.468e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838115/likelihoodResults_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.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) = 6847.28693066
delta logL = -0.00130766563416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6847.28562308
delta logL = -8.30932549434e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2116       1.0000          .0000       10.000    
     3 'Normalizat'    1.0757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82254       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=   6847.286     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10070E-03    34.307        .15533E-02** at limit **
   2  Index         2.1723        8.8850        .50000        .32273E-04
   3  Normalizat    1.0756        .15788E-01    .30372E-03    .88749E-04
   4  Prefactor     .82258        .99166E-02    .21392E-03    .10730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100697
  Index      = 2.17233
  Normalizat = 1.07561
  Prefactor  = 0.822578
 **********
 **   18 **HESSE 
 **********

 FCN=   6847.286     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10070E-03    149.37        .31066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1723        5.5286        .50000       -.60108    
   3  Normalizat    1.0756        .34184E-01    .12149E-04   -.90539    
   4  Prefactor     .82258        .21471E-01    .85569E-05   -.98901    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80825e-08
Minuit parameter uncertainties:
  1  0.0204584
  2  361.747
  3  0.034185
  4  0.0214715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838115': 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) = 6847.28562262
delta logL = 3.75765011995e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.007e-04  2.046e-02  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.172e+00  3.617e+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.226e-01  2.147e-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.076e+00  3.418e-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/838115/cmap_HighResolution_325123201_325382401_4FGL_J2324.7+0801_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-29 16:18:26.054534', job_id='838115', GAL2='0.82', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632957506.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='331' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:18:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 838115: <4FGL_J2324.7+0801_daily_bin331> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin331 351.19 8.0282 325123201 325382401 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 :                                   717.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

