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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin862
RA = 351.575, Dec = 1.2216
tmin = 462758401, tmax = 463017601
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='893007', job_status='RUN', time_executed='2021-09-29 18:55:45.612263', time_epoch_executed='1632966945.61' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='862'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893007/ft1_4FGL_J2326.2+0113_daily_bin862.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893007/ft2_4FGL_J2326.2+0113_daily_bin862.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893007/ft1_4FGL_J2326.2+0113_daily_bin862.fits outfile=/scratch/kocevski/893007/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin862.fits ra=351.575 dec=1.2216 rad=12.0 tmin=462758401.0 tmax=463017601.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 4.71
user 4.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/893007/ft2_4FGL_J2326.2+0113_daily_bin862.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/893007/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin862.fits evtable="EVENTS" outfile="/scratch/kocevski/893007/ft1_filtered_4FGL_J2326.2+0113_daily_bin862.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/893007/ft1_filtered_4FGL_J2326.2+0113_daily_bin862.fits" evtable="EVENTS" scfile=/scratch/kocevski/893007/ft2_4FGL_J2326.2+0113_daily_bin862.fits sctable="SC_DATA" outfile=/scratch/kocevski/893007/ltcube_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.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/893007/ft2_4FGL_J2326.2+0113_daily_bin862.fits
.....................!
real 12.12
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893007/ft1_filtered_4FGL_J2326.2+0113_daily_bin862.fits evtable="EVENTS" scfile=/scratch/kocevski/893007/ft2_4FGL_J2326.2+0113_daily_bin862.fits sctable="SC_DATA" expcube=/scratch/kocevski/893007/ltcube_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.fits outfile=/scratch/kocevski/893007/expmap_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.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/893007/ltcube_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.fits
.....................!
real 191.59
user 186.29
sys 4.92

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/893007/ft1_filtered_4FGL_J2326.2+0113_daily_bin862.fits scfile=/scratch/kocevski/893007/ft2_4FGL_J2326.2+0113_daily_bin862.fits outfile=/scratch/kocevski/893007/cmap_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.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/893007/ft1_filtered_4FGL_J2326.2+0113_daily_bin862.fits scfile=/scratch/kocevski/893007/ft2_4FGL_J2326.2+0113_daily_bin862.fits outfile=/scratch/kocevski/893007/cmap_HighResolution_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.673       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.148       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9037       1.0000         .10000E-03   10000.    
     9 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48482E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    26.660       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    206.53       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10974E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11884E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83335       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78419       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=   4561.583     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2727 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.450        .17410E-06** at limit **
   2  norm          .10000E-03    4.1740       -.29110E-07** at limit **
   3  Prefactor     49.635        42.938        .10783E-04   -.47998E-05
   4  Prefactor     .10000E-03    5.5878       -.26956E-09** at limit **
   5  Prefactor     16.886        15.123       -.28049E-06   -.47930E-04
   6  Prefactor     25.154        58.506       -.67350E-05   -.67235E-05
   7  Prefactor     .10000E-03    5.1373        .12627E-06** at limit **
   8  norm          3.9037        1.5473        .11127E-05   -.94037E-03
   9  norm          .10000E-03    3.5990        .80542E-07** at limit **
  10  Prefactor     1.8205        19.034       -.29323E-05   -.27612E-03
  11  Prefactor     .10001E-03    80.154        .42446E-05** at limit **
  12  norm          26.650        12.662       -.12891E-06    .31487E-04
  13  Prefactor     14.651        9.0636       -.32130E-06   -.30752E-04
  14  Prefactor     206.37        234.50       -.10105E-03   -.12580E-04
  15  Prefactor     .10001E-03    17.840        .15568E-05** at limit **
  16  Prefactor     .10000E-03    40.501        .32763E-06** at limit **
  17  norm          .10000E-03    10.879       -.69769E-08** at limit **
  18  Prefactor     47.890        67.234       -.16921E-06   -.63655E-05
  19  Prefactor     .10000E-03    2.0102        .38865E-06** at limit **
  20  Prefactor     .10000E-03    271.59       -.82721E-05** at limit **
  21  Prefactor     .10000E-03    49.933        .63837E-06** at limit **
  22  Prefactor     .10000E-03    12.236       -.95267E-07** at limit **
  23  Normalizat    .83341        .21474        .14166E-05   -.14917E-03
  24  Prefactor     .78436        .13959       -.29992E-06   -.63071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.6353
  Prefactor  = 0.0001
  Prefactor  = 16.8862
  Prefactor  = 25.1538
  Prefactor  = 0.0001
  norm       = 3.90371
  norm       = 0.0001
  Prefactor  = 1.82052
  Prefactor  = 0.000100007
  norm       = 26.6497
  Prefactor  = 14.6506
  Prefactor  = 206.369
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.8901
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.83341
  Prefactor  = 0.784359
 **********
 **   18 **HESSE 
 **********

 FCN=   4561.583     FROM HESSE     STATUS=OK           401 CALLS     3128 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.1791        .13476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.635        42.981        .56899E-04   -1.4298    
   4  Prefactor     .10000E-03    5.5980        .15592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.886        15.124        .97466E-04   -1.4886    
   6  Prefactor     25.154        58.617        .79881E-04   -1.4704    
   7  Prefactor     .10000E-03    5.1414        .14934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9037        1.5449        .48543E-04   -1.5313    
   9  norm          .10000E-03    3.6486        .12505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8205        18.633        .31036E-03   -1.5438    
  11  Prefactor     .10001E-03    71.210        .16019       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          26.650        12.522        .77587E-04   -1.4675    
  13  Prefactor     14.651        9.0669        .10464E-03   -1.4942    
  14  Prefactor     206.37        234.38        .14063E-03   -1.2825    
  15  Prefactor     .10001E-03    18.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.890        67.349        .57958E-04   -1.4323    
  19  Prefactor     .10000E-03    2.0222        .93507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    281.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    50.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83341        .25247        .28240E-03   -.98841    
  24  Prefactor     .78436        .16421        .19663E-03   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21756e-09
