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


Performing analysis on: 4FGL_J2311.0+3425_daily_bin1409
RA = 347.768, Dec = 34.4223
tmin = 604540801, tmax = 604800001
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='688126', job_status='RUN', time_executed='2021-09-29 08:07:41.637346', time_epoch_executed='1632928061.64' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/688126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/688126/ft1_4FGL_J2311.0+3425_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/688126/ft1_4FGL_J2311.0+3425_daily_bin1409.fits outfile=/scratch/kocevski/688126/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1409.fits ra=347.768 dec=34.4223 rad=12.0 tmin=604540801.0 tmax=604800001.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.66
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/688126/ltcube_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.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/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits
.....................!
real 11.90
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/688126/ltcube_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.fits outfile=/scratch/kocevski/688126/expmap_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.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/688126/ltcube_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.fits
.....................!
real 190.64
user 185.57
sys 4.74

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/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits scfile=/scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits outfile=/scratch/kocevski/688126/cmap_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits scfile=/scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits outfile=/scratch/kocevski/688126/cmap_HighResolution_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/688126/Model_4FGL_J2311.0+3425_daily_bin1409.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/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits.....................!
real 93.12
user 91.81
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits', '/scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits', expMap='/scratch/kocevski/688126/expmap_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.fits', expCube='/scratch/kocevski/688126/ltcube_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/688126/Model_4FGL_J2311.0+3425_daily_bin1409.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/688126/ft1_filtered_4FGL_J2311.0+3425_daily_bin1409.fits
Spacecraft file(s): /scratch/kocevski/688126/ft2_4FGL_J2311.0+3425_daily_bin1409.fits
Exposure map: /scratch/kocevski/688126/expmap_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.fits
Exposure cube: /scratch/kocevski/688126/ltcube_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/688126/Model_4FGL_J2311.0+3425_daily_bin1409.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) = 8005.95880583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.292       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6028       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2274       1.0000         .10000E-03   10000.    
    15 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2656       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .73601       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1878       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89183       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8005.927     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     3189 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9439        .18142E-02** at limit **
   2  norm          1.9672        1.2522        .73007E-04    .45626E-04
   3  Prefactor     72.277        62.833        .23609E-03   -.30145E-04
   4  Prefactor     .10004E-03    12.224        .33347E-02** at limit **
   5  Prefactor     13.754        25.077        .10798E-03   -.27059E-04
   6  norm          .10000E-03    1.0986        .91273E-03** at limit **
   7  Prefactor     13.607        15.499        .10858E-03   -.11308E-04
   8  Prefactor     .10000E-03    4.3296        .18060E-02** at limit **
   9  Prefactor     .10000E-03    5.7592        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.703        .18142E-02** at limit **
  11  norm          1.6031        1.1274        .76686E-04   -.12008E-04
  12  Prefactor     17.937        25.750        .94478E-04   -.13621E-03
  13  Prefactor     9.6253        9.0692        .12917E-03   -.80882E-04
  14  Prefactor     2.2393        31.799        .27548E-03    .25627E-04
  15  norm          .10000E-03    1.7796        .11613E-02** at limit **
  16  norm          1.6185        9.9873        .33204E-03   -.40402E-05
  17  Prefactor     6.2663        15.253        .16037E-03   -.15880E-04
  18  norm          .10000E-03    1.5871        .21672E-03** at limit **
  19  Prefactor     .10000E-03    6.0202        .18142E-02** at limit **
  20  Prefactor     .72020        34.805        .13169        .27001E-03
  21  Prefactor     .10000E-03    12.452        .18142E-02** at limit **
  22  Prefactor     .10005E-03    22.063        .33586E-02** at limit **
  23  Normalizat    1.1873        .25988        .16631E-02   -.20255E-03
  24  Prefactor     .89209        .10622        .16591E-03    .18918E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.96715
  Prefactor  = 72.2774
  Prefactor  = 0.00010004
  Prefactor  = 13.754
  norm       = 0.0001
  Prefactor  = 13.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60315
  Prefactor  = 17.9371
  Prefactor  = 9.62532
  Prefactor  = 2.23931
  norm       = 0.0001
  norm       = 1.61849
  Prefactor  = 6.26633
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.720196
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Normalizat = 1.18726
  Prefactor  = 0.892088
 **********
 **   18 **HESSE 
 **********

 FCN=   8005.927     FROM HESSE     STATUS=OK           383 CALLS     3572 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9672        1.2521        .29203E-05   -1.5427    
   3  Prefactor     72.277        62.832        .94435E-05   -1.4006    
   4  Prefactor     .10004E-03    12.369        .66694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.754        25.072        .43190E-05   -1.4966    
   6  norm          .10000E-03    1.0987        .18255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.607        15.499        .43431E-05   -1.4970    
   8  Prefactor     .10000E-03    4.3318        .36120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6031        1.1274        .30674E-05   -1.5455    
  12  Prefactor     17.937        25.752        .37791E-05   -1.4861    
  13  Prefactor     9.6253        9.0689        .51669E-05   -1.5087    
  14  Prefactor     2.2393        31.796        .11019E-04   -1.5409    
  15  norm          .10000E-03    1.7797        .23226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6185        9.9860        .13282E-04   -1.5454    
  17  Prefactor     6.2663        15.253        .64147E-05   -1.5207    
  18  norm          .10000E-03    1.5872        .43344E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .72020        32.870        .13677       -1.5538    
  21  Prefactor     .10000E-03    12.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    22.549        .67172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1873        .26027        .66522E-04   -.86997    
  24  Prefactor     .89209        .10642        .33182E-04   -.96418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27456e-09
