/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 171 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 = 7396
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin14
RA = 351.575, Dec = 1.2216
tmin = 242956801, tmax = 243216001
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='888624', job_status='RUN', time_executed='2021-09-29 18:43:40.175030', time_epoch_executed='1632966220.18' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888624/ft1_4FGL_J2326.2+0113_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888624/ft1_4FGL_J2326.2+0113_daily_bin14.fits outfile=/scratch/kocevski/888624/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin14.fits ra=351.575 dec=1.2216 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.42
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.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/888624/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin14.fits evtable="EVENTS" outfile="/scratch/kocevski/888624/ft1_filtered_4FGL_J2326.2+0113_daily_bin14.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888624/ft1_filtered_4FGL_J2326.2+0113_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/888624/ltcube_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.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/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits
.....................!
real 12.00
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888624/ft1_filtered_4FGL_J2326.2+0113_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/888624/ltcube_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.fits outfile=/scratch/kocevski/888624/expmap_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.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/888624/ltcube_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.fits
.....................!
real 189.18
user 184.67
sys 4.20

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/888624/ft1_filtered_4FGL_J2326.2+0113_daily_bin14.fits scfile=/scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits outfile=/scratch/kocevski/888624/cmap_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888624/ft1_filtered_4FGL_J2326.2+0113_daily_bin14.fits scfile=/scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits outfile=/scratch/kocevski/888624/cmap_HighResolution_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.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.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/888624/ft1_filtered_4FGL_J2326.2+0113_daily_bin14.fits', '/scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits', expMap='/scratch/kocevski/888624/expmap_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.fits', expCube='/scratch/kocevski/888624/ltcube_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/888624/Model_4FGL_J2326.2+0113_daily_bin14.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/888624/ft1_filtered_4FGL_J2326.2+0113_daily_bin14.fits
Spacecraft file(s): /scratch/kocevski/888624/ft2_4FGL_J2326.2+0113_daily_bin14.fits
Exposure map: /scratch/kocevski/888624/expmap_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.fits
Exposure cube: /scratch/kocevski/888624/ltcube_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/888624/Model_4FGL_J2326.2+0113_daily_bin14.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) = 7225.1870308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    23.360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6565       1.0000         .10000E-03   10000.    
     6 'Prefactor '    144.23       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9425       1.0000         .10000E-03   10000.    
     9 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.798       1.0000         .10000E-03   10000.    
    12 'norm      '    35.177       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    123.30       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15011E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.661       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2274       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.221       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.164       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97529       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0042       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=   7225.109     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2724 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.920        .19911E-07** at limit **
   2  norm          23.358        15.889        .16661E-06   -.14127E-04
   3  Prefactor     23.063        24.551        .12788E-06    .32170E-05
   4  Prefactor     .10000E-03    9.3734       -.70492E-06** at limit **
   5  Prefactor     9.6574        11.025        .28869E-07   -.57718E-05
   6  Prefactor     144.20        60.654        .59271E-06    .77808E-05
   7  Prefactor     .10000E-03    6.4212        .11745E-05** at limit **
   8  norm          1.9429        .92129       -.36131E-07   -.14798E-03
   9  norm          .10000E-03    2.5210        .36678E-06** at limit **
  10  Prefactor     .10000E-03    5.1716       -.10550E-06** at limit **
  11  Prefactor     13.798        46.913       -.12504E-05   -.99419E-05
  12  norm          35.181        12.110       -.17680E-06   -.19310E-04
  13  Prefactor     2.2286        6.1359        .11971E-05    .30062E-03
  14  Prefactor     123.28        122.61        .13151E-06    .25924E-05
  15  Prefactor     .10084E-03    13.774       -.78149E-06** at limit **
  16  Prefactor     30.663        26.569        .13774E-06   -.13751E-04
  17  norm          .10000E-03    41.879        .93252E-06** at limit **
  18  Prefactor     .10000E-03    44.289       -.96681E-06** at limit **
  19  Prefactor     5.2371        5.0284       -.69823E-06   -.14670E-03
  20  Prefactor     36.214        40.655        .16630E-06   -.14761E-04
  21  Prefactor     .10000E-03    9.2149        .45994E-06** at limit **
  22  Prefactor     21.176        17.339        .27779E-06   -.11602E-04
  23  Normalizat    .97477        .22655       -.17270E-05    .17766E-04
  24  Prefactor     1.0046        .14117        .48427E-06   -.21354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 23.3581
  Prefactor  = 23.0626
  Prefactor  = 0.0001
  Prefactor  = 9.65738
  Prefactor  = 144.203
  Prefactor  = 0.0001
  norm       = 1.94291
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7981
  norm       = 35.1809
  Prefactor  = 2.22863
  Prefactor  = 123.281
  Prefactor  = 0.000100844
  Prefactor  = 30.6633
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23711
  Prefactor  = 36.2143
  Prefactor  = 0.0001
  Prefactor  = 21.1759
  Normalizat = 0.974769
  Prefactor  = 1.00463
 **********
 **   18 **HESSE 
 **********

 FCN=   7225.109     FROM HESSE     STATUS=OK           405 CALLS     3129 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          23.358        15.921        .82877E-04   -1.4741    
   3  Prefactor     23.063        24.562        .83405E-04   -1.4747    
   4  Prefactor     .10000E-03    9.4362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6574        11.024        .12896E-03   -1.5086    
   6  Prefactor     144.20        60.772        .16775E-03   -1.3300    
   7  Prefactor     .10000E-03    6.3011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9429        .91862        .53698E-04   -1.5429    
   9  norm          .10000E-03    2.5281        .13138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.798        46.899        .10783E-03   -1.4965    
  12  norm          35.181        12.153        .67568E-04   -1.4521    
  13  Prefactor     2.2286        6.2990        .13766E-02   -1.5409    
  14  Prefactor     123.28        122.48        .18124E-03   -1.3483    
  15  Prefactor     .10084E-03    117.39        .46418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.663        26.570        .72359E-04   -1.4600    
  17  norm          .10000E-03    42.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2371        5.0844        .17071E-03   -1.5250    
  20  Prefactor     36.214        40.713        .66590E-04   -1.4504    
  21  Prefactor     .10000E-03    9.2550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.176        17.396        .87064E-04   -1.4787    
  23  Normalizat    .97477        .25816        .31640E-03   -.93881    
  24  Prefactor     1.0046        .16264        .21654E-03   -.92575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32241e-09
