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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin819
RA = 351.575, Dec = 1.2216
tmin = 451612801, tmax = 451872001
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='892941', job_status='RUN', time_executed='2021-09-29 18:59:02.376310', time_epoch_executed='1632967142.38' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892941/ft1_4FGL_J2326.2+0113_daily_bin819.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892941/ft2_4FGL_J2326.2+0113_daily_bin819.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892941/ft1_4FGL_J2326.2+0113_daily_bin819.fits outfile=/scratch/kocevski/892941/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin819.fits ra=351.575 dec=1.2216 rad=12.0 tmin=451612801.0 tmax=451872001.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.42
user 3.21
sys 0.19

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892941/ft1_filtered_4FGL_J2326.2+0113_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/892941/ft2_4FGL_J2326.2+0113_daily_bin819.fits sctable="SC_DATA" expcube=/scratch/kocevski/892941/ltcube_451612801_451872001_4FGL_J2326.2+0113_daily_bin819.fits outfile=/scratch/kocevski/892941/expmap_451612801_451872001_4FGL_J2326.2+0113_daily_bin819.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/892941/ltcube_451612801_451872001_4FGL_J2326.2+0113_daily_bin819.fits
.....................!
real 192.32
user 187.12
sys 4.74

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/892941/ft1_filtered_4FGL_J2326.2+0113_daily_bin819.fits scfile=/scratch/kocevski/892941/ft2_4FGL_J2326.2+0113_daily_bin819.fits outfile=/scratch/kocevski/892941/cmap_451612801_451872001_4FGL_J2326.2+0113_daily_bin819.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892941/ft1_filtered_4FGL_J2326.2+0113_daily_bin819.fits scfile=/scratch/kocevski/892941/ft2_4FGL_J2326.2+0113_daily_bin819.fits outfile=/scratch/kocevski/892941/cmap_HighResolution_451612801_451872001_4FGL_J2326.2+0113_daily_bin819.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    63.169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1934       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.948       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1473       1.0000         .10000E-03   10000.    
     8 'norm      '    .75435       1.0000         .10000E-03   10000.    
     9 'norm      '    .10634E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22624E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.915       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86371       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0091       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=   7894.940     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2455 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3112        .27888E-07** at limit **
   2  norm          63.168        16.197        .24125E-07    .17574E-04
   3  Prefactor     .10000E-03    13.371        .11362E-06** at limit **
   4  Prefactor     3.1930        6.3145        .29034E-05    .54977E-04
   5  Prefactor     25.948        16.023        .66543E-07    .10073E-04
   6  Prefactor     12.088        36.043        .61629E-05    .11692E-04
   7  Prefactor     4.1448        5.8799        .49389E-06    .20011E-04
   8  norm          .75435        .77972       -.72359E-09    .10592E-03
   9  norm          .10000E-03    2.3054       -.46872E-06** at limit **
  10  Prefactor     .10000E-03    8.0919       -.13038E-08** at limit **
  11  Prefactor     .10000E-03    12.334       -.52906E-07** at limit **
  12  norm          18.536        9.8737       -.10186E-07    .17137E-03
  13  Prefactor     .10000E-03    7.1124       -.39438E-07** at limit **
  14  Prefactor     .10000E-03    63.435        .79228E-06** at limit **
  15  Prefactor     .10000E-03    10.419       -.33007E-06** at limit **
  16  Prefactor     .10785E-03    36.383       -.21484E-05** at limit **
  17  norm          1.3445        51.739        .56193E-05    .41623E-04
  18  Prefactor     .10000E-03    23.197       -.10748E-05** at limit **
  19  Prefactor     .10000E-03    2.0360       -.31425E-06** at limit **
  20  Prefactor     48.911        33.362       -.98984E-06    .28962E-04
  21  Prefactor     .10000E-03    23.394        .12827E-05** at limit **
  22  Prefactor     .10001E-03    6.3483        .50585E-06** at limit **
  23  Normalizat    .86376        .17956        .13319E-06    .11202E-03
  24  Prefactor     1.0091        .12045       -.74637E-06    .12639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 63.1681
  Prefactor  = 0.0001
  Prefactor  = 3.19297
  Prefactor  = 25.9483
  Prefactor  = 12.0881
  Prefactor  = 4.14483
  norm       = 0.754346
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000107848
  norm       = 1.34455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.9106
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Normalizat = 0.863764
  Prefactor  = 1.00911
 **********
 **   18 **HESSE 
 **********

 FCN=   7894.940     FROM HESSE     STATUS=OK           413 CALLS     2868 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          63.168        16.188        .50489E-04   -1.4117    
   3  Prefactor     .10000E-03    13.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1930        6.2678        .11337E-02   -1.5351    
   5  Prefactor     25.948        16.021        .78642E-04   -1.4689    
   6  Prefactor     12.088        36.023        .11534E-03   -1.5012    
   7  Prefactor     4.1448        5.8759        .98962E-03   -1.5301    
   8  norm          .75435        .74273        .74767E-03   -1.5534    
   9  norm          .10000E-03    4.9921        .25773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.536        9.8394        .93035E-04   -1.4847    
  13  Prefactor     .10000E-03    7.2048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10785E-03    34.361        .11187       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3445        46.434        .38015E-03   -1.5476    
  18  Prefactor     .10000E-03    23.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.398        .21914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.911        33.403        .57336E-04   -1.4308    
  21  Prefactor     .10000E-03    24.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    56.554        .42954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86376        .20196        .30360E-03   -.97745    
  24  Prefactor     1.0091        .13871        .19988E-03   -.92426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67756e-10
