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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin135
RA = 351.575, Dec = 1.2216
tmin = 274320001, tmax = 274579201
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='888814', job_status='RUN', time_executed='2021-09-29 18:44:57.700657', time_epoch_executed='1632966297.7' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888814

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888814/ft1_4FGL_J2326.2+0113_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888814/ft2_4FGL_J2326.2+0113_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888814/ft1_4FGL_J2326.2+0113_daily_bin135.fits outfile=/scratch/kocevski/888814/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin135.fits ra=351.575 dec=1.2216 rad=12.0 tmin=274320001.0 tmax=274579201.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.56
user 3.38
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888814/ft1_filtered_4FGL_J2326.2+0113_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/888814/ft2_4FGL_J2326.2+0113_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/888814/ltcube_274320001_274579201_4FGL_J2326.2+0113_daily_bin135.fits outfile=/scratch/kocevski/888814/expmap_274320001_274579201_4FGL_J2326.2+0113_daily_bin135.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/888814/ltcube_274320001_274579201_4FGL_J2326.2+0113_daily_bin135.fits
.....................!
real 192.50
user 187.74
sys 4.45

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/888814/ft1_filtered_4FGL_J2326.2+0113_daily_bin135.fits scfile=/scratch/kocevski/888814/ft2_4FGL_J2326.2+0113_daily_bin135.fits outfile=/scratch/kocevski/888814/cmap_274320001_274579201_4FGL_J2326.2+0113_daily_bin135.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888814/ft1_filtered_4FGL_J2326.2+0113_daily_bin135.fits scfile=/scratch/kocevski/888814/ft2_4FGL_J2326.2+0113_daily_bin135.fits outfile=/scratch/kocevski/888814/cmap_HighResolution_274320001_274579201_4FGL_J2326.2+0113_daily_bin135.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.340       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.109       1.0000         .10000E-03   10000.    
     8 'norm      '    .25356       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1771       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22822E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    75.984       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1399       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.855       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.845       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.841       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.464       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97994       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87950       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=   4961.766     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2725 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.782       -.27588E-05** at limit **
   2  norm          .10000E-03    9.5364        .35192E-05** at limit **
   3  Prefactor     16.663        38.146       -.24761E-04    .20096E-03
   4  Prefactor     20.201        15.403        .63704E-06    .74283E-04
   5  Prefactor     15.334        23.524       -.89800E-06    .66647E-04
   6  Prefactor     .10001E-03    34.963        .23356E-04** at limit **
   7  Prefactor     12.107        10.278       -.20264E-06   -.54159E-04
   8  norm          .25312        .76276       -.82770E-06   -.18338E-02
   9  norm          2.4831        6.3211       -.22737E-05   -.37503E-03
  10  Prefactor     4.1804        7.9404       -.44784E-05    .35740E-03
  11  Prefactor     .10001E-03    31.735       -.24066E-04** at limit **
  12  norm          1.6154        9.8697       -.11368E-04   -.28195E-03
  13  Prefactor     .10001E-03    14.044        .21754E-05** at limit **
  14  Prefactor     75.987        163.01        .26737E-05    .10024E-04
  15  Prefactor     7.1340        16.673        .81534E-05   -.20260E-04
  16  Prefactor     .10000E-03    10.439       -.33156E-05** at limit **
  17  norm          10.804        30.102       -.11991E-04    .85509E-04
  18  Prefactor     .10000E-03    22.623        .39575E-05** at limit **
  19  Prefactor     .10000E-03    1.8182       -.23837E-06** at limit **
  20  Prefactor     41.831        46.369       -.67471E-05    .12468E-03
  21  Prefactor     14.794        30.256       -.31142E-05    .61422E-04
  22  Prefactor     10.450        20.636        .51107E-05   -.11274E-03
  23  Normalizat    .98038        .23308        .49293E-05    .21438E-03
  24  Prefactor     .87928        .14607        .14804E-05    .29907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.6629
  Prefactor  = 20.2015
  Prefactor  = 15.3343
  Prefactor  = 0.000100006
  Prefactor  = 12.1067
  norm       = 0.253119
  norm       = 2.48315
  Prefactor  = 4.1804
  Prefactor  = 0.000100005
  norm       = 1.61542
  Prefactor  = 0.000100008
  Prefactor  = 75.9867
  Prefactor  = 7.13399
  Prefactor  = 0.000100001
  norm       = 10.8044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.8311
  Prefactor  = 14.7939
  Prefactor  = 10.4502
  Normalizat = 0.980376
  Prefactor  = 0.87928
 **********
 **   18 **HESSE 
 **********

 FCN=   4961.766     FROM HESSE     STATUS=OK           399 CALLS     3124 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.5746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.663        38.083        .98032E-04   -1.4891    
   4  Prefactor     20.201        15.397        .89108E-04   -1.4809    
   5  Prefactor     15.334        23.536        .10226E-03   -1.4925    
   6  Prefactor     .10001E-03    34.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.107        10.233        .11512E-03   -1.5012    
   8  norm          .25312        .77235        .98119E-03   -1.5607    
   9  norm          2.4831        6.2255        .25405E-03   -1.5393    
  10  Prefactor     4.1804        7.8109        .19720E-03   -1.5299    
  11  Prefactor     .10001E-03    31.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6154        9.9940        .33090E-03   -1.5454    
  13  Prefactor     .10001E-03    14.544        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     75.987        162.51        .46064E-04   -1.3962    
  15  Prefactor     7.1340        16.698        .15012E-03   -1.5174    
  16  Prefactor     .10000E-03    10.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.804        30.195        .12160E-03   -1.5050    
  18  Prefactor     .10000E-03    22.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8243        .92673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.831        46.430        .61970E-04   -1.4414    
  21  Prefactor     14.794        30.269        .10397E-03   -1.4939    
  22  Prefactor     10.450        20.710        .12386E-03   -1.5061    
  23  Normalizat    .98038        .26901        .28090E-03   -.93691    
  24  Prefactor     .87928        .16949        .20277E-03   -.96869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03249e-09