Minuit parameter uncertainties:
  1  2.23792e-05
  2  15.9242
  3  24.5727
  4  4.52432e-06
  5  11.0266
  6  60.7985
  7  4.0314e-05
  8  0.918622
  9  6.54709e-06
  10  7.56851e-06
  11  47.0251
  12  12.154
  13  6.30091
  14  122.732
  15  0.0199503
  16  26.5802
  17  0.000247181
  18  7.68587e-05
  19  5.08486
  20  40.7445
  21  3.258e-05
  22  17.4005
  23  0.258487
  24  0.162722
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.380e+01  4.703e+01  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.005e+00  1.627e-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:  9.748e-01  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/888624/likelihoodResults_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.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): 0
logL (Free Index) = 7224.70894757
delta logL = 0.400408922276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7224.68362804
delta logL = 0.425728456459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0241       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0783       1.0000          .0000       10.000    
     3 'Normalizat'    .93708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0164       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.

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

 FCN=   7224.684     FROM MIGRAD    STATUS=FAILED       100 CALLS      307 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0277        40.923        .15137E-03   -.18026E-05
   2  Index         3.0782        1.8238        .51244E-02    .52845E-03
   3  Normalizat    .93720        .23346        .32187E-03   -.63436E-04
   4  Prefactor     1.0164        .16028        .21532E-03   -.36959E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7224.684     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      390 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0277        40.923        .29023E-03   -1.5178    
   2  Index         3.0782        1.8238        .77400E-03   -.39451    
   3  Normalizat    .93720        .23346        .31753E-03   -.95165    
   4  Prefactor     1.0164        .16028        .19218E-03   -.92186    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7224.684     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      420 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0277        19.581        .60546E-05   -.16524E-04
   2  Index         3.0782        1.0713        .10249E-02    .38935E-05
   3  Normalizat    .93720        .23309        .12875E-04   -.19073E-04
   4  Prefactor     1.0164        .15983        .86130E-05   -.10560E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.02765
  Index      = 3.07823
  Normalizat = 0.937201
  Prefactor  = 1.01638
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.684     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0277        18.369        .12109E-05   -1.5178    
   2  Index         3.0782        1.0056        .40995E-04   -.39451    
   3  Normalizat    .93720        .23297        .25750E-05   -.95165    
   4  Prefactor     1.0164        .15973        .17226E-05   -.92186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46377e-12
Minuit parameter uncertainties:
  1  18.3841
  2  1.01371
  3  0.23322
  4  0.159806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888624': 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): 0
logL (Free Index) = 7224.68362762
delta logL = 0.425728873877

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  7.028e+00  1.838e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  3.078e+00  1.014e+00  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.016e+00  1.598e-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:  9.372e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 351.575 1.222

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/888624/cmap_HighResolution_242956801_243216001_4FGL_J2326.2+0113_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2021-09-29 18:55:21.049836', job_id='888624', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1632966921.05', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.26e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='14' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:55:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 888624: <4FGL_J2326.2+0113_daily_bin14> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin14> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:40 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:42 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:40:42 2021
Terminated at Wed Sep 29 18:55:21 2021
Results reported at Wed Sep 29 18:55:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin14 351.575 1.2216 242956801 243216001 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 :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

