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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin170
RA = 351.575, Dec = 1.2216
tmin = 283392001, tmax = 283651201
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='889884', job_status='RUN', time_executed='2021-09-29 18:47:54.691568', time_epoch_executed='1632966474.69' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889884

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889884/ft1_4FGL_J2326.2+0113_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889884/ft2_4FGL_J2326.2+0113_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889884/ft1_4FGL_J2326.2+0113_daily_bin170.fits outfile=/scratch/kocevski/889884/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin170.fits ra=351.575 dec=1.2216 rad=12.0 tmin=283392001.0 tmax=283651201.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.65
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889884/ft1_filtered_4FGL_J2326.2+0113_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/889884/ft2_4FGL_J2326.2+0113_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/889884/ltcube_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.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/889884/ft2_4FGL_J2326.2+0113_daily_bin170.fits
.....................!
real 14.23
user 13.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889884/ft1_filtered_4FGL_J2326.2+0113_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/889884/ft2_4FGL_J2326.2+0113_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/889884/ltcube_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.fits outfile=/scratch/kocevski/889884/expmap_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.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/889884/ltcube_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.fits
.....................!
real 190.89
user 185.36
sys 5.15

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/889884/ft1_filtered_4FGL_J2326.2+0113_daily_bin170.fits scfile=/scratch/kocevski/889884/ft2_4FGL_J2326.2+0113_daily_bin170.fits outfile=/scratch/kocevski/889884/cmap_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889884/ft1_filtered_4FGL_J2326.2+0113_daily_bin170.fits scfile=/scratch/kocevski/889884/ft2_4FGL_J2326.2+0113_daily_bin170.fits outfile=/scratch/kocevski/889884/cmap_HighResolution_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7959       1.0000         .10000E-03   10000.    
     2 'norm      '    .45843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0584       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32287E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .87431       1.0000         .10000E-03   10000.    
     9 'norm      '    .93010E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25705E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12594E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0204       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1491       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1404       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83938       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=   5480.178     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2780 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8045        11.592       -.84325E-06   -.12353E-04
   2  norm          .44174        8.4563       -.42656E-05    .50053E-03
   3  Prefactor     .10000E-03    21.201        .50379E-07** at limit **
   4  Prefactor     9.8021        15.742        .14633E-06    .13743E-04
   5  Prefactor     .10000E-03    12.883        .19525E-06** at limit **
   6  Prefactor     6.1763        105.96        .40811E-05    .10925E-03
   7  Prefactor     .10106E-03    12.860       -.21808E-05** at limit **
   8  norm          .87464        .87650       -.24441E-06   -.15538E-02
   9  norm          .63209E-01    132.22       -.15846E-04    .76546E-04
  10  Prefactor     10.027        7.6175       -.11856E-06    .57836E-04
  11  Prefactor     .10002E-03    285.82        .29747E-05** at limit **
  12  norm          3.9123        6.5831        .77720E-06    .21951E-03
  13  Prefactor     .10006E-03    47.220        .87808E-05** at limit **
  14  Prefactor     .10000E-03    51.995        .26345E-06** at limit **
  15  Prefactor     .10000E-03    4.0764        .25990E-06** at limit **
  16  Prefactor     .10000E-03    92.959       -.15092E-05** at limit **
  17  norm          .10000E-03    7.0683        .10975E-06** at limit **
  18  Prefactor     17.775        50.466       -.40856E-05   -.25400E-05
  19  Prefactor     .10000E-03    2.1909        .36952E-06** at limit **
  20  Prefactor     4.0359        40.647       -.75013E-06   -.12141E-04
  21  Prefactor     2.0136        116.17       -.13632E-05    .14807E-04
  22  Prefactor     6.1512        9.2950       -.33909E-07   -.11060E-04
  23  Normalizat    1.1405        .22651        .79837E-05    .31363E-03
  24  Prefactor     .83933        .14290       -.55882E-05   -.25472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8045
  norm       = 0.441739
  Prefactor  = 0.0001
  Prefactor  = 9.8021
  Prefactor  = 0.0001
  Prefactor  = 6.17629
  Prefactor  = 0.000101063
  norm       = 0.874637
  norm       = 0.0632089
  Prefactor  = 10.0268
  Prefactor  = 0.000100022
  norm       = 3.91234
  Prefactor  = 0.000100057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7752
  Prefactor  = 0.0001
  Prefactor  = 4.03592
  Prefactor  = 2.01356
  Prefactor  = 6.15116
  Normalizat = 1.14046
  Prefactor  = 0.839327
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.178     FROM HESSE     STATUS=OK           421 CALLS     3201 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8045        11.590        .14361E-03   -1.5149    
   2  norm          .44174        13.486        .32968E-02   -1.5575    
   3  Prefactor     .10000E-03    21.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8021        15.732        .12799E-03   -1.5082    
   5  Prefactor     .10000E-03    12.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1763        113.35        .16312E-03   -1.5211    
   7  Prefactor     .10106E-03    89.919        .37607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .87464        .84460        .66245E-03   -1.5521    
   9  norm          .63209E-01    9.2710        .52122E-01   -1.5658    
  10  Prefactor     10.027        7.6152        .12654E-03   -1.5075    
  11  Prefactor     .10002E-03    296.17        .42908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9123        6.9111        .20404E-03   -1.5312    
  13  Prefactor     .10006E-03    11.516        .51144E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    51.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0949        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    95.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.0741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.775        50.702        .94943E-04   -1.4865    
  19  Prefactor     .10000E-03    2.2260        .10722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0359        40.452        .20052E-03   -1.5306    
  21  Prefactor     2.0136        115.31        .29115E-03   -1.5424    
  22  Prefactor     6.1512        9.2920        .16190E-03   -1.5212    
  23  Normalizat    1.1405        .24780        .26285E-03   -.88463    
  24  Prefactor     .83933        .15664        .20501E-03   -.98295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54937e-08