Minuit parameter uncertainties:
  1  4.78908e-06
  2  3.83477e-06
  3  43.0078
  4  1.33067e-05
  5  15.1272
  6  58.7515
  7  3.34477e-05
  8  1.54496
  9  2.06539e-05
  10  11.6527
  11  0.0014047
  12  12.5232
  13  9.06774
  14  235.452
  15  0.000654583
  16  1.12352e-05
  17  8.16369e-05
  18  67.4558
  19  4.89903e-05
  20  0.00125755
  21  3.63962e-05
  22  8.90021e-06
  23  0.252825
  24  0.164312
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.405e-03  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:  7.844e-01  1.643e-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:  8.334e-01  2.528e-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: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893007/likelihoodResults_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.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) = 4561.58258395
delta logL = -4.89326157549e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4561.58258395
delta logL = -4.89292324346e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1195       1.0000          .0000       10.000    
     3 'Normalizat'    .83341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78436       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=   4561.396     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      323 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6052        85.212        .90712E-02    .47423E-03
   2  Index         3.5507        3.4799        .10937        .10697E-03
   3  Normalizat    .79441        .49613E-01    .65222E-01   -.51026E-04
   4  Prefactor     .79771        .33458E-01    .43513E-01   -.57574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60522
  Index      = 3.55069
  Normalizat = 0.794407
  Prefactor  = 0.797713
 **********
 **   18 **HESSE 
 **********

 FCN=   4561.396     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      356 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6052        235.98        .14335E-03   -1.5455    
   2  Index         3.5507        6.3025        .63095E-02   -.29408    
   3  Normalizat    .79441        .20122        .28853E-03   -1.0028    
   4  Prefactor     .79771        .13594        .19508E-03   -.99813    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.88227e-07
Minuit parameter uncertainties:
  1  39.0826
  2  9.10102
  3  0.201411
  4  0.136002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893007': 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) = 4561.39584799
delta logL = 0.186731071012

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.605e+00  3.908e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  3.551e+00  9.101e+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:  7.977e-01  1.360e-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.944e-01  2.014e-01  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/893007/cmap_HighResolution_462758401_463017601_4FGL_J2326.2+0113_daily_bin862.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-09-29 19:05:18.002224', job_id='893007', GAL2='0.80', fit_tolerance='1e-08', EG2='0.79', EG='0.83', time_epoch_completed='1632967518.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.87e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='862' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:05:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 893007: <4FGL_J2326.2+0113_daily_bin862> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin862> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 18:55:33 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:55:34 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:55:34 2021
Terminated at Wed Sep 29 19:05:19 2021
Results reported at Wed Sep 29 19:05:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin862 351.575 1.2216 462758401 463017601 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 :                                   568.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             346.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            586 sec.

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

