/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 9 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 = 7342
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2311.0+3425_daily_bin1543
RA = 347.768, Dec = 34.4223
tmin = 639273601, tmax = 639532801
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='688315', job_status='RUN', time_executed='2021-09-29 08:05:48.948162', time_epoch_executed='1632927948.95' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/688315

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/688315/ft1_4FGL_J2311.0+3425_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/688315/ft1_4FGL_J2311.0+3425_daily_bin1543.fits outfile=/scratch/kocevski/688315/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1543.fits ra=347.768 dec=34.4223 rad=12.0 tmin=639273601.0 tmax=639532801.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 5.23
user 5.02
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.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/688315/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1543.fits evtable="EVENTS" outfile="/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/688315/ltcube_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.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/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits
.....................!
real 12.31
user 11.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/688315/ltcube_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.fits outfile=/scratch/kocevski/688315/expmap_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.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/688315/ltcube_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.fits
.....................!
real 193.48
user 187.73
sys 5.32

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2311.0+3425 @ 347.768 34.4223

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits scfile=/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits outfile=/scratch/kocevski/688315/cmap_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.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=347.768 yref=34.4223 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits scfile=/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits outfile=/scratch/kocevski/688315/cmap_HighResolution_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.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=347.768 yref=34.4223 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/688315/Model_4FGL_J2311.0+3425_daily_bin1543.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits.....................!
real 104.64
user 103.29
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits', '/scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits', expMap='/scratch/kocevski/688315/expmap_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.fits', expCube='/scratch/kocevski/688315/ltcube_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/688315/Model_4FGL_J2311.0+3425_daily_bin1543.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.0+3425'

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.866e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/688315/ft1_filtered_4FGL_J2311.0+3425_daily_bin1543.fits
Spacecraft file(s): /scratch/kocevski/688315/ft2_4FGL_J2311.0+3425_daily_bin1543.fits
Exposure map: /scratch/kocevski/688315/expmap_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.fits
Exposure cube: /scratch/kocevski/688315/ltcube_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/688315/Model_4FGL_J2311.0+3425_daily_bin1543.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) = 9047.61676201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.632       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .73187       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12415E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.446       1.0000         .10000E-03   10000.    
    15 'norm      '    .34608E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.189       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.025       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72489       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9047.608     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2742 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.631        23.752        .21546E-05    .19553E-03
   2  norm          .10000E-03    .34769        .10823E-07** at limit **
   3  Prefactor     .10000E-03    18.336        .14790E-05** at limit **
   4  Prefactor     6.7652        9.0080        .22784E-05   -.11737E-02
   5  Prefactor     .10000E-03    18.852        .16563E-05** at limit **
   6  norm          .73287        7.1208       -.56869E-06   -.72924E-03
   7  Prefactor     16.998        17.764       -.20405E-06   -.27164E-04
   8  Prefactor     5.2830        4.7911       -.64979E-06    .70291E-03
   9  Prefactor     .10000E-03    14.282        .12550E-05** at limit **
  10  Prefactor     .10000E-03    30.679        .60860E-06** at limit **
  11  norm          .10000E-03    .48547        .11128E-07** at limit **
  12  Prefactor     .10000E-03    54.949       -.28556E-06** at limit **
  13  Prefactor     .10000E-03    15.478       -.21577E-05** at limit **
  14  Prefactor     30.441        25.284        .25166E-05    .41648E-03
  15  norm          .57610E-01    3.2387       -.17676E-06    .71276E-04
  16  norm          .10000E-03    3.7075        .65698E-09** at limit **
  17  Prefactor     .10000E-03    20.270       -.22609E-05** at limit **
  18  norm          .10000E-03    1.6274        .19577E-07** at limit **
  19  Prefactor     .10000E-03    11.421        .20144E-07** at limit **
  20  Prefactor     44.178        43.434        .11162E-05    .84486E-04
  21  Prefactor     1.9161        342.77       -.40151E-05   -.29364E-04
  22  Prefactor     11.029        9.4960       -.97870E-06   -.55132E-03
  23  Normalizat    .72488        .23376       -.13442E-05    .49741E-04
  24  Prefactor     1.1767        .99912E-01    .22838E-09    .12384E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.6305
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.76522
  Prefactor  = 0.000100001
  norm       = 0.732875
  Prefactor  = 16.9976
  Prefactor  = 5.28296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.4407
  norm       = 0.0576101
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.1785
  Prefactor  = 1.91611
  Prefactor  = 11.0286
  Normalizat = 0.724881
  Prefactor  = 1.17671
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.631        23.992        .90395E-04   -1.4822    
   2  norm          .10000E-03    .35544        .54736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7652        8.9755        .77139E-03   -1.5188    
   5  Prefactor     .10000E-03    19.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .73287        5.9967        .36489E-03   -1.5537    
   7  Prefactor     16.998        17.759        .97146E-04   -1.4883    
   8  Prefactor     5.2830        4.8971        .87440E-03   -1.5248    
   9  Prefactor     .10000E-03    14.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .49507        .64666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    55.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.441        25.951        .72614E-04   -1.4604    
  15  norm          .57610E-01    3.5292        .55375E-01   -1.5660    
  16  norm          .10000E-03    3.7114        .17887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6612        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.178        43.546        .60310E-04   -1.4378    
  21  Prefactor     1.9161        323.94        .28514E-03   -1.5431    
  22  Prefactor     11.029        9.2939        .12066E-03   -1.5044    
  23  Normalizat    .72488        .25648        .46046E-03   -1.0292    
  24  Prefactor     1.1767        .11103        .16020E-03   -.87051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03864e-09
