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


Performing analysis on: 4FGL_J2311.0+3425_daily_bin97
RA = 347.768, Dec = 34.4223
tmin = 264470401, tmax = 264729601
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='680600', job_status='RUN', time_executed='2021-09-29 07:43:57.982504', time_epoch_executed='1632926637.98' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='97'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680600/ft1_4FGL_J2311.0+3425_daily_bin97.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680600/ft2_4FGL_J2311.0+3425_daily_bin97.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680600/ft1_4FGL_J2311.0+3425_daily_bin97.fits outfile=/scratch/kocevski/680600/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin97.fits ra=347.768 dec=34.4223 rad=12.0 tmin=264470401.0 tmax=264729601.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.52
user 1.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680600/ft1_filtered_4FGL_J2311.0+3425_daily_bin97.fits" evtable="EVENTS" scfile=/scratch/kocevski/680600/ft2_4FGL_J2311.0+3425_daily_bin97.fits sctable="SC_DATA" outfile=/scratch/kocevski/680600/ltcube_264470401_264729601_4FGL_J2311.0+3425_daily_bin97.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/680600/ft2_4FGL_J2311.0+3425_daily_bin97.fits
.....................!
real 12.49
user 12.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680600/ft1_filtered_4FGL_J2311.0+3425_daily_bin97.fits evtable="EVENTS" scfile=/scratch/kocevski/680600/ft2_4FGL_J2311.0+3425_daily_bin97.fits sctable="SC_DATA" expcube=/scratch/kocevski/680600/ltcube_264470401_264729601_4FGL_J2311.0+3425_daily_bin97.fits outfile=/scratch/kocevski/680600/expmap_264470401_264729601_4FGL_J2311.0+3425_daily_bin97.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/680600/ltcube_264470401_264729601_4FGL_J2311.0+3425_daily_bin97.fits
.....................!
real 190.61
user 186.20
sys 4.09

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/680600/ft1_filtered_4FGL_J2311.0+3425_daily_bin97.fits scfile=/scratch/kocevski/680600/ft2_4FGL_J2311.0+3425_daily_bin97.fits outfile=/scratch/kocevski/680600/cmap_264470401_264729601_4FGL_J2311.0+3425_daily_bin97.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680600/ft1_filtered_4FGL_J2311.0+3425_daily_bin97.fits scfile=/scratch/kocevski/680600/ft2_4FGL_J2311.0+3425_daily_bin97.fits outfile=/scratch/kocevski/680600/cmap_HighResolution_264470401_264729601_4FGL_J2311.0+3425_daily_bin97.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.430       1.0000         .10000E-03   10000.    
     2 'norm      '    7.5123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.280       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2863       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.252       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.253       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2541       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2508       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0621       1.0000         .10000E-03   10000.    
    16 'norm      '    10.186       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0393       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0463       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87031       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=   10495.30     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2681 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.432        14.207       -.63802E-07   -.22758E-06
   2  norm          7.5123        1.4916       -.32821E-07    .27732E-04
   3  Prefactor     18.220        42.656       -.79508E-05   -.24427E-03
   4  Prefactor     5.2859        4.1884        .96020E-08    .55190E-05
   5  Prefactor     11.250        15.762        .14304E-05   -.21363E-04
   6  norm          .10000E-03    1.0578       -.13420E-07** at limit **
   7  Prefactor     10.252        14.798        .50985E-07    .41701E-05
   8  Prefactor     4.2540        4.0386        .30242E-07    .92063E-05
   9  Prefactor     4.2509        4.1850       -.28619E-05    .26419E-03
  10  Prefactor     .10000E-03    55.491        .13982E-05** at limit **
  11  norm          2.7017        1.2796        .13774E-07   -.19396E-04
  12  Prefactor     .10000E-03    11.839        .83985E-07** at limit **
  13  Prefactor     .10000E-03    5.1825        .35212E-07** at limit **
  14  Prefactor     .10000E-03    3.9302        .20326E-07** at limit **
  15  norm          9.0608        4.5826        .54693E-08    .10162E-04
  16  norm          10.185        8.1584       -.45098E-07   -.27781E-05
  17  Prefactor     .10000E-03    6.2649        .35735E-07** at limit **
  18  norm          .10000E-03    1.1717        .52500E-07** at limit **
  19  Prefactor     8.0392        10.315       -.23056E-07    .39615E-07
  20  Prefactor     .10000E-03    15.133        .11132E-06** at limit **
  21  Prefactor     .10000E-03    39.363       -.62662E-06** at limit **
  22  Prefactor     .10000E-03    3.0015        .17044E-07** at limit **
  23  Normalizat    1.0462        .18154       -.51269E-06    .28200E-04
  24  Prefactor     .87039        .79468E-01    .41951E-06   -.10257E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4316
  norm       = 7.51229
  Prefactor  = 18.2201
  Prefactor  = 5.28592
  Prefactor  = 11.2502
  norm       = 0.0001
  Prefactor  = 10.2517
  Prefactor  = 4.25403
  Prefactor  = 4.2509
  Prefactor  = 0.0001
  norm       = 2.70167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.06075
  norm       = 10.1851
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.03916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04618
  Prefactor  = 0.870387
 **********
 **   18 **HESSE 
 **********

 FCN=   10495.30     FROM HESSE     STATUS=OK           399 CALLS     3080 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.432        14.205        .12406E-03   -1.5062    
   2  norm          7.5123        1.4935        .52515E-04   -1.5160    
   3  Prefactor     18.220        44.878        .93678E-04   -1.4854    
   4  Prefactor     5.2859        4.1872        .17481E-03   -1.5248    
   5  Prefactor     11.250        15.776        .59716E-03   -1.5037    
   6  norm          .10000E-03    1.0774        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.252        14.806        .12513E-03   -1.5067    
   8  Prefactor     4.2540        4.0360        .19378E-03   -1.5295    
   9  Prefactor     4.2509        4.2449        .97715E-03   -1.5296    
  10  Prefactor     .10000E-03    56.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7017        1.2771        .76466E-04   -1.5379    
  12  Prefactor     .10000E-03    11.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0608        4.5787        .13314E-03   -1.5106    
  16  norm          10.185        8.1521        .12555E-03   -1.5070    
  17  Prefactor     .10000E-03    6.2901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5187        .21478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0392        10.313        .14141E-03   -1.5141    
  20  Prefactor     .10000E-03    15.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0156        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0462        .21172        .35244E-03   -.91499    
  24  Prefactor     .87039        .92934E-01    .16722E-03   -.97184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26654e-10
