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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin709
RA = 351.575, Dec = 1.2216
tmin = 423100801, tmax = 423360001
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='891756', job_status='RUN', time_executed='2021-09-29 18:55:11.428367', time_epoch_executed='1632966911.43' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891756/ft1_4FGL_J2326.2+0113_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891756/ft2_4FGL_J2326.2+0113_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891756/ft1_4FGL_J2326.2+0113_daily_bin709.fits outfile=/scratch/kocevski/891756/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin709.fits ra=351.575 dec=1.2216 rad=12.0 tmin=423100801.0 tmax=423360001.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.93
user 4.71
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891756/ft2_4FGL_J2326.2+0113_daily_bin709.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/891756/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/891756/ft1_filtered_4FGL_J2326.2+0113_daily_bin709.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891756/ft1_filtered_4FGL_J2326.2+0113_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/891756/ft2_4FGL_J2326.2+0113_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/891756/ltcube_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.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/891756/ft2_4FGL_J2326.2+0113_daily_bin709.fits
.....................!
real 11.75
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891756/ft1_filtered_4FGL_J2326.2+0113_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/891756/ft2_4FGL_J2326.2+0113_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/891756/ltcube_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.fits outfile=/scratch/kocevski/891756/expmap_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.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/891756/ltcube_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.fits
.....................!
real 191.04
user 185.94
sys 4.75

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/891756/ft1_filtered_4FGL_J2326.2+0113_daily_bin709.fits scfile=/scratch/kocevski/891756/ft2_4FGL_J2326.2+0113_daily_bin709.fits outfile=/scratch/kocevski/891756/cmap_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.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/891756/ft1_filtered_4FGL_J2326.2+0113_daily_bin709.fits scfile=/scratch/kocevski/891756/ft2_4FGL_J2326.2+0113_daily_bin709.fits outfile=/scratch/kocevski/891756/cmap_HighResolution_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .27038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6502       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.624       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2073       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4557       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12478E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.471       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2372       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11207E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2852       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2391       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63968       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=   5226.512     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2306 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6892        .30952E-07** at limit **
   2  norm          .31642        7.7882        .86593E-06   -.14853E-03
   3  Prefactor     .10000E-03    8.4099        .86132E-07** at limit **
   4  Prefactor     8.6526        11.511        .21051E-05   -.45545E-04
   5  Prefactor     52.639        24.072       -.10037E-07   -.21715E-05
   6  Prefactor     10.345        57.334       -.49823E-06    .31367E-05
   7  Prefactor     .10000E-03    6.6582        .64801E-06** at limit **
   8  norm          2.2071        1.0199       -.10874E-07   -.93541E-04
   9  norm          2.4556        4.6022        .48565E-06   -.16983E-04
  10  Prefactor     .10000E-03    3.7249       -.15913E-07** at limit **
  11  Prefactor     .10000E-03    37.170       -.87475E-06** at limit **
  12  norm          22.008        13.957       -.13198E-05   -.22861E-03
  13  Prefactor     1.7478        16.518        .47800E-05    .50828E-04
  14  Prefactor     .10000E-03    67.917        .40401E-06** at limit **
  15  Prefactor     14.475        12.856       -.48919E-06    .16451E-04
  16  Prefactor     .10000E-03    22.981       -.40261E-06** at limit **
  17  norm          .10000E-03    20.510       -.27648E-08** at limit **
  18  Prefactor     .10000E-03    27.949        .31175E-06** at limit **
  19  Prefactor     .10000E-03    1.4751       -.73508E-07** at limit **
  20  Prefactor     9.1341        67.426       -.27278E-05   -.71780E-04
  21  Prefactor     .10000E-03    38.627       -.37395E-05** at limit **
  22  Prefactor     5.2787        19.449        .71969E-05   -.16400E-04
  23  Normalizat    1.2394        .22239        .22016E-05   -.24149E-03
  24  Prefactor     .63937        .14197       -.36681E-05    .36749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.316421
  Prefactor  = 0.0001
  Prefactor  = 8.65263
  Prefactor  = 52.6392
  Prefactor  = 10.3453
  Prefactor  = 0.0001
  norm       = 2.20711
  norm       = 2.45555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.0083
  Prefactor  = 1.7478
  Prefactor  = 0.0001
  Prefactor  = 14.4746
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.13406
  Prefactor  = 0.0001
  Prefactor  = 5.27869
  Normalizat = 1.23939
  Prefactor  = 0.639367
 **********
 **   18 **HESSE 
 **********

 FCN=   5226.512     FROM HESSE     STATUS=OK           399 CALLS     2705 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .31642        44.170        .38554E-02   -1.5595    
   3  Prefactor     .10000E-03    8.4118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6526        11.483        .68145E-03   -1.5120    
   5  Prefactor     52.639        24.089        .55288E-04   -1.4256    
   6  Prefactor     10.345        57.091        .12462E-03   -1.5065    
   7  Prefactor     .10000E-03    6.6715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2071        1.0162        .47424E-04   -1.5411    
   9  norm          2.4556        4.5665        .20187E-03   -1.5395    
  10  Prefactor     .10000E-03    3.7301        .13623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.008        13.392        .85375E-04   -1.4769    
  13  Prefactor     1.7478        15.547        .31707E-03   -1.5444    
  14  Prefactor     .10000E-03    67.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.475        12.842        .10529E-03   -1.4947    
  16  Prefactor     .10000E-03    23.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4782        .85676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.1341        68.794        .13187E-03   -1.5103    
  21  Prefactor     .10000E-03    38.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2787        19.728        .87415E-03   -1.5248    
  23  Normalizat    1.2394        .25698        .25207E-03   -.85394    
  24  Prefactor     .63937        .15986        .22561E-03   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46071e-10