Minuit parameter uncertainties:
  1  9.70407e-06
  2  1.25207
  3  62.8901
  4  0.00141112
  5  25.0915
  6  5.55932e-06
  7  15.5031
  8  2.20909e-05
  9  3.306e-05
  10  4.25401e-05
  11  1.12744
  12  25.7677
  13  9.07016
  14  16.8865
  15  2.17245e-06
  16  8.04218
  17  15.2622
  18  5.0171e-06
  19  1.12655e-05
  20  9.736
  21  4.04521e-05
  22  0.00215979
  23  0.260558
  24  0.106442
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.603e+00  1.127e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.921e-01  1.064e-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:  1.187e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.18
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.11e-05

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) = 8005.14044653
delta logL = 0.786982966466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8005.12561666
delta logL = 0.80181282984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44850       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0729       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88708       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=   8005.126     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44904        .43162        .11059E-01   -.49660E-03
   2  alpha         1.0730        .41345        .38419       -.49830E-04
   3  Normalizat    1.2229        .20002        .74232E-01    .15983E-04
   4  Prefactor     .88700        .88337E-01    .44840E-01    .22161E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.449043
  alpha      = 1.07299
  Normalizat = 1.22286
  Prefactor  = 0.886997
 **********
 **   18 **HESSE 
 **********

 FCN=   8005.126     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44904        .93091        .49286E-03   -1.5574    
   2  alpha         1.0730        .84355        .15528E-01   -.60749    
   3  Normalizat    1.2229        .23312        .32851E-03   -.85899    
   4  Prefactor     .88700        .10311        .16642E-03   -.96597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39158e-09
Minuit parameter uncertainties:
  1  0.930938
  2  0.869298
  3  0.233316
  4  0.103132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/688126': 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) = 8005.12561557
delta logL = 0.80181391889

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  4.490e-01  9.309e-01  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  1.073e+00  8.693e-01  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:  8.870e-01  1.031e-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:  1.223e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.77
Ra Dec: 347.768 34.422
Photon Index (Free Index): 1.07 +/- 0.87
Photon Flux (Free Index): 9.37e-09 +/- 1.47e-08
Energy Flux (Free Index): 3.66e-05 +/- 5.17e-05

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/688126/cmap_HighResolution_604540801_604800001_4FGL_J2311.0+3425_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='3.66e-05', photon_flux_error='3.12e-08', dlogl='8.02e-01', energy_flux='1.57e-05', photon_flux2='9.37e-09', job_status='DONE', time_completed='2021-09-29 08:20:26.042926', photon_index_error2='0.87', photon_index2='1.07', ts='8.18', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='5.17e-05', EG='1.19', time_epoch_completed='1632928826.04', return_code='0', job_id='688126', GAL2='0.89', EG2='1.22', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='1.47e-08', ts2='9.77', photon_index='2.24' WHERE bin_id='1409' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:20:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 688126: <4FGL_J2311.0+3425_daily_bin1409> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin1409> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 08:05:14 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:05: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 08:05:16 2021
Terminated at Wed Sep 29 08:20:27 2021
Results reported at Wed Sep 29 08:20:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin1409 347.768 34.4223 604540801 604800001 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

