/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 138 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 = 7664
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin393
RA = 351.575, Dec = 1.2216
tmin = 341193601, tmax = 341452801
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='891263', job_status='RUN', time_executed='2021-09-29 18:52:44.166933', time_epoch_executed='1632966764.17' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891263/ft1_4FGL_J2326.2+0113_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891263/ft2_4FGL_J2326.2+0113_daily_bin393.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891263/ft1_filtered_4FGL_J2326.2+0113_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/891263/ft2_4FGL_J2326.2+0113_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/891263/ltcube_341193601_341452801_4FGL_J2326.2+0113_daily_bin393.fits outfile=/scratch/kocevski/891263/expmap_341193601_341452801_4FGL_J2326.2+0113_daily_bin393.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/891263/ltcube_341193601_341452801_4FGL_J2326.2+0113_daily_bin393.fits
.....................!
real 190.02
user 185.33
sys 4.30

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/891263/ft1_filtered_4FGL_J2326.2+0113_daily_bin393.fits scfile=/scratch/kocevski/891263/ft2_4FGL_J2326.2+0113_daily_bin393.fits outfile=/scratch/kocevski/891263/cmap_341193601_341452801_4FGL_J2326.2+0113_daily_bin393.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891263/ft1_filtered_4FGL_J2326.2+0113_daily_bin393.fits scfile=/scratch/kocevski/891263/ft2_4FGL_J2326.2+0113_daily_bin393.fits outfile=/scratch/kocevski/891263/cmap_HighResolution_341193601_341452801_4FGL_J2326.2+0113_daily_bin393.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.356       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3008       1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.778       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.482       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7706       1.0000         .10000E-03   10000.    
     9 'norm      '    8.1320       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15180E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17275E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    89.270       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10961E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11585E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8502       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.068       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.148       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80759       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74975       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=   6115.538     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2775 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.359        12.253        .11015E-06   -.13476E-04
   2  norm          2.2985        5.6204        .67249E-05    .93078E-03
   3  Prefactor     74.108        39.698        .29410E-06    .39714E-04
   4  Prefactor     .10000E-03    18.390       -.84699E-07** at limit **
   5  Prefactor     23.803        17.467       -.18662E-06   -.33937E-03
   6  Prefactor     11.485        24.138        .19644E-06   -.70034E-05
   7  Prefactor     .10000E-03    2.3039       -.52657E-07** at limit **
   8  norm          1.7708        .95053        .16836E-07   -.42638E-03
   9  norm          8.1321        5.1400        .47821E-07   -.44622E-04
  10  Prefactor     .10000E-03    5.2634        .92546E-06** at limit **
  11  Prefactor     .10295E-03    90.107        .27540E-04** at limit **
  12  norm          .10000E-03    3.7238       -.19959E-07** at limit **
  13  Prefactor     .10001E-03    4.0983       -.90915E-06** at limit **
  14  Prefactor     89.227        93.304       -.19603E-05   -.41002E-03
  15  Prefactor     .10000E-03    3.1012       -.37805E-07** at limit **
  16  Prefactor     .10000E-03    13.979        .91173E-07** at limit **
  17  norm          .10000E-03    5.7597       -.11123E-07** at limit **
  18  Prefactor     .10000E-03    19.853       -.15394E-06** at limit **
  19  Prefactor     6.8443        3.8902        .10991E-06   -.14938E-03
  20  Prefactor     58.175        40.365        .80277E-06    .25792E-03
  21  Prefactor     18.135        17.275        .16575E-06    .11936E-04
  22  Prefactor     .10000E-03    3.9774       -.61661E-08** at limit **
  23  Normalizat    .80777        .17569       -.12282E-05   -.28697E-03
  24  Prefactor     .74968        .11495        .14398E-06   -.16791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3586
  norm       = 2.2985
  Prefactor  = 74.1075
  Prefactor  = 0.0001
  Prefactor  = 23.8029
  Prefactor  = 11.4849
  Prefactor  = 0.0001
  norm       = 1.77079
  norm       = 8.13212
  Prefactor  = 0.000100001
  Prefactor  = 0.000102951
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 89.2273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84428
  Prefactor  = 58.1745
  Prefactor  = 18.1349
  Prefactor  = 0.0001
  Normalizat = 0.807775
  Prefactor  = 0.749679
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.538     FROM HESSE     STATUS=OK           405 CALLS     3180 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.359        12.260        .10571E-03   -1.4950    
   2  norm          2.2985        6.1291        .13527E-02   -1.5405    
   3  Prefactor     74.108        39.707        .46632E-04   -1.3984    
   4  Prefactor     .10000E-03    18.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.803        17.478        .82146E-04   -1.4732    
   6  Prefactor     11.485        24.125        .11823E-03   -1.5030    
   7  Prefactor     .10000E-03    2.3070        .11585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7708        .94085        .52546E-04   -1.5442    
   9  norm          8.1321        5.1335        .13390E-03   -1.5138    
  10  Prefactor     .10000E-03    39.678        .34084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10295E-03    295.55        .83390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7431        .14723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    4.1149        .51171E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     89.227        96.094        .21263E-03   -1.3816    
  15  Prefactor     .10000E-03    3.1051        .13444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8443        3.8989        .10942E-03   -1.5185    
  20  Prefactor     58.175        40.534        .52647E-04   -1.4181    
  21  Prefactor     18.135        17.276        .94018E-04   -1.4856    
  22  Prefactor     .10000E-03    3.9826        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80777        .19923        .27247E-03   -.99781    
  24  Prefactor     .74968        .13067        .19418E-03   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28539e-08