Minuit parameter uncertainties:
  1  8.07579e-06
  2  7.48146
  3  4.68551e-07
  4  11.4858
  5  24.0932
  6  48.6769
  7  1.98293e-07
  8  1.01623
  9  4.56713
  10  5.90191e-06
  11  1.15365e-05
  12  13.394
  13  10.4288
  14  0.00029465
  15  12.8443
  16  0.000121673
  17  1.10106e-05
  18  1.60344e-05
  19  4.62871e-07
  20  50.2152
  21  8.58574e-05
  22  19.7527
  23  0.257246
  24  0.15997
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.154e-05  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  6.394e-01  1.600e-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:  1.239e+00  2.572e-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: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891756/likelihoodResults_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.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) = 5226.51241323
delta logL = -0.000127983376842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5226.51228586
delta logL = -6.18420926912e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2864       1.0000          .0000       10.000    
     3 'Normalizat'    1.2394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63936       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=   5226.512     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10344E-03    8.2849        .18142E-01** at limit **
   2  Index         2.1991        8.2531        .50000        .15689E-04
   3  Normalizat    1.2394        .27063E-02    .25207E-03    .15863E-03
   4  Prefactor     .63936        .18059E-02    .22561E-03    .20972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010344
  Index      = 2.19908
  Normalizat = 1.2394
  Prefactor  = 0.639365
 **********
 **   18 **HESSE 
 **********

 FCN=   5226.512     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10344E-03    64.718        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1991        5.7843        .50000       -.59461    
   3  Normalizat    1.2394        .75638E-02    .50413E-04   -.85394    
   4  Prefactor     .63936        .50471E-02    .90246E-05   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33727e-10
Minuit parameter uncertainties:
  1  0.0298741
  2  128.688
  3  0.00756376
  4  0.00504715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891756': 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) = 5226.51228556
delta logL = -3.17635567626e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.034e-04  2.987e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.199e+00  1.287e+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:  6.394e-01  5.047e-03  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.239e+00  7.564e-03  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/891756/cmap_HighResolution_423100801_423360001_4FGL_J2326.2+0113_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-29 19:04:50.782513', job_id='891756', GAL2='0.64', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632967490.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-3.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='709' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:04:50 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin709 351.575 1.2216 423100801 423360001 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             215.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

