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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin555
RA = 351.575, Dec = 1.2216
tmin = 383184001, tmax = 383443201
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='891517', job_status='RUN', time_executed='2021-09-29 18:54:05.495195', time_epoch_executed='1632966845.5' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891517/ft1_4FGL_J2326.2+0113_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891517/ft2_4FGL_J2326.2+0113_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891517/ft1_4FGL_J2326.2+0113_daily_bin555.fits outfile=/scratch/kocevski/891517/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin555.fits ra=351.575 dec=1.2216 rad=12.0 tmin=383184001.0 tmax=383443201.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.39
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891517/ft1_filtered_4FGL_J2326.2+0113_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/891517/ft2_4FGL_J2326.2+0113_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/891517/ltcube_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.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/891517/ft2_4FGL_J2326.2+0113_daily_bin555.fits
.....................!
real 11.67
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891517/ft1_filtered_4FGL_J2326.2+0113_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/891517/ft2_4FGL_J2326.2+0113_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/891517/ltcube_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.fits outfile=/scratch/kocevski/891517/expmap_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.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/891517/ltcube_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.fits
.....................!
real 189.46
user 184.80
sys 4.36

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/891517/ft1_filtered_4FGL_J2326.2+0113_daily_bin555.fits scfile=/scratch/kocevski/891517/ft2_4FGL_J2326.2+0113_daily_bin555.fits outfile=/scratch/kocevski/891517/cmap_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891517/ft1_filtered_4FGL_J2326.2+0113_daily_bin555.fits scfile=/scratch/kocevski/891517/ft2_4FGL_J2326.2+0113_daily_bin555.fits outfile=/scratch/kocevski/891517/cmap_HighResolution_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.948       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12440E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0136       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.992       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.007       1.0000         .10000E-03   10000.    
    12 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    130.65       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.502       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9159       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50458E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5681       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77965       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1190       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=   7593.715     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2687 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.604       -.20291E-06** at limit **
   2  norm          .10000E-03    5.4827       -.15251E-06** at limit **
   3  Prefactor     .10000E-03    33.684       -.43790E-06** at limit **
   4  Prefactor     .10000E-03    8.0137       -.18134E-06** at limit **
   5  Prefactor     .10000E-03    51.573       -.76709E-06** at limit **
   6  Prefactor     25.016        32.177       -.49524E-05   -.80839E-03
   7  Prefactor     .10014E-03    7.8306        .43247E-05** at limit **
   8  norm          3.0137        1.0135       -.85776E-07   -.14631E-02
   9  norm          .10000E-03    1.5591        .16378E-06** at limit **
  10  Prefactor     15.985        10.255        .38165E-07    .28230E-04
  11  Prefactor     16.040        49.002        .32165E-06   -.27401E-05
  12  norm          .10000E-03    5.2821       -.64002E-06** at limit **
  13  Prefactor     .10000E-03    2.1360       -.20659E-06** at limit **
  14  Prefactor     131.08        135.74       -.13740E-06    .42798E-05
  15  Prefactor     5.2915        9.6864        .76867E-06    .12807E-05
  16  Prefactor     25.573        23.715        .14714E-06    .66145E-05
  17  norm          6.9238        19.506       -.38597E-07    .53104E-05
  18  Prefactor     .10000E-03    23.392        .27910E-06** at limit **
  19  Prefactor     .10000E-03    1.1897        .60994E-06** at limit **
  20  Prefactor     .10000E-03    109.99        .54707E-06** at limit **
  21  Prefactor     .10000E-03    19.851       -.10674E-05** at limit **
  22  Prefactor     4.5684        5.7060        .18091E-07   -.34309E-05
  23  Normalizat    .77991        .17739       -.34623E-06   -.46235E-03
  24  Prefactor     1.1189        .12532        .84083E-07   -.53398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0157
  Prefactor  = 0.000100139
  norm       = 3.01366
  norm       = 0.0001
  Prefactor  = 15.9847
  Prefactor  = 16.0405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.084
  Prefactor  = 5.29148
  Prefactor  = 25.5731
  norm       = 6.92381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56838
  Normalizat = 0.779907
  Prefactor  = 1.11885
 **********
 **   18 **HESSE 
 **********

 FCN=   7593.715     FROM HESSE     STATUS=OK           393 CALLS     3080 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.5216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.016        35.338        .80199E-04   -1.4707    
   7  Prefactor     .10014E-03    18.202        .33828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0137        1.0128        .48099E-04   -1.5361    
   9  norm          .10000E-03    1.5667        .10618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.985        10.246        .10015E-03   -1.4908    
  11  Prefactor     16.040        48.961        .10011E-03   -1.4907    
  12  norm          .10000E-03    5.3217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1405        .12429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     131.08        135.66        .17613E-03   -1.3413    
  15  Prefactor     5.2915        9.7108        .17469E-03   -1.5248    
  16  Prefactor     25.573        23.710        .79325E-04   -1.4696    
  17  norm          6.9238        19.638        .15256E-03   -1.5182    
  18  Prefactor     .10000E-03    23.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1778        .92063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    112.75        .42306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.5684        5.7043        .18834E-03   -1.5280    
  23  Normalizat    .77991        .20315        .31317E-03   -1.0082    
  24  Prefactor     1.1189        .14397        .19260E-03   -.88866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86177e-09