Minuit parameter uncertainties:
  1  12.262
  2  6.13082
  3  39.7208
  4  7.99258e-06
  5  17.4817
  6  24.1458
  7  6.04836e-06
  8  0.940862
  9  5.13379
  10  0.000409049
  11  0.0593627
  12  2.57822e-06
  13  0.000316288
  14  96.2623
  15  8.09467e-06
  16  2.17935e-05
  17  3.78853e-06
  18  7.53418e-05
  19  3.899
  20  40.553
  21  17.2806
  22  1.23896e-06
  23  0.199406
  24  0.130722
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.030e-04  5.936e-02  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.497e-01  1.307e-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.078e-01  1.994e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891263/likelihoodResults_341193601_341452801_4FGL_J2326.2+0113_daily_bin393.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) = 6115.53790121
delta logL = -1.524342224e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6115.5379012
delta logL = -1.52425445776e-05

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'    .80777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74968       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=   6115.447     FROM MIGRAD    STATUS=CONVERGED    171 CALLS      338 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.443        34.219        .18142E-02   -.41433E-04
   2  Index         1.2747        1.0769        .18925E-01   -.19315E-04
   3  Normalizat    .80873        .18636        .27229E-03    .12108E-04
   4  Prefactor     .74729        .12928        .19444E-03    .41572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4425
  Index      = 1.2747
  Normalizat = 0.808734
  Prefactor  = 0.747287
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.447     FROM HESSE     STATUS=OK            25 CALLS      363 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.443        34.682        .72570E-04   -1.5002    
   2  Index         1.2747        1.0915        .75702E-03   -.84062    
   3  Normalizat    .80873        .18652        .10892E-04   -.99746    
   4  Prefactor     .74729        .12939        .77776E-05   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49699e-11
Minuit parameter uncertainties:
  1  34.7384
  2  1.11197
  3  0.186672
  4  0.129441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891263': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6115.44749033
delta logL = 0.0903956353359

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.244e+01  3.474e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  1.275e+00  1.112e+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.473e-01  1.294e-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.087e-01  1.867e-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/891263/cmap_HighResolution_341193601_341452801_4FGL_J2326.2+0113_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-29 19:03:40.888978', job_id='891263', GAL2='0.75', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632967420.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='9.04e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='393' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:03:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 891263: <4FGL_J2326.2+0113_daily_bin393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin393 351.575 1.2216 341193601 341452801 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 :                                   653.29 sec.
    Max Memory :                                 1070 MB
    Average Memory :                             307.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

