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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin471
RA = 351.575, Dec = 1.2216
tmin = 361411201, tmax = 361670401
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='891386', job_status='RUN', time_executed='2021-09-29 18:52:59.864895', time_epoch_executed='1632966779.86' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891386/ft1_4FGL_J2326.2+0113_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891386/ft2_4FGL_J2326.2+0113_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891386/ft1_4FGL_J2326.2+0113_daily_bin471.fits outfile=/scratch/kocevski/891386/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin471.fits ra=351.575 dec=1.2216 rad=12.0 tmin=361411201.0 tmax=361670401.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891386/ft1_filtered_4FGL_J2326.2+0113_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/891386/ft2_4FGL_J2326.2+0113_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/891386/ltcube_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.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/891386/ft2_4FGL_J2326.2+0113_daily_bin471.fits
.....................!
real 12.15
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891386/ft1_filtered_4FGL_J2326.2+0113_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/891386/ft2_4FGL_J2326.2+0113_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/891386/ltcube_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.fits outfile=/scratch/kocevski/891386/expmap_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.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/891386/ltcube_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.fits
.....................!
real 190.27
user 184.94
sys 5.02

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/891386/ft1_filtered_4FGL_J2326.2+0113_daily_bin471.fits scfile=/scratch/kocevski/891386/ft2_4FGL_J2326.2+0113_daily_bin471.fits outfile=/scratch/kocevski/891386/cmap_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.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.50
user 0.37
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891386/ft1_filtered_4FGL_J2326.2+0113_daily_bin471.fits scfile=/scratch/kocevski/891386/ft2_4FGL_J2326.2+0113_daily_bin471.fits outfile=/scratch/kocevski/891386/cmap_HighResolution_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.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.54
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7391       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5913       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .48106E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0021       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.876       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.074       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9170       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60472       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0595       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=   5878.521     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2712 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.008       -.75500E-08** at limit **
   2  norm          .10000E-03    12.860       -.83972E-07** at limit **
   3  Prefactor     6.7336        55.044        .53636E-07   -.12271E-04
   4  Prefactor     .10000E-03    7.2136       -.26836E-07** at limit **
   5  Prefactor     .10000E-03    17.654       -.19848E-06** at limit **
   6  Prefactor     4.6078        113.20       -.34591E-05   -.46787E-05
   7  Prefactor     .10000E-03    13.992        .21327E-05** at limit **
   8  norm          .10000E-03    .41507       -.49842E-07** at limit **
   9  norm          2.0038        4.7758        .85304E-06   -.92784E-04
  10  Prefactor     10.874        9.6843       -.65726E-06   -.67403E-04
  11  Prefactor     .10000E-03    57.947        .52564E-06** at limit **
  12  norm          1.7407        12.892        .35917E-05    .29825E-04
  13  Prefactor     4.6835        6.7718       -.60988E-06   -.91837E-04
  14  Prefactor     .10000E-03    66.166       -.66083E-06** at limit **
  15  Prefactor     .10000E-03    10.531        .73540E-07** at limit **
  16  Prefactor     .10000E-03    9.0589       -.77028E-07** at limit **
  17  norm          .10000E-03    11.020        .97492E-07** at limit **
  18  Prefactor     69.785        57.820        .12557E-06   -.11474E-04
  19  Prefactor     .10000E-03    1.9619        .33101E-07** at limit **
  20  Prefactor     29.071        27.634        .16268E-06   -.23823E-04
  21  Prefactor     .10000E-03    13.876       -.15706E-06** at limit **
  22  Prefactor     3.9162        16.645        .72069E-06   -.63566E-05
  23  Normalizat    .60484        .19697       -.13206E-05   -.31725E-04
  24  Prefactor     1.0595        .12847        .55830E-06   -.14232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.7336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.60781
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 2.00377
  Prefactor  = 10.8738
  Prefactor  = 0.000100001
  norm       = 1.74066
  Prefactor  = 4.68349
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.7854
  Prefactor  = 0.0001
  Prefactor  = 29.0706
  Prefactor  = 0.0001
  Prefactor  = 3.91621
  Normalizat = 0.604839
  Prefactor  = 1.0595
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.521     FROM HESSE     STATUS=OK           397 CALLS     3109 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7336        54.632        .15457E-03   -1.5189    
   4  Prefactor     .10000E-03    7.2777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6078        113.96        .18785E-03   -1.5279    
   7  Prefactor     .10000E-03    13.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.776        .92776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0038        4.6412        .23427E-03   -1.5425    
  10  Prefactor     10.874        9.6073        .12149E-03   -1.5048    
  11  Prefactor     .10000E-03    58.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7407        12.511        .31861E-03   -1.5444    
  13  Prefactor     4.6835        6.6072        .18590E-03   -1.5275    
  14  Prefactor     .10000E-03    66.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.785        57.851        .48052E-04   -1.4035    
  19  Prefactor     .10000E-03    3.4659        .20585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.071        27.662        .74303E-04   -1.4629    
  21  Prefactor     .10000E-03    14.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.9162        16.556        .20385E-03   -1.5312    
  23  Normalizat    .60484        .21998        .31547E-03   -1.0778    
  24  Prefactor     1.0595        .14703        .17380E-03   -.90772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01994e-10
Minuit parameter uncertainties:
  1  2.83771e-05
  2  1.30381e-05
  3  38.4076
  4  2.25235e-06
  5  4.70252e-06
  6  45.9279
  7  6.48849e-05
  8  0.000418215
  9  4.64203
  10  9.60865
  11  0.000452669
  12  9.33584
  13  6.60819
  14  0.000533392
  15  2.83005e-05
  16  3.63393e-05
  17  2.64673e-05
  18  57.898
  19  5.93197e-06
  20  27.674
  21  2.69209e-05
  22  16.1114
  23  0.220302
  24  0.147085
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  4.527e-04  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.060e+00  1.471e-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:  6.048e-01  2.203e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891386/likelihoodResults_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.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) = 5878.52083156
delta logL = -8.19088927528e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5878.52074989
delta logL = -2.34070284932e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0651       1.0000          .0000       10.000    
     3 'Normalizat'    .60484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0595       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=   5878.521     FROM MIGRAD    STATUS=CONVERGED     59 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    1118.8        .90712E-02** at limit **
   2  Index         2.1286        8.7768        .50000       -.12616E-04
   3  Normalizat    .60484        .20249E-01    .71270E-01    .33251E-04
   4  Prefactor     1.0595        .14532E-01    .39383E-01   -.12062E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.1286
  Normalizat = 0.604838
  Prefactor  = 1.0595
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.521     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6239.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1286        5.8241        .50000       -.61172    
   3  Normalizat    .60484        .31789E-01    .31547E-03   -1.0778    
   4  Prefactor     1.0595        .22862E-01    .17380E-03   -.90772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.56531e-08
Minuit parameter uncertainties:
  1  0.0123981
  2  27.8357
  3  0.03179
  4  0.0228624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891386': 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) = 5878.52074963
delta logL = 2.73003024631e-08

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.240e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.129e+00  2.784e+01  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.060e+00  2.286e-02  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:  6.048e-01  3.179e-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/891386/cmap_HighResolution_361411201_361670401_4FGL_J2326.2+0113_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-29 19:03:26.513762', job_id='891386', GAL2='1.06', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632967406.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='471' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:03:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 891386: <4FGL_J2326.2+0113_daily_bin471> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin471 351.575 1.2216 361411201 361670401 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 :                                   625.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             244.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

