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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin201
RA = 351.575, Dec = 1.2216
tmin = 291427201, tmax = 291686401
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='889928', job_status='RUN', time_executed='2021-09-29 18:47:23.648367', time_epoch_executed='1632966443.65' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889928/ft1_4FGL_J2326.2+0113_daily_bin201.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889928/ft2_4FGL_J2326.2+0113_daily_bin201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889928/ft1_4FGL_J2326.2+0113_daily_bin201.fits outfile=/scratch/kocevski/889928/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin201.fits ra=351.575 dec=1.2216 rad=12.0 tmin=291427201.0 tmax=291686401.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.48
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889928/ft1_filtered_4FGL_J2326.2+0113_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/889928/ft2_4FGL_J2326.2+0113_daily_bin201.fits sctable="SC_DATA" expcube=/scratch/kocevski/889928/ltcube_291427201_291686401_4FGL_J2326.2+0113_daily_bin201.fits outfile=/scratch/kocevski/889928/expmap_291427201_291686401_4FGL_J2326.2+0113_daily_bin201.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/889928/ltcube_291427201_291686401_4FGL_J2326.2+0113_daily_bin201.fits
.....................!
real 193.08
user 187.75
sys 5.02

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/889928/ft1_filtered_4FGL_J2326.2+0113_daily_bin201.fits scfile=/scratch/kocevski/889928/ft2_4FGL_J2326.2+0113_daily_bin201.fits outfile=/scratch/kocevski/889928/cmap_291427201_291686401_4FGL_J2326.2+0113_daily_bin201.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889928/ft1_filtered_4FGL_J2326.2+0113_daily_bin201.fits scfile=/scratch/kocevski/889928/ft2_4FGL_J2326.2+0113_daily_bin201.fits outfile=/scratch/kocevski/889928/cmap_HighResolution_291427201_291686401_4FGL_J2326.2+0113_daily_bin201.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.575 yref=1.2216 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    89.647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7684       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .86110       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5524       1.0000         .10000E-03   10000.    
    12 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.379       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.180       1.0000         .10000E-03   10000.    
    17 'norm      '    .90861       1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4854       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88889       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0210       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=   7130.789     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2336 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.959        .13300E-05** at limit **
   2  norm          .10000E-03    4.6737        .20640E-07** at limit **
   3  Prefactor     89.642        41.119        .20396E-06    .66175E-04
   4  Prefactor     .10000E-03    14.398       -.12177E-05** at limit **
   5  Prefactor     3.7643        21.881       -.12973E-05    .48800E-04
   6  Prefactor     .10000E-03    14.018        .10964E-05** at limit **
   7  Prefactor     .10000E-03    1.8146        .10868E-06** at limit **
   8  norm          .86097        .83567        .23313E-06    .75991E-03
   9  norm          .10000E-03    1.1130        .11105E-06** at limit **
  10  Prefactor     .10000E-03    7.6075        .53747E-06** at limit **
  11  Prefactor     9.5504        37.023        .92238E-06    .22192E-04
  12  norm          .10000E-03    4.8548        .60692E-06** at limit **
  13  Prefactor     4.4537        8.5884       -.14217E-05    .31455E-03
  14  Prefactor     .10001E-03    183.22        .98324E-05** at limit **
  15  Prefactor     23.388        16.275       -.68628E-05   -.61923E-04
  16  Prefactor     17.185        20.580        .64228E-06    .47111E-04
  17  norm          .81665        149.69        .38265E-04   -.16205E-04
  18  Prefactor     64.726        48.057        .66012E-06    .39732E-05
  19  Prefactor     2.4844        2.9112       -.60672E-06    .33361E-04
  20  Prefactor     .10000E-03    28.067        .17149E-05** at limit **
  21  Prefactor     8.6121        20.723        .85105E-07    .24083E-05
  22  Prefactor     .10000E-03    11.741       -.87572E-06** at limit **
  23  Normalizat    .88888        .19058       -.93398E-08    .90113E-04
  24  Prefactor     1.0211        .12625       -.47858E-06   -.13514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 89.6419
  Prefactor  = 0.0001
  Prefactor  = 3.76432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.86097
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.55043
  norm       = 0.0001
  Prefactor  = 4.45369
  Prefactor  = 0.000100009
  Prefactor  = 23.3883
  Prefactor  = 17.1847
  norm       = 0.816652
  Prefactor  = 64.7259
  Prefactor  = 2.48437
  Prefactor  = 0.0001
  Prefactor  = 8.61208
  Prefactor  = 0.0001
  Normalizat = 0.888879
  Prefactor  = 1.02105
 **********
 **   18 **HESSE 
 **********

 FCN=   7130.789     FROM HESSE     STATUS=OK           397 CALLS     2733 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6915        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     89.642        41.123        .42438E-04   -1.3812    
   4  Prefactor     .10000E-03    14.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7643        21.750        .20797E-03   -1.5320    
   6  Prefactor     .10000E-03    14.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8175        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .86097        .79900        .71532E-03   -1.5522    
   9  norm          .10000E-03    1.1157        .86996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5504        36.996        .12966E-03   -1.5090    
  12  norm          .10000E-03    4.8751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4537        8.5304        .19073E-03   -1.5286    
  14  Prefactor     .10001E-03    181.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.388        17.972        .82843E-04   -1.4740    
  16  Prefactor     17.185        20.537        .96629E-04   -1.4879    
  17  norm          .81665        181.48        .58673E-02   -1.5527    
  18  Prefactor     64.726        48.175        .49880E-04   -1.4097    
  19  Prefactor     2.4844        2.8877        .14418E-03   -1.5393    
  20  Prefactor     .10000E-03    28.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.6121        20.722        .13658E-03   -1.5121    
  22  Prefactor     .10000E-03    11.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88888        .21930        .30349E-03   -.96852    
  24  Prefactor     1.0211        .14593        .19941E-03   -.92031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80076e-08
