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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin333
RA = 351.575, Dec = 1.2216
tmin = 325641601, tmax = 325900801
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='890124', job_status='RUN', time_executed='2021-09-29 18:49:32.743719', time_epoch_executed='1632966572.74' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890124/ft1_4FGL_J2326.2+0113_daily_bin333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890124/ft2_4FGL_J2326.2+0113_daily_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890124/ft1_4FGL_J2326.2+0113_daily_bin333.fits outfile=/scratch/kocevski/890124/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin333.fits ra=351.575 dec=1.2216 rad=12.0 tmin=325641601.0 tmax=325900801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.01
user 3.80
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890124/ft1_filtered_4FGL_J2326.2+0113_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/890124/ft2_4FGL_J2326.2+0113_daily_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/890124/ltcube_325641601_325900801_4FGL_J2326.2+0113_daily_bin333.fits outfile=/scratch/kocevski/890124/expmap_325641601_325900801_4FGL_J2326.2+0113_daily_bin333.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/890124/ltcube_325641601_325900801_4FGL_J2326.2+0113_daily_bin333.fits
.....................!
real 190.71
user 185.94
sys 4.26

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/890124/ft1_filtered_4FGL_J2326.2+0113_daily_bin333.fits scfile=/scratch/kocevski/890124/ft2_4FGL_J2326.2+0113_daily_bin333.fits outfile=/scratch/kocevski/890124/cmap_325641601_325900801_4FGL_J2326.2+0113_daily_bin333.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890124/ft1_filtered_4FGL_J2326.2+0113_daily_bin333.fits scfile=/scratch/kocevski/890124/ft2_4FGL_J2326.2+0113_daily_bin333.fits outfile=/scratch/kocevski/890124/cmap_HighResolution_325641601_325900801_4FGL_J2326.2+0113_daily_bin333.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    23.155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17904E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.058       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .29761       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.893       1.0000         .10000E-03   10000.    
    12 'norm      '    .82625E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    156.49       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    31.837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .89778       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.437       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94232       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0406       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=   5766.181     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2741 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7080        .13147E-07** at limit **
   2  norm          23.155        20.316        .35682E-06   -.27939E-04
   3  Prefactor     10.885        24.464        .20156E-06   -.13827E-04
   4  Prefactor     .10002E-03    7.0617        .43272E-06** at limit **
   5  Prefactor     13.056        16.863        .36356E-07   -.20924E-04
   6  Prefactor     .10000E-03    14.348       -.71319E-07** at limit **
   7  Prefactor     .10000E-03    3.2701       -.11685E-07** at limit **
   8  norm          .29766        .57105        .70391E-06   -.13194E-02
   9  norm          .10000E-03    1.3755       -.71045E-08** at limit **
  10  Prefactor     11.531        10.051       -.11009E-06   -.11038E-04
  11  Prefactor     73.906        71.392        .17658E-05    .57024E-05
  12  norm          .10023E-03    5.9772        .13555E-06** at limit **
  13  Prefactor     11.962        8.3634        .51121E-06    .20836E-03
  14  Prefactor     156.60        179.45        .10094E-04    .54511E-04
  15  Prefactor     18.222        20.765       -.38439E-05   -.22640E-03
  16  Prefactor     .10000E-03    11.324        .31448E-07** at limit **
  17  norm          31.889        43.228        .17203E-05   -.52768E-04
  18  Prefactor     .10000E-03    44.012       -.15728E-07** at limit **
  19  Prefactor     .89120        7.5036        .42446E-05   -.15656E-03
  20  Prefactor     .10000E-03    25.074        .10641E-06** at limit **
  21  Prefactor     34.433        28.072        .33753E-06   -.14465E-04
  22  Prefactor     .10000E-03    5.1555       -.31277E-07** at limit **
  23  Normalizat    .94234        .22801       -.98499E-06   -.13114E-03
  24  Prefactor     1.0406        .14997       -.75230E-06   -.10542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 23.1547
  Prefactor  = 10.8846
  Prefactor  = 0.000100016
  Prefactor  = 13.0563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.297656
  norm       = 0.0001
  Prefactor  = 11.5306
  Prefactor  = 73.906
  norm       = 0.000100232
  Prefactor  = 11.9616
  Prefactor  = 156.601
  Prefactor  = 18.2224
  Prefactor  = 0.0001
  norm       = 31.8893
  Prefactor  = 0.0001
  Prefactor  = 0.891197
  Prefactor  = 0.0001
  Prefactor  = 34.4327
  Prefactor  = 0.0001
  Normalizat = 0.942339
  Prefactor  = 1.04063
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.181     FROM HESSE     STATUS=OK           409 CALLS     3150 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          23.155        20.387        .83243E-04   -1.4745    
   3  Prefactor     10.885        24.468        .12147E-03   -1.5048    
   4  Prefactor     .10002E-03    93.064        .39039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.056        16.859        .11085E-03   -1.4985    
   6  Prefactor     .10000E-03    14.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2901        .13410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .29766        .57466        .20829E-03   -1.5599    
   9  norm          .10000E-03    1.3772        .86973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.531        10.048        .11798E-03   -1.5029    
  11  Prefactor     73.906        71.518        .46707E-04   -1.3986    
  12  norm          .10023E-03    6.7721        .54818E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.962        8.4375        .11582E-03   -1.5016    
  14  Prefactor     156.60        185.07        .16115E-03   -1.3199    
  15  Prefactor     18.222        21.128        .93869E-04   -1.4854    
  16  Prefactor     .10000E-03    11.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.889        43.673        .71013E-04   -1.4578    
  18  Prefactor     .10000E-03    44.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .89120        7.5631        .33298E-03   -1.5519    
  20  Prefactor     .10000E-03    25.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.433        28.161        .68288E-04   -1.4534    
  22  Prefactor     .10000E-03    5.1610        .16839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94234        .26482        .31011E-03   -.94988    
  24  Prefactor     1.0406        .17397        .20628E-03   -.91387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52668e-10
