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


Performing analysis on: 4FGL_J2311.0+3425_daily_bin2
RA = 347.768, Dec = 34.4223
tmin = 239846401, tmax = 240105601
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='680432', job_status='RUN', time_executed='2021-09-29 07:40:49.237899', time_epoch_executed='1632926449.24' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680432/ft1_4FGL_J2311.0+3425_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680432/ft2_4FGL_J2311.0+3425_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680432/ft1_4FGL_J2311.0+3425_daily_bin2.fits outfile=/scratch/kocevski/680432/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin2.fits ra=347.768 dec=34.4223 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.45
user 1.27
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680432/ft2_4FGL_J2311.0+3425_daily_bin2.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/680432/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/680432/ft1_filtered_4FGL_J2311.0+3425_daily_bin2.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/680432/ft1_filtered_4FGL_J2311.0+3425_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/680432/ft2_4FGL_J2311.0+3425_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/680432/ltcube_239846401_240105601_4FGL_J2311.0+3425_daily_bin2.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/680432/ft2_4FGL_J2311.0+3425_daily_bin2.fits
.....................!
real 13.05
user 12.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680432/ft1_filtered_4FGL_J2311.0+3425_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/680432/ft2_4FGL_J2311.0+3425_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/680432/ltcube_239846401_240105601_4FGL_J2311.0+3425_daily_bin2.fits outfile=/scratch/kocevski/680432/expmap_239846401_240105601_4FGL_J2311.0+3425_daily_bin2.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/680432/ltcube_239846401_240105601_4FGL_J2311.0+3425_daily_bin2.fits
.....................!
real 192.89
user 185.76
sys 5.33

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/680432/ft1_filtered_4FGL_J2311.0+3425_daily_bin2.fits scfile=/scratch/kocevski/680432/ft2_4FGL_J2311.0+3425_daily_bin2.fits outfile=/scratch/kocevski/680432/cmap_239846401_240105601_4FGL_J2311.0+3425_daily_bin2.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680432/ft1_filtered_4FGL_J2311.0+3425_daily_bin2.fits scfile=/scratch/kocevski/680432/ft2_4FGL_J2311.0+3425_daily_bin2.fits outfile=/scratch/kocevski/680432/cmap_HighResolution_239846401_240105601_4FGL_J2311.0+3425_daily_bin2.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .50509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14855E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.699       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.116       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5162       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.133       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4503       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17107E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .45229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.249       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5197       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8080       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4656       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80073       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=   12662.02     FROM MIGRAD    STATUS=CONVERGED    983 CALLS     3213 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3591        .18142E-02** at limit **
   2  norm          .50516        .78602        .12129E-03   -.31681E-04
   3  Prefactor     .10000E-03    38.833        .18142E-02** at limit **
   4  Prefactor     7.1498        5.6357        .14988E-03    .33285E-03
   5  Prefactor     .10000E-03    5.3083        .18142E-02** at limit **
   6  norm          .10000E-03    8.7626        .30743E-02** at limit **
   7  Prefactor     .10000E-03    19.834        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.3562        .18142E-02** at limit **
   9  Prefactor     12.697        9.0706        .11241E-03   -.76865E-05
  10  Prefactor     31.116        22.565        .71829E-04    .25324E-05
  11  norm          1.5159        1.0133        .89008E-04    .99627E-05
  12  Prefactor     24.113        22.057        .81541E-04   -.64135E-05
  13  Prefactor     1.9752        14.543        .29475E-03   -.19980E-04
  14  Prefactor     .10000E-03    6.0409        .18142E-02** at limit **
  15  norm          6.4484        5.1093        .15803E-03   -.20144E-05
  16  norm          .10000E-03    3.5075        .18142E-02** at limit **
  17  Prefactor     .10000E-03    10.643        .88737E-01** at limit **
  18  norm          .45287        1.4975        .24180E-03   -.84159E-04
  19  Prefactor     30.248        17.012        .72848E-04    .14982E-04
  20  Prefactor     4.4335        49.226        .18937E-03   -.26175E-04
  21  Prefactor     .10000E-03    16.471        .18142E-02** at limit **
  22  Prefactor     6.8074        5.8542        .15377E-03   -.88718E-05
  23  Normalizat    1.4662        .21065        .32236E-03    .63762E-04
  24  Prefactor     .80048        .85584E-01    .17953E-03    .88654E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.505161
  Prefactor  = 0.0001
  Prefactor  = 7.14982
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6972
  Prefactor  = 31.1163
  norm       = 1.51593
  Prefactor  = 24.1127
  Prefactor  = 1.97524
  Prefactor  = 0.0001
  norm       = 6.4484
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.452869
  Prefactor  = 30.2478
  Prefactor  = 4.4335
  Prefactor  = 0.0001
  Prefactor  = 6.80741
  Normalizat = 1.46618
  Prefactor  = 0.800475
 **********
 **   18 **HESSE 
 **********

 FCN=   12662.02     FROM HESSE     STATUS=OK           383 CALLS     3596 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .50516        .78593        .48517E-05   -1.5566    
   3  Prefactor     .10000E-03    38.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1498        5.6107        .59951E-05   -1.5173    
   5  Prefactor     .10000E-03    5.3086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.8319        .61486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.697        9.0705        .44963E-05   -1.4995    
  10  Prefactor     31.116        22.566        .28732E-05   -1.4592    
  11  norm          1.5159        1.0133        .35603E-05   -1.5462    
  12  Prefactor     24.113        22.060        .32616E-05   -1.4725    
  13  Prefactor     1.9752        14.526        .11790E-04   -1.5427    
  14  Prefactor     .10000E-03    6.0412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4484        5.1017        .63211E-05   -1.5200    
  16  norm          .10000E-03    3.5081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.130        .91855E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .45287        1.4972        .96722E-05   -1.5573    
  19  Prefactor     30.248        17.014        .29139E-05   -1.4607    
  20  Prefactor     4.4335        49.220        .75748E-05   -1.5287    
  21  Prefactor     .10000E-03    16.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8074        5.8541        .61509E-05   -1.5186    
  23  Normalizat    1.4662        .21082        .12894E-04   -.78733    
  24  Prefactor     .80048        .85660E-01    .71813E-05   -.99711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49484e-10