Minuit parameter uncertainties:
  1  7.42582e-05
  2  1.2846e-05
  3  41.1363
  4  3.48429e-05
  5  18.1067
  6  0.000109932
  7  9.93428e-07
  8  0.799007
  9  7.82238e-07
  10  1.39131e-05
  11  37.0854
  12  5.35537e-06
  13  8.53268
  14  0.00250349
  15  17.9764
  16  20.5455
  17  24.4221
  18  48.2044
  19  2.8879
  20  8.53494e-05
  21  20.7395
  22  2.79534e-05
  23  0.219518
  24  0.14599
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  9.550e+00  3.709e+01  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:  1.021e+00  1.460e-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.889e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889928/likelihoodResults_291427201_291686401_4FGL_J2326.2+0113_daily_bin201.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) = 7130.64085916
delta logL = 0.148600429621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7130.61332794
delta logL = 0.176131648274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7803       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0760       1.0000          .0000       10.000    
     3 'Normalizat'    .86647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0276       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7130.613     FROM MIGRAD    STATUS=FAILED       108 CALLS      289 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7443        611.13        .92008E-03    .19988E-03
   2  Index         3.0778        5.3645        .90537E-02    .67126E-03
   3  Normalizat    .86648        .21650        .30688E-03   -.27784E-05
   4  Prefactor     1.0277        .13461        .19877E-03   -.27454E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7130.613     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      378 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7443        611.13        .16937E-03    .19988E-03
   2  Index         3.0778        5.3645        .75227E-03    .67126E-03
   3  Normalizat    .86648        .21650        .30904E-03   -.27784E-05
   4  Prefactor     1.0277        .13461        .18301E-03   -.27454E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7130.613     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      410 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7443        23.638        .18402E-03   -.90200E-05
   2  Index         3.0778        1.9131        .18107E-02   -.10359E-05
   3  Normalizat    .86648        .21185        .12275E-04   -.27784E-05
   4  Prefactor     1.0277        .14547        .79508E-05   -.28598E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74427
  Index      = 3.07781
  Normalizat = 0.866477
  Prefactor  = 1.02769
 **********
 **   18 **HESSE 
 **********

 FCN=   7130.613     FROM HESSE     STATUS=OK            25 CALLS      435 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7443        17.725        .73606E-05   -1.5272    
   2  Index         3.0778        1.6152        .72430E-04   -.39460    
   3  Normalizat    .86648        .21118        .24551E-05   -.97648    
   4  Prefactor     1.0277        .14520        .15902E-05   -.91812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15643e-13
Minuit parameter uncertainties:
  1  17.7443
  2  1.65017
  3  0.211377
  4  0.145256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889928': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7130.61332455
delta logL = 0.176135044087

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.028e+00  1.453e-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.665e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 351.575 1.222

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/889928/cmap_HighResolution_291427201_291686401_4FGL_J2326.2+0113_daily_bin201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-29 18:58:39.871426', job_id='889928', GAL2='1.03', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1632967119.87', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.76e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='201' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:58:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 889928: <4FGL_J2326.2+0113_daily_bin201> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin201 351.575 1.2216 291427201 291686401 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 :                                   676.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