Minuit parameter uncertainties:
  1  7.23423e-06
  2  20.3935
  3  24.4903
  4  0.00244351
  5  16.8656
  6  3.7428e-07
  7  2.03339e-06
  8  0.574669
  9  1.32325e-07
  10  10.0497
  11  71.6012
  12  0.0025073
  13  8.43833
  14  185.765
  15  21.1366
  16  4.18087e-06
  17  43.7165
  18  9.74573e-06
  19  5.19299
  20  2.08874e-05
  21  28.1718
  22  2.11157e-06
  23  0.265189
  24  0.174067
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  7.391e+01  7.160e+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.041e+00  1.741e-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.423e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 2.29e-05

TS (Fixed Index): 1.41
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890124/likelihoodResults_325641601_325900801_4FGL_J2326.2+0113_daily_bin333.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) = 5764.42157344
delta logL = 1.75912038423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5764.06660894
delta logL = 2.11408487902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.4569       1.0000          .0000       10.000    
     3 'Normalizat'    .78169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1319       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=   5764.067     FROM MIGRAD    STATUS=FAILED       346 CALLS      728 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .53740E-02    .21721E-03** at limit **
   2  Index         7.4569        2.2189        .27919E-02    .57680E-03
   3  Normalizat    .78225        .11055        .33634E-03    .16157E-03
   4  Prefactor     1.1315        .76689E-01    .19892E-03   -.56261E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5764.067     FROM SIMPLEX   STATUS=UNCHANGED    144 CALLS      872 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .53740E-02    .87298E-05** at limit **
   2  Index         7.4569        2.2189        .27665E-03    .57680E-03
   3  Normalizat    .78225        .11055        .31384E-04    .16157E-03
   4  Prefactor     1.1315        .76689E-01    .53336E-05   -.56261E-04
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 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=   5764.067     FROM MIGRAD    STATUS=FAILED        61 CALLS      933 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .54523E-02    .21721E-03** at limit **
   2  Index         7.4569        2.2334        .86763E-04    .56467E-03
   3  Normalizat    .78225        .11311        .35049E-05    .16166E-03
   4  Prefactor     1.1315        .78570E-01    .79567E-05   -.56147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.45688
  Normalizat = 0.782254
  Prefactor  = 1.13149
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.067     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      962 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .54524E-02    .21721E-03   -45.553    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.4569        2.2334        .86763E-04   -363.91    
   3  Normalizat    .78225        .11310        .35049E-05   -14.701    
   4  Prefactor     1.1315        .78563E-01    .17089E-05   -7.1678    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.86459e-08
Minuit parameter uncertainties:
  1  1.7961e-07
  2  2.34511
  3  0.113137
  4  0.0785707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890124': 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): 1
logL (Free Index) = 5764.0665886
delta logL = 2.11410521921

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.796e-07  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  7.457e+00  2.345e+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.131e+00  7.857e-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:  7.823e-01  1.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.14
Ra Dec: 351.575 1.222
Photon Index (Free Index): 7.46 +/- 2.35
Photon Flux (Free Index): 1.46e-07 +/- 9.82e-07
Energy Flux (Free Index): 1.72e-05 +/- 1.15e-04

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/890124/cmap_HighResolution_325641601_325900801_4FGL_J2326.2+0113_daily_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.72e-05', photon_flux_error='4.35e-08', dlogl='2.11e+00', energy_flux='2.36e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-29 19:00:47.696473', photon_index_error2='2.35', photon_index2='7.46', ts='1.41', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.15e-04', EG='0.94', time_epoch_completed='1632967247.7', return_code='0', job_id='890124', GAL2='1.13', EG2='0.78', return_code2='1', energy_flux_error='2.29e-05', photon_flux_error2='9.82e-07', ts2='6.14', photon_index='2.12' WHERE bin_id='333' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 890124: <4FGL_J2326.2+0113_daily_bin333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin333 351.575 1.2216 325641601 325900801 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

