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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin1167
RA = 351.575, Dec = 1.2216
tmin = 541814401, tmax = 542073601
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='894479', job_status='RUN', time_executed='2021-09-29 19:00:42.325483', time_epoch_executed='1632967242.33' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894479

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894479/ft1_4FGL_J2326.2+0113_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894479/ft1_4FGL_J2326.2+0113_daily_bin1167.fits outfile=/scratch/kocevski/894479/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin1167.fits ra=351.575 dec=1.2216 rad=12.0 tmin=541814401.0 tmax=542073601.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.66
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.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/894479/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/894479/ft1_filtered_4FGL_J2326.2+0113_daily_bin1167.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/894479/ft1_filtered_4FGL_J2326.2+0113_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/894479/ltcube_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.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/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.fits
.....................!
real 11.76
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894479/ft1_filtered_4FGL_J2326.2+0113_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/894479/ltcube_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.fits outfile=/scratch/kocevski/894479/expmap_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.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/894479/ltcube_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.fits
.....................!
real 190.64
user 185.43
sys 4.70

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/894479/ft1_filtered_4FGL_J2326.2+0113_daily_bin1167.fits scfile=/scratch/kocevski/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.fits outfile=/scratch/kocevski/894479/cmap_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894479/ft1_filtered_4FGL_J2326.2+0113_daily_bin1167.fits scfile=/scratch/kocevski/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.fits outfile=/scratch/kocevski/894479/cmap_HighResolution_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.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/894479/ft1_filtered_4FGL_J2326.2+0113_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/894479/ft2_4FGL_J2326.2+0113_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894479/Model_4FGL_J2326.2+0113_daily_bin1167.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/894479/ft1_filtered_4FGL_J2326.2+0113_daily_bin1167.fits.....................!
real 61.22
user 59.74
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .15812E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12704E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55743E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9042       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15665E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9481       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0826       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0825       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95279       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2320       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=   5971.871     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2688 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.464        .31912E-07** at limit **
   2  norm          .10000E-03    13.423        .23836E-06** at limit **
   3  Prefactor     .10000E-03    62.409       -.91676E-06** at limit **
   4  Prefactor     .10000E-03    5.8655       -.20751E-06** at limit **
   5  Prefactor     .10000E-03    70.083       -.17391E-05** at limit **
   6  Prefactor     76.003        78.973        .10492E-05    .61589E-05
   7  Prefactor     .10000E-03    7.3269        .32713E-05** at limit **
   8  norm          2.9040        1.2169        .36109E-07    .32732E-04
   9  norm          5.6788        5.6979       -.68570E-08   -.51739E-04
  10  Prefactor     .10000E-03    9.0589       -.63675E-06** at limit **
  11  Prefactor     .10000E-03    15.989        .24413E-06** at limit **
  12  norm          .10000E-03    2.5945       -.14213E-06** at limit **
  13  Prefactor     .10000E-03    5.9406       -.41887E-06** at limit **
  14  Prefactor     .10000E-03    75.076       -.46955E-06** at limit **
  15  Prefactor     .10000E-03    5.3268        .72892E-07** at limit **
  16  Prefactor     .10000E-03    39.882       -.55967E-06** at limit **
  17  norm          .10000E-03    8.4850        .26459E-06** at limit **
  18  Prefactor     .10000E-03    16.261       -.57957E-07** at limit **
  19  Prefactor     7.9466        5.6322        .18769E-06    .49635E-05
  20  Prefactor     4.0435        87.065        .22975E-05    .18051E-04
  21  Prefactor     1.0757        29.100        .32248E-05   -.11379E-04
  22  Prefactor     .10000E-03    9.9659       -.38239E-06** at limit **
  23  Normalizat    .95288        .25447       -.28620E-05    .11482E-03
  24  Prefactor     1.2320        .16941        .19853E-05   -.17311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.003
  Prefactor  = 0.0001
  norm       = 2.90404
  norm       = 5.67876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.94664
  Prefactor  = 4.0435
  Prefactor  = 1.0757
  Prefactor  = 0.0001
  Normalizat = 0.952881
  Prefactor  = 1.23199
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.871     FROM HESSE     STATUS=OK           389 CALLS     3077 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    99.198        .53650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    72.590        .38097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     76.003        79.051        .23018E-03   -1.3962    
   7  Prefactor     .10000E-03    7.6061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9040        1.2149        .52855E-04   -1.5367    
   9  norm          5.6788        5.6915        .16858E-03   -1.5231    
  10  Prefactor     .10000E-03    9.1559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6034        .12156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    75.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3409        .17410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.4938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9466        5.6302        .71111E-03   -1.5144    
  20  Prefactor     4.0435        87.370        .19953E-03   -1.5306    
  21  Prefactor     1.0757        29.141        .23120E-02   -1.5501    
  22  Prefactor     .10000E-03    9.9954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .95288        .27253        .32805E-03   -.94626    
  24  Prefactor     1.2320        .18203        .20361E-03   -.85352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94334e-09
Minuit parameter uncertainties:
  1  1.56512e-05
  2  0.00108732
  3  3.37212e-05
  4  6.75461e-06
  5  0.000157151
  6  79.1607
  7  7.63098e-05
  8  1.21492
  9  5.692
  10  3.02775e-05
  11  2.22457e-05
  12  1.51413e-06
  13  8.70507e-06
  14  0.000120921
  15  1.01703e-06
  16  5.71964e-05
  17  1.71213e-05
  18  1.93636e-05
  19  5.6306
  20  37.6537
  21  11.2033
  22  2.03943e-05
  23  0.272932
  24  0.182123
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  2.225e-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.232e+00  1.821e-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.529e-01  2.729e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894479/likelihoodResults_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.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) = 5971.87112228
delta logL = -0.000296953536235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5971.87082677
delta logL = -1.4374145394e-06

Fit tolerance = 1e-08

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

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

 FCN=   5971.871     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      277 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10279E-03    3.9817        .18142E-01** at limit **
   2  Index         2.2926        8.8526        .50000        .27418E-04
   3  Normalizat    .95288        .32093E-02    .32804E-03    .17189E-04
   4  Prefactor     1.2320        .22457E-02    .20361E-03    .36282E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102786
  Index      = 2.29264
  Normalizat = 0.952878
  Prefactor  = 1.23199
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.871     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10279E-03    46.971        .26577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2926        8.7060        .50000       -.57219    
   3  Normalizat    .95288        .11062E-01    .13122E-04   -.94626    
   4  Prefactor     1.2320        .77404E-02    .40722E-04   -.85352    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.7244e-09
Minuit parameter uncertainties:
  1  0.0228971
  2  150.916
  3  0.011062
  4  0.00774041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894479': 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) = 5971.87082634
delta logL = -1.01447494671e-06

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.028e-04  2.290e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.293e+00  1.509e+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.232e+00  7.740e-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:  9.529e-01  1.106e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/894479/cmap_HighResolution_541814401_542073601_4FGL_J2326.2+0113_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-29 19:11:16.270868', job_id='894479', GAL2='1.23', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632967876.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1167' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:11:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 894479: <4FGL_J2326.2+0113_daily_bin1167> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin1167> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 19:00:24 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:00:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 19:00:26 2021
Terminated at Wed Sep 29 19:11:17 2021
Results reported at Wed Sep 29 19:11:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin1167 351.575 1.2216 541814401 542073601 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 :                                   629.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            653 sec.

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

