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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin589
RA = 351.575, Dec = 1.2216
tmin = 391996801, tmax = 392256001
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='891571', job_status='RUN', time_executed='2021-09-29 18:54:09.072429', time_epoch_executed='1632966849.07' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891571/ft1_4FGL_J2326.2+0113_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891571/ft1_4FGL_J2326.2+0113_daily_bin589.fits outfile=/scratch/kocevski/891571/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin589.fits ra=351.575 dec=1.2216 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.36
user 5.07
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.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/891571/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/891571/ltcube_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.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/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits
.....................!
real 11.57
user 11.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/891571/ltcube_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.fits outfile=/scratch/kocevski/891571/expmap_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.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/891571/ltcube_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.fits
.....................!
real 190.58
user 185.78
sys 4.43

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2326.2+0113 @ 351.575 1.2216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits scfile=/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits outfile=/scratch/kocevski/891571/cmap_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.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.575 yref=1.2216 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits scfile=/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits outfile=/scratch/kocevski/891571/cmap_HighResolution_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.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.575 yref=1.2216 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891571/Model_4FGL_J2326.2+0113_daily_bin589.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/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits.....................!
real 68.88
user 67.58
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits', '/scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits', expMap='/scratch/kocevski/891571/expmap_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.fits', expCube='/scratch/kocevski/891571/ltcube_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/891571/Model_4FGL_J2326.2+0113_daily_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.2+0113'

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.628e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/891571/ft1_filtered_4FGL_J2326.2+0113_daily_bin589.fits
Spacecraft file(s): /scratch/kocevski/891571/ft2_4FGL_J2326.2+0113_daily_bin589.fits
Exposure map: /scratch/kocevski/891571/expmap_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.fits
Exposure cube: /scratch/kocevski/891571/ltcube_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/891571/Model_4FGL_J2326.2+0113_daily_bin589.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) = 6850.37053899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4145       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4873       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.594       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14951E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    91.705       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.699       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11385E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.372       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71429       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6850.368     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2782 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5041       -.41968E-07** at limit **
   2  norm          18.884        12.089        .17403E-06   -.22244E-04
   3  Prefactor     .10000E-03    8.2687       -.90369E-08** at limit **
   4  Prefactor     12.381        12.622       -.95699E-07   -.32019E-04
   5  Prefactor     12.297        15.863        .69212E-07   -.89930E-05
   6  Prefactor     7.2621        80.154        .38843E-05    .14167E-04
   7  Prefactor     1.4128        18.482       -.35520E-05    .99388E-04
   8  norm          5.4875        1.2683       -.27473E-08   -.39372E-03
   9  norm          .10000E-03    2.4159       -.61281E-06** at limit **
  10  Prefactor     .10000E-03    3.0568        .87409E-07** at limit **
  11  Prefactor     .10000E-03    21.648        .26609E-06** at limit **
  12  norm          20.586        11.157       -.10092E-05   -.72649E-03
  13  Prefactor     .10000E-03    51.323       -.54648E-05** at limit **
  14  Prefactor     .10000E-03    53.918        .22368E-05** at limit **
  15  Prefactor     .10000E-03    5.0398        .27923E-06** at limit **
  16  Prefactor     .10000E-03    10.375        .16766E-06** at limit **
  17  norm          .10000E-03    12.152        .16692E-06** at limit **
  18  Prefactor     91.646        56.159       -.10093E-05    .55781E-04
  19  Prefactor     .10000E-03    2.0933        .51414E-06** at limit **
  20  Prefactor     49.779        40.064       -.72101E-06   -.26079E-04
  21  Prefactor     .10000E-03    28.104        .92492E-06** at limit **
  22  Prefactor     14.387        13.433        .23164E-06   -.83940E-04
  23  Normalizat    .71362        .19402       -.19001E-05   -.22068E-03
  24  Prefactor     1.0001        .12890        .64785E-06   -.48814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.8835
  Prefactor  = 0.0001
  Prefactor  = 12.3809
  Prefactor  = 12.297
  Prefactor  = 7.26212
  Prefactor  = 1.41276
  norm       = 5.48753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.5856
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 91.6461
  Prefactor  = 0.0001
  Prefactor  = 49.7785
  Prefactor  = 0.0001
  Prefactor  = 14.3872
  Normalizat = 0.713619
  Prefactor  = 1.00014
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.368     FROM HESSE     STATUS=OK           395 CALLS     3177 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5054        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.884        12.101        .92202E-04   -1.4839    
   3  Prefactor     .10000E-03    8.2720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.381        12.620        .11382E-03   -1.5004    
   5  Prefactor     12.297        15.864        .11424E-03   -1.5006    
   6  Prefactor     7.2621        81.903        .14964E-03   -1.5169    
   7  Prefactor     1.4128        18.305        .36406E-03   -1.5470    
   8  norm          5.4875        1.2674        .42392E-04   -1.5239    
   9  norm          .10000E-03    2.4002        .12461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0630        .14134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.586        10.310        .88260E-04   -1.4800    
  13  Prefactor     .10000E-03    49.954        .33774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0785        .18137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     91.646        55.922        .41963E-04   -1.3790    
  19  Prefactor     .10000E-03    4.1105        .22586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.779        40.123        .56884E-04   -1.4296    
  21  Prefactor     .10000E-03    28.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.387        13.445        .10565E-03   -1.4949    
  23  Normalizat    .71362        .22034        .32166E-03   -1.0336    
  24  Prefactor     1.0001        .14725        .19580E-03   -.92725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08967e-10