Minuit parameter uncertainties:
  1  24.0035
  2  4.94832e-07
  3  0.000222609
  4  8.97727
  5  0.000252068
  6  4.19306
  7  17.7644
  8  4.89746
  9  0.000156931
  10  0.000133078
  11  8.33254e-07
  12  0.000221878
  13  0.000247307
  14  25.9606
  15  0.901085
  16  1.0507e-06
  17  0.000380909
  18  3.13097e-06
  19  3.08393e-06
  20  43.5769
  21  50.1048
  22  9.29509
  23  0.256905
  24  0.111051
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.000e-04  8.333e-07  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.177e+00  1.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.249e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.768 34.422
Photon Flux Upper Limit: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/688315/likelihoodResults_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.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): 0
logL (Free Index) = 9047.60831292
delta logL = -5.25834020664e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9047.60830652
delta logL = -4.61869658466e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3417       1.0000          .0000       5.0000    
     3 'Normalizat'    .72489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9047.608     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      246 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.6574        .90712E-02** at limit **
   2  alpha         2.4347        3.6776        .44575       -.22189E-07
   3  Normalizat    .72488        .25862E-01    .10387       -.83403E-04
   4  Prefactor     1.1767        .11256E-01    .35206E-01   -.34912E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.43474
  Normalizat = 0.724879
  Prefactor  = 1.17671
 **********
 **   18 **HESSE 
 **********

 FCN=   9047.608     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51007        .13011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4347        3.0396        .17830       -.26107E-01
   3  Normalizat    .72488        .24868        .46047E-03   -1.0292    
   4  Prefactor     1.1767        .10880        .16020E-03   -.87051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75649e-10
Minuit parameter uncertainties:
  1  1.55185e-05
  2  100.813
  3  0.249069
  4  0.108818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/688315': 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) = 9047.60825849
delta logL = 1.84410237125e-06

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.000e-04  1.552e-05  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.435e+00  1.008e+02  0.000e+00  5.000e+00 ( 1.000e+00)
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.177e+00  1.088e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.249e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.768 34.422

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/688315/cmap_HighResolution_639273601_639532801_4FGL_J2311.0+3425_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-29 08:19:41.158125', job_id='688315', GAL2='1.18', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632928781.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1543' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:19:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 688315: <4FGL_J2311.0+3425_daily_bin1543> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin1543> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 08:05:30 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:05:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 08:05:32 2021
Terminated at Wed Sep 29 08:19:41 2021
Results reported at Wed Sep 29 08:19:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin1543 347.768 34.4223 639273601 639532801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+3425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   824.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