Minuit parameter uncertainties:
  1  14.2093
  2  1.49353
  3  44.9613
  4  4.18747
  5  15.782
  6  3.22341e-07
  7  14.8117
  8  4.03626
  9  4.24515
  10  0.000229602
  11  1.27714
  12  3.6617e-06
  13  2.06813e-06
  14  7.66543e-07
  15  4.57892
  16  8.15299
  17  5.13162e-07
  18  2.00144e-05
  19  10.3152
  20  9.16012e-06
  21  0.000147384
  22  2.3786e-07
  23  0.211891
  24  0.0929508
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.702e+00  1.277e+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.704e-01  9.295e-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.046e+00  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.45
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 7.47e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.25e-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) = 10495.274477
delta logL = 0.0219069569048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10495.2741859
delta logL = 0.0221980601691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7092       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1517       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86915       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=   10495.27     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      236 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7092        1.2975        .77846E-04   -.40979E-03
   2  alpha         2.1517        .41512        .14638E-01   -.16108E-05
   3  Normalizat    1.0515        .21054        .35169E-03   -.42800E-04
   4  Prefactor     .86915        .91862E-01    .16734E-03   -.73374E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70915
  alpha      = 2.1517
  Normalizat = 1.05147
  Prefactor  = 0.869153
 **********
 **   18 **HESSE 
 **********

 FCN=   10495.27     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7092        1.2985        .31138E-05   -1.5379    
   2  alpha         2.1517        .41538        .58551E-03   -.13978    
   3  Normalizat    1.0515        .21072        .14067E-04   -.91326    
   4  Prefactor     .86915        .91932E-01    .66935E-05   -.97227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64255e-11
Minuit parameter uncertainties:
  1  1.29848
  2  0.417352
  3  0.210892
  4  0.0919483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680600': 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) = 10495.2741859
delta logL = 0.0221980604001

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.709e+00  1.298e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.152e+00  4.174e-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.692e-01  9.195e-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.051e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.47
Ra Dec: 347.768 34.422
Photon Index (Free Index): 2.15 +/- 0.42
Photon Flux (Free Index): 6.99e-08 +/- 4.09e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.42e-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/680600/cmap_HighResolution_264470401_264729601_4FGL_J2311.0+3425_daily_bin97.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.47e-08', energy_flux2='2.76e-05', photon_flux_error='3.53e-08', dlogl='2.22e-02', energy_flux='2.65e-05', photon_flux2='6.99e-08', job_status='DONE', time_completed='2021-09-29 07:56:57.909639', photon_index_error2='0.42', photon_index2='2.15', ts='11.45', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.05', time_epoch_completed='1632927417.91', return_code='0', job_id='680600', GAL2='0.87', EG2='1.05', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.09e-08', ts2='11.47', photon_index='2.24' WHERE bin_id='97' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:56:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 680600: <4FGL_J2311.0+3425_daily_bin97> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin97 347.768 34.4223 264470401 264729601 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 :                                   780.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