Minuit parameter uncertainties:
  1  3.39529e-06
  2  3.08407e-06
  3  2.58318e-05
  4  5.19523e-06
  5  4.85617e-05
  6  35.3672
  7  0.00317814
  8  1.01282
  9  1.98984e-06
  10  10.2473
  11  49.0842
  12  1.67178e-05
  13  3.40897e-06
  14  135.986
  15  9.71369
  16  23.7188
  17  19.6564
  18  1.7739e-05
  19  6.90285e-06
  20  7.83414e-05
  21  6.27454e-05
  22  5.70498
  23  0.203347
  24  0.144021
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.604e+01  4.908e+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.119e+00  1.440e-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.799e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/891517/likelihoodResults_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.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) = 7592.99016831
delta logL = 0.725174894395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7592.96873416
delta logL = 0.746609040959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3030       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8262       1.0000          .0000       10.000    
     3 'Normalizat'    .71843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1444       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7592.969     FROM MIGRAD    STATUS=FAILED        98 CALLS      284 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2930        47.680        .19344E-03   -.36496E-03
   2  Index         3.8290        3.8636        .44612E-02    .99667E-03
   3  Normalizat    .71830        .16826        .32490E-03   -.16096E-04
   4  Prefactor     1.1444        .12093        .19059E-03   -.52850E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7592.969     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      374 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2930        47.680        .13291E-03   -.36496E-03
   2  Index         3.8290        3.8636        .85523E-03    .99667E-03
   3  Normalizat    .71830        .16826        .17175E-03   -.16096E-04
   4  Prefactor     1.1444        .12093        .66764E-04   -.52850E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7592.969     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      403 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2930        11.515        .77377E-05   -.30179E-03
   2  Index         3.8290        2.1198        .89224E-03   -.45526E-04
   3  Normalizat    .71830        .20271        .12996E-04   -.12247E-04
   4  Prefactor     1.1444        .14474        .38118E-04   -.44678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29298
  Index      = 3.82903
  Normalizat = 0.718296
  Prefactor  = 1.14444
 **********
 **   18 **HESSE 
 **********

 FCN=   7592.969     FROM HESSE     STATUS=OK            23 CALLS      426 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2930        5.0310        .15475E-05   -1.5481    
   2  Index         3.8290        1.4090        .35690E-04   -.23639    
   3  Normalizat    .71830        .20249        .25992E-05   -1.0318    
   4  Prefactor     1.1444        .14439        .76236E-05   -.88058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19737e-11
Minuit parameter uncertainties:
  1  5.03262
  2  1.42954
  3  0.2027
  4  0.144444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891517': 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) = 7592.9687317
delta logL = 0.74661150536

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.293e+00  5.033e+00  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  3.829e+00  1.430e+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.144e+00  1.444e-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.183e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 351.575 1.222
Photon Index (Free Index): 3.83 +/- 1.43
Photon Flux (Free Index): 6.01e-08 +/- 5.39e-08
Energy Flux (Free Index): 9.28e-06 +/- 8.42e-06

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/891517/cmap_HighResolution_383184001_383443201_4FGL_J2326.2+0113_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', comment='SUCCESS', energy_flux2='9.28e-06', dlogl='7.47e-01', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-29 19:06:08.736264', photon_index_error2='1.43', photon_index2='3.83', ts='0.12', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='8.20e-08', energy_flux_error2='8.42e-06', EG='0.78', time_epoch_completed='1632967568.74', return_code='0', job_id='891517', GAL2='1.14', EG2='0.72', return_code2='0', photon_flux_error2='5.39e-08', ts2='1.71', photon_index='2.12' WHERE bin_id='555' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:06:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 891517: <4FGL_J2326.2+0113_daily_bin555> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin555> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:50:39 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:50:40 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:40 2021
Terminated at Wed Sep 29 19:06:09 2021
Results reported at Wed Sep 29 19:06:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin555 351.575 1.2216 383184001 383443201 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 :                                   722.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