Minuit parameter uncertainties:
  1  6.00911e-06
  2  0.785948
  3  4.63157e-05
  4  5.61112
  5  7.35058e-06
  6  0.00022679
  7  1.31812e-05
  8  5.30533e-06
  9  9.07145
  10  22.572
  11  1.01331
  12  22.0677
  13  10.7166
  14  5.26061e-07
  15  5.10205
  16  9.82868e-09
  17  4.10984e-06
  18  1.49731
  19  17.0163
  20  29.5748
  21  4.0838e-06
  22  5.85463
  23  0.210943
  24  0.0856747
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.516e+00  1.013e+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.005e-01  8.567e-02  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.466e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.19e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 9.95e-06

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) = 12661.3045305
delta logL = 0.712241589214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12661.2883872
delta logL = 0.728384941503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94334       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4479       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79450       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=   12661.29     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94331        .66318        .12964E-01   -.48216E-03
   2  alpha         1.4479        .33787        .43911       -.90366E-04
   3  Normalizat    1.4944        .16815        .72289E-01    .62211E-04
   4  Prefactor     .79451        .72042E-01    .43646E-01    .11242E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.943312
  alpha      = 1.44794
  Normalizat = 1.49442
  Prefactor  = 0.794511
 **********
 **   18 **HESSE 
 **********

 FCN=   12661.29     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94331        .87114        .72551E-04   -1.5514    
   2  alpha         1.4479        .54122        .15921E-01   -.43436    
   3  Normalizat    1.4944        .19499        .31985E-03   -.77935    
   4  Prefactor     .79451        .83601E-01    .18012E-03   -.99931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84869e-11
Minuit parameter uncertainties:
  1  0.871155
  2  0.546496
  3  0.195084
  4  0.0836147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680432': 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) = 12661.2883872
delta logL = 0.728384948719

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  9.433e-01  8.712e-01  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  1.448e+00  5.465e-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:  7.945e-01  8.361e-02  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.494e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.88
Ra Dec: 347.768 34.422
Photon Index (Free Index): 1.45 +/- 0.55
Photon Flux (Free Index): 1.77e-08 +/- 1.66e-08
Energy Flux (Free Index): 2.61e-05 +/- 2.53e-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/680432/cmap_HighResolution_239846401_240105601_4FGL_J2311.0+3425_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.19e-08', energy_flux2='2.61e-05', photon_flux_error='2.80e-08', dlogl='7.28e-01', energy_flux='1.49e-05', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-29 07:57:05.814949', photon_index_error2='0.55', photon_index2='1.45', ts='5.41', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='1.47', time_epoch_completed='1632927425.82', return_code='0', job_id='680432', GAL2='0.79', EG2='1.49', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='1.66e-08', ts2='6.88', photon_index='2.24' WHERE bin_id='2' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 680432: <4FGL_J2311.0+3425_daily_bin2> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin2> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 07:40:32 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:40: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 07:40:33 2021
Terminated at Wed Sep 29 07:57:06 2021
Results reported at Wed Sep 29 07:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin2 347.768 34.4223 239846401 240105601 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 :                                   969.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

