/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 209 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2326.2+0113_daily_bin104
RA = 351.575, Dec = 1.2216
tmin = 266284801, tmax = 266544001
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='888767', job_status='RUN', time_executed='2021-09-29 18:44:33.058391', time_epoch_executed='1632966273.06' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888767/ft1_4FGL_J2326.2+0113_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888767/ft2_4FGL_J2326.2+0113_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888767/ft1_4FGL_J2326.2+0113_daily_bin104.fits outfile=/scratch/kocevski/888767/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin104.fits ra=351.575 dec=1.2216 rad=12.0 tmin=266284801.0 tmax=266544001.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 1.40
user 1.23
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888767/ft1_filtered_4FGL_J2326.2+0113_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/888767/ft2_4FGL_J2326.2+0113_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/888767/ltcube_266284801_266544001_4FGL_J2326.2+0113_daily_bin104.fits outfile=/scratch/kocevski/888767/expmap_266284801_266544001_4FGL_J2326.2+0113_daily_bin104.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/888767/ltcube_266284801_266544001_4FGL_J2326.2+0113_daily_bin104.fits
.....................!
real 190.17
user 185.35
sys 4.52

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/888767/ft1_filtered_4FGL_J2326.2+0113_daily_bin104.fits scfile=/scratch/kocevski/888767/ft2_4FGL_J2326.2+0113_daily_bin104.fits outfile=/scratch/kocevski/888767/cmap_266284801_266544001_4FGL_J2326.2+0113_daily_bin104.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888767/ft1_filtered_4FGL_J2326.2+0113_daily_bin104.fits scfile=/scratch/kocevski/888767/ft2_4FGL_J2326.2+0113_daily_bin104.fits outfile=/scratch/kocevski/888767/cmap_HighResolution_266284801_266544001_4FGL_J2326.2+0113_daily_bin104.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10618E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .43798       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.285       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12622E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9184       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8615       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9588       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89439       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89724       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=   6886.488     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2833 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7139       -.58778E-07** at limit **
   2  norm          .10000E-03    27.044       -.50808E-06** at limit **
   3  Prefactor     8.1300        39.584        .18816E-05    .41646E-04
   4  Prefactor     5.9249        6.8431        .88483E-07    .13315E-03
   5  Prefactor     42.544        23.011        .94224E-07    .45861E-04
   6  Prefactor     .10000E-03    54.287       -.29375E-05** at limit **
   7  Prefactor     .10000E-03    2.3921       -.17405E-06** at limit **
   8  norm          .43801        .65456       -.32656E-06   -.94443E-03
   9  norm          .10000E-03    1.1172       -.66024E-07** at limit **
  10  Prefactor     1.7734        5.1780        .12608E-05    .10991E-02
  11  Prefactor     .10000E-03    47.557        .14008E-05** at limit **
  12  norm          15.286        7.9551        .76934E-06    .64132E-03
  13  Prefactor     .10000E-03    4.0905       -.75316E-06** at limit **
  14  Prefactor     .10000E-03    123.96       -.36881E-05** at limit **
  15  Prefactor     .10000E-03    9.1644       -.23642E-06** at limit **
  16  Prefactor     .10259E-03    24.876       -.53104E-05** at limit **
  17  norm          .10000E-03    4.9675       -.26419E-07** at limit **
  18  Prefactor     .10000E-03    26.600       -.80951E-06** at limit **
  19  Prefactor     7.9152        4.1790        .20291E-07    .41559E-03
  20  Prefactor     3.8593        15.725        .93867E-07    .28465E-04
  21  Prefactor     .10000E-03    6.0741       -.15831E-06** at limit **
  22  Prefactor     6.9575        12.730       -.21371E-06    .20712E-04
  23  Normalizat    .89440        .17521        .50205E-06    .41134E-03
  24  Prefactor     .89724        .11953        .62551E-06    .52278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.13001
  Prefactor  = 5.92493
  Prefactor  = 42.5444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.438006
  norm       = 0.0001
  Prefactor  = 1.77341
  Prefactor  = 0.0001
  norm       = 15.2863
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000102588
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.91518
  Prefactor  = 3.85933
  Prefactor  = 0.0001
  Prefactor  = 6.95751
  Normalizat = 0.894404
  Prefactor  = 0.897241
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.488     FROM HESSE     STATUS=OK           399 CALLS     3232 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7166        .15619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1300        39.512        .14023E-03   -1.5138    
   4  Prefactor     5.9249        6.8386        .82484E-03   -1.5221    
   5  Prefactor     42.544        23.013        .61460E-04   -1.4403    
   6  Prefactor     .10000E-03    54.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3988        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .43801        .60007        .81023E-03   -1.5576    
   9  norm          .10000E-03    1.1185        .85650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7734        5.4104        .15709E-02   -1.5442    
  11  Prefactor     .10000E-03    47.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.286        7.8257        .10244E-03   -1.4926    
  13  Prefactor     .10000E-03    21.568        .31408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    123.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10259E-03    142.82        .46565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9694        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9152        4.1760        .57870E-03   -1.5145    
  20  Prefactor     3.8593        15.681        .20536E-03   -1.5315    
  21  Prefactor     .10000E-03    6.0878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.9575        12.749        .15208E-03   -1.5180    
  23  Normalizat    .89440        .20296        .27642E-03   -.96657    
  24  Prefactor     .89724        .13822        .19445E-03   -.96238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86906e-08
Minuit parameter uncertainties:
  1  1.61766e-06
  2  8.03744e-05
  3  35.8842
  4  6.83953
  5  23.0183
  6  0.000191969
  7  5.09657e-07
  8  0.600077
  9  1.16097e-07
  10  5.41191
  11  0.000125895
  12  7.82619
  13  0.000300837
  14  0.000552038
  15  2.30125e-07
  16  0.038546
  17  1.62843e-07
  18  5.26015e-05
  19  4.17612
  20  15.5656
  21  4.02409e-06
  22  12.7543
  23  0.203131
  24  0.138275
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.259e-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.972e-01  1.383e-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.944e-01  2.031e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888767/likelihoodResults_266284801_266544001_4FGL_J2326.2+0113_daily_bin104.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) = 6886.4876449
delta logL = -9.98551322482e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6886.48754493
delta logL = 1.19553078548e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1781       1.0000          .0000       10.000    
     3 'Normalizat'    .89440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89724       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=   6886.488     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6248.4        .90712E-02** at limit **
   2  Index         2.2366        5.7000        .50000       -.10612E-04
   3  Normalizat    .89440        .30383E-01    .44830E-01    .22097E-04
   4  Prefactor     .89724        .21525E-01    .44970E-01    .64031E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.23659
  Normalizat = 0.894402
  Prefactor  = 0.897241
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.488     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7454.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2366        8.5391        .50000       -.58558    
   3  Normalizat    .89440        .48647E-01    .27642E-03   -.96657    
   4  Prefactor     .89724        .34477E-01    .19445E-03   -.96238    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.92389e-08
Minuit parameter uncertainties:
  1  0.0148314
  2  41.1709
  3  0.0486495
  4  0.0344776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888767': 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) = 6886.48754479
delta logL = 2.57331521425e-07

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.483e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.237e+00  4.117e+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.972e-01  3.448e-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.944e-01  4.865e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/888767/cmap_HighResolution_266284801_266544001_4FGL_J2326.2+0113_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-29 18:55:46.495235', job_id='888767', GAL2='0.90', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632966946.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='104' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:55:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 888767: <4FGL_J2326.2+0113_daily_bin104> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin104 351.575 1.2216 266284801 266544001 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