Minuit parameter uncertainties:
  1  11.5934
  2  4.88222
  3  7.6224e-05
  4  15.7389
  5  8.88291e-05
  6  53.0354
  7  0.0195864
  8  0.844613
  9  1.53006
  10  7.61593
  11  0.005148
  12  6.91254
  13  0.00161531
  14  6.12481e-05
  15  3.76693e-05
  16  0.000238119
  17  2.50555e-05
  18  50.8255
  19  4.1386e-05
  20  25.5767
  21  30.5368
  22  9.29416
  23  0.248057
  24  0.156727
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  5.148e-03  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.393e-01  1.567e-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.140e+00  2.481e-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: 8.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889884/likelihoodResults_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.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) = 5480.17762137
delta logL = -1.59561077453e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5480.17760564
delta logL = -2.28846147365e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28540E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1478       1.0000          .0000       10.000    
     3 'Normalizat'    1.1405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83933       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=   5480.178     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      276 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    8658.9        .42821E-02** at limit **
   2  Index         2.1511        6.2607        .50000       -.43255E-05
   3  Normalizat    1.1404        .30559E-01    .26286E-03    .77851E-04
   4  Prefactor     .83933        .20896E-01    .20501E-03    .12294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Index      = 2.1511
  Normalizat = 1.14045
  Prefactor  = 0.839333
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    9601.6        .85643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1511        8.9232        .50000       -.60624    
   3  Normalizat    1.1404        .61698E-01    .10514E-04   -.88464    
   4  Prefactor     .83933        .42190E-01    .82003E-05   -.98294    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73264e-08
Minuit parameter uncertainties:
  1  0.064051
  2  42.5599
  3  0.0617016
  4  0.0421918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889884': 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) = 5480.17760538
delta logL = 3.22525011143e-08

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  6.405e-02  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.151e+00  4.256e+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.393e-01  4.219e-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:  1.140e+00  6.170e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/889884/cmap_HighResolution_283392001_283651201_4FGL_J2326.2+0113_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-29 18:58:13.488941', job_id='889884', GAL2='0.84', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632967093.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='170' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 889884: <4FGL_J2326.2+0113_daily_bin170> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin170> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:45:14 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:45:16 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:45:16 2021
Terminated at Wed Sep 29 18:58:13 2021
Results reported at Wed Sep 29 18:58:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin170 351.575 1.2216 283392001 283651201 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 :                                   617.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