Minuit parameter uncertainties:
  1  1.43808e-06
  2  12.1023
  3  3.64899e-06
  4  12.6228
  5  15.8697
  6  48.861
  7  10.1742
  8  1.26741
  9  2.12145e-05
  10  5.69965e-06
  11  1.44135e-05
  12  10.3105
  13  0.000645079
  14  0.000321221
  15  3.93079e-06
  16  1.58661e-05
  17  3.2212e-06
  18  55.9541
  19  7.45504e-05
  20  40.1451
  21  4.42897e-05
  22  13.4478
  23  0.220617
  24  0.147313
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.441e-05  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.000e+00  1.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.136e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891571/likelihoodResults_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.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) = 6850.36778021
delta logL = -0.00021980798374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6850.36756095
delta logL = -5.57346538699e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4036       1.0000          .0000       10.000    
     3 'Normalizat'    .71361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6850.368     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9.0531        .90712E-02** at limit **
   2  Index         2.3859        6.1276        .50000        .81399E-05
   3  Normalizat    .71361        .31723E-02    .72674E-01   -.14228E-03
   4  Prefactor     1.0001        .22664E-02    .45983E-01    .19468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.38586
  Normalizat = 0.713615
  Prefactor  = 1.00015
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.368     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    85.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3859        8.1625        .50000       -.55016    
   3  Normalizat    .71361        .97854E-02    .32166E-03   -1.0336    
   4  Prefactor     1.0001        .70031E-02    .19580E-03   -.92725    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45827e-07
Minuit parameter uncertainties:
  1  0.00175887
  2  175.291
  3  0.00978538
  4  0.00700313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891571': 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) = 6850.36756077
delta logL = -3.74519913748e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.759e-03  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.386e+00  1.753e+02  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.000e+00  7.003e-03  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.136e-01  9.785e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.575 1.222

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/891571/cmap_HighResolution_391996801_392256001_4FGL_J2326.2+0113_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-29 19:05:46.163700', job_id='891571', GAL2='1.00', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632967546.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-3.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='589' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 891571: <4FGL_J2326.2+0113_daily_bin589> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin589> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:50:44 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:50:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:50:46 2021
Terminated at Wed Sep 29 19:05:46 2021
Results reported at Wed Sep 29 19:05:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin589 351.575 1.2216 391996801 392256001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.2+0113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