Minuit parameter uncertainties:
  1  0.000104841
  2  0.000122426
  3  38.1385
  4  15.4001
  5  23.5506
  6  0.000915331
  7  10.2347
  8  0.772383
  9  6.22717
  10  7.81279
  11  0.000817727
  12  8.03778
  13  0.000683543
  14  163.471
  15  16.7084
  16  0.00014892
  17  30.2378
  18  0.000139672
  19  1.01794e-05
  20  46.4701
  21  30.3006
  22  20.7244
  23  0.269379
  24  0.169592
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.793e-01  1.696e-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:  9.804e-01  2.694e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888814/likelihoodResults_274320001_274579201_4FGL_J2326.2+0113_daily_bin135.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) = 4961.76658011
delta logL = -0.000150911248966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4961.76643133
delta logL = -2.1326723072e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4696       1.0000          .0000       10.000    
     3 'Normalizat'    .98037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87928       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=   4961.766     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      245 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .12480E-01    .57893E-01** at limit **
   2  Index         3.4582        2.6780        .50000        .74827E-05
   3  Normalizat    .98037        .46540E-03    .45920E-01    .12749E-04
   4  Prefactor     .87928        .32158E-03    .44740E-01    .77979E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.45824
  Normalizat = 0.980373
  Prefactor  = 0.87928
 **********
 **   18 **HESSE 
 **********

 FCN=   4961.766     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      280 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6241        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4582        8.2587        .50000       -.31346    
   3  Normalizat    .98037        .34987E-02    .28090E-03   -.93691    
   4  Prefactor     .87928        .24178E-02    .20277E-03   -.96869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15454e-09
Minuit parameter uncertainties:
  1  8.75728e-06
  2  21.3927
  3  0.00349875
  4  0.00241782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888814': 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) = 4961.76643131
delta logL = -2.11220412893e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.793e-01  2.418e-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:  9.804e-01  3.499e-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/888814/cmap_HighResolution_274320001_274579201_4FGL_J2326.2+0113_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-29 18:54:34.154419', job_id='888814', GAL2='0.88', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632966874.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-2.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='135' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:54:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 888814: <4FGL_J2326.2+0113_daily_bin135> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin135> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:57 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:59 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:40:59 2021
Terminated at Wed Sep 29 18:54:34 2021
Results reported at Wed Sep 29 18:54:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin135 351.575 1.2216 274320001 274579201 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 :                                   575.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