Minuit parameter uncertainties:
  1  6.45747e-06
  2  16.1894
  3  7.02624e-06
  4  6.26912
  5  16.024
  6  36.0883
  7  5.87667
  8  0.742744
  9  1.76332e-05
  10  1.37551e-05
  11  4.30456e-06
  12  9.84026
  13  1.18382e-05
  14  1.26719e-05
  15  6.15579e-05
  16  0.0328629
  17  15.8156
  18  1.08663e-06
  19  0.000206849
  20  33.416
  21  1.82127e-05
  22  0.00135717
  23  0.202139
  24  0.138761
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  4.305e-06  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.009e+00  1.388e-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.638e-01  2.021e-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: 3.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892941/likelihoodResults_451612801_451872001_4FGL_J2326.2+0113_daily_bin819.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) = 7894.9398959
delta logL = -0.000385967869079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7894.93951001
delta logL = -7.49705577618e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0970       1.0000          .0000       10.000    
     3 'Normalizat'    .86384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0091       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=   7894.940     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    128.11        .18142E-02** at limit **
   2  Index         2.0288        5.6665        .50000        .12134E-04
   3  Normalizat    .86376        .13679E-01    .30359E-03    .52463E-04
   4  Prefactor     1.0091        .97259E-02    .19988E-03    .90299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101871
  Index      = 2.02876
  Normalizat = 0.863764
  Prefactor  = 1.00911
 **********
 **   18 **HESSE 
 **********

 FCN=   7894.940     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    538.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0288        6.0087        .50000       -.63633    
   3  Normalizat    .86376        .29272E-01    .12144E-04   -.97745    
   4  Prefactor     1.0091        .20812E-01    .39976E-04   -.92426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86987e-08
Minuit parameter uncertainties:
  1  0.0640489
  2  837.848
  3  0.0292725
  4  0.0208124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892941': 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) = 7894.9395097
delta logL = 2.28094904742e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.019e-04  6.405e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.029e+00  8.378e+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.009e+00  2.081e-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:  8.638e-01  2.927e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/892941/cmap_HighResolution_451612801_451872001_4FGL_J2326.2+0113_daily_bin819.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-03', job_status='DONE', photon_flux_upper_limit='3.93e-08', time_completed='2021-09-29 19:11:05.317907', job_id='892941', GAL2='1.01', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632967865.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='819' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:11:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 892941: <4FGL_J2326.2+0113_daily_bin819> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin819 351.575 1.2216 451612801 451872001 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

