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


Performing analysis on: 4FGL_J2311.0+3425_daily_bin1394
RA = 347.768, Dec = 34.4223
tmin = 600652801, tmax = 600912001
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='688105', job_status='RUN', time_executed='2021-09-29 08:07:13.879283', time_epoch_executed='1632928033.88' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/688105

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/688105/ft1_4FGL_J2311.0+3425_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/688105/ft2_4FGL_J2311.0+3425_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/688105/ft1_4FGL_J2311.0+3425_daily_bin1394.fits outfile=/scratch/kocevski/688105/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1394.fits ra=347.768 dec=34.4223 rad=12.0 tmin=600652801.0 tmax=600912001.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.64
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/688105/ft2_4FGL_J2311.0+3425_daily_bin1394.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/688105/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/688105/ft1_filtered_4FGL_J2311.0+3425_daily_bin1394.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/688105/ft1_filtered_4FGL_J2311.0+3425_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/688105/ft2_4FGL_J2311.0+3425_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/688105/ltcube_600652801_600912001_4FGL_J2311.0+3425_daily_bin1394.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/688105/ft2_4FGL_J2311.0+3425_daily_bin1394.fits
.....................!
real 14.22
user 13.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/688105/ft1_filtered_4FGL_J2311.0+3425_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/688105/ft2_4FGL_J2311.0+3425_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/688105/ltcube_600652801_600912001_4FGL_J2311.0+3425_daily_bin1394.fits outfile=/scratch/kocevski/688105/expmap_600652801_600912001_4FGL_J2311.0+3425_daily_bin1394.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/688105/ltcube_600652801_600912001_4FGL_J2311.0+3425_daily_bin1394.fits
.....................!
real 192.84
user 187.25
sys 5.21

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/688105/ft1_filtered_4FGL_J2311.0+3425_daily_bin1394.fits scfile=/scratch/kocevski/688105/ft2_4FGL_J2311.0+3425_daily_bin1394.fits outfile=/scratch/kocevski/688105/cmap_600652801_600912001_4FGL_J2311.0+3425_daily_bin1394.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.55
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/688105/ft1_filtered_4FGL_J2311.0+3425_daily_bin1394.fits scfile=/scratch/kocevski/688105/ft2_4FGL_J2311.0+3425_daily_bin1394.fits outfile=/scratch/kocevski/688105/cmap_HighResolution_600652801_600912001_4FGL_J2311.0+3425_daily_bin1394.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0505       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.133       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6860       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.427       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37263       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3039       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8528       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5145       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94704       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0507       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=   9339.487     FROM MIGRAD    STATUS=CONVERGED   1000 CALLS     2793 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2753        .18142E-02** at limit **
   2  norm          1.0504        .90938        .84569E-04   -.68560E-04
   3  Prefactor     .10000E-03    22.657        .18142E-02** at limit **
   4  Prefactor     4.6095        5.1153        .18752E-03    .13895E-03
   5  Prefactor     .10000E-03    16.307        .18142E-02** at limit **
   6  norm          .10000E-03    2.1319        .26987E-03** at limit **
   7  Prefactor     .10000E-03    5.8402        .18142E-02** at limit **
   8  Prefactor     .10000E-03    5.3681        .36285E-03** at limit **
   9  Prefactor     25.129        13.182        .79904E-04   -.39554E-04
  10  Prefactor     .10000E-03    26.793        .18142E-02** at limit **
  11  norm          2.1876        1.1910        .74879E-04    .62766E-03
  12  Prefactor     .10000E-03    40.533        .18142E-02** at limit **
  13  Prefactor     .75320E-01    9.7576        .65895E-01    .66809E-03
  14  Prefactor     1.6982        39.068        .32429E-03    .73619E-05
  15  norm          .10000E-03    1.9802        .13228E-02** at limit **
  16  norm          10.429        9.0631        .12408E-03    .41963E-04
  17  Prefactor     .20846        13.088        .79948E-01    .51781E-03
  18  norm          2.4391        1.9618        .11710E-03    .17747E-03
  19  Prefactor     3.3027        10.681        .11136E-02    .13261E-03
  20  Prefactor     9.8627        38.988        .12766E-03    .20304E-04
  21  Prefactor     3.3982        70.050        .21726E-03    .52327E-05
  22  Prefactor     3.4981        6.4574        .10782E-02   -.75219E-04
  23  Normalizat    .94781        .23703        .37143E-03    .29512E-03
  24  Prefactor     1.0506        .10197        .16213E-03    .60658E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.05037
  Prefactor  = 0.0001
  Prefactor  = 4.60953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.1294
  Prefactor  = 0.0001
  norm       = 2.18759
  Prefactor  = 0.0001
  Prefactor  = 0.0753201
  Prefactor  = 1.6982
  norm       = 0.0001
  norm       = 10.4294
  Prefactor  = 0.208455
  norm       = 2.43909
  Prefactor  = 3.30275
  Prefactor  = 9.86272
  Prefactor  = 3.39823
  Prefactor  = 3.49807
  Normalizat = 0.94781
  Prefactor  = 1.05061
 **********
 **   18 **HESSE 
 **********

 FCN=   9339.487     FROM HESSE     STATUS=OK           395 CALLS     3188 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0504        .90929        .33828E-05   -1.5503    
   3  Prefactor     .10000E-03    22.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6095        5.1150        .75009E-05   -1.5279    
   5  Prefactor     .10000E-03    16.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1320        .53974E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3683        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.129        13.182        .31962E-05   -1.4705    
  10  Prefactor     .10000E-03    26.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1876        1.1909        .29951E-05   -1.5412    
  12  Prefactor     .10000E-03    40.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .75320E-01    7.9424        .75149E-01   -1.5653    
  14  Prefactor     1.6982        39.047        .12972E-04   -1.5447    
  15  norm          .10000E-03    1.9803        .26455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.429        9.0632        .49633E-05   -1.5062    
  17  Prefactor     .20846        11.382        .87519E-01   -1.5617    
  18  norm          2.4391        1.9612        .46841E-05   -1.5396    
  19  Prefactor     3.3027        10.680        .44546E-04   -1.5344    
  20  Prefactor     9.8627        39.008        .51064E-05   -1.5080    
  21  Prefactor     3.3982        69.846        .86905E-05   -1.5339    
  22  Prefactor     3.4981        6.4447        .43130E-04   -1.5334    
  23  Normalizat    .94781        .23696        .14857E-04   -.94800    
  24  Prefactor     1.0506        .10204        .32426E-04   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14769e-09
Minuit parameter uncertainties:
  1  3.9999e-05
  2  0.909301
  3  1.49233e-05
  4  5.11549
  5  1.7118e-05
  6  1.06469e-05
  7  1.64758e-06
  8  1.95407e-05
  9  13.1836
  10  0.000126114
  11  1.19095
  12  0.000247658
  13  1.54608
  14  16.2976
  15  2.26833e-06
  16  9.06439
  17  3.08052
  18  1.96123
  19  10.6862
  20  39.109
  21  30.8532
  22  6.44595
  23  0.237222
  24  0.102063
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.188e+00  1.191e+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:  1.051e+00  1.021e-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:  9.478e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.35
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.05e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.17e-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) = 9338.41569459
delta logL = 1.07145486876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9338.27630605
delta logL = 1.21084341771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3742       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3530       1.0000          .0000       5.0000    
     3 'Normalizat'    .99057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0412       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=   9338.276     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3725        .85416        .92925E-02   -.22378E-03
   2  alpha         1.3527        .32573        .33143       -.67299E-04
   3  Normalizat    .99047        .18879        .82287E-01    .28834E-04
   4  Prefactor     1.0412        .86638E-01    .40457E-01   -.39338E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37251
  alpha      = 1.35269
  Normalizat = 0.990467
  Prefactor  = 1.04122
 **********
 **   18 **HESSE 
 **********

 FCN=   9338.276     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3725        1.1570        .64720E-04   -1.5474    
   2  alpha         1.3527        .48943        .13086E-01   -.47678    
   3  Normalizat    .99047        .21547        .36425E-03   -.93350    
   4  Prefactor     1.0412        .99054E-01    .16276E-03   -.91368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5915e-09
Minuit parameter uncertainties:
  1  1.15699
  2  0.493475
  3  0.21566
  4  0.0990718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/688105': 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) = 9338.27630467
delta logL = 1.21084479444

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.373e+00  1.157e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  1.353e+00  4.935e-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:  1.041e+00  9.907e-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:  9.905e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.76
Ra Dec: 347.768 34.422
Photon Index (Free Index): 1.35 +/- 0.49
Photon Flux (Free Index): 2.58e-08 +/- 2.08e-08
Energy Flux (Free Index): 4.83e-05 +/- 4.48e-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/688105/cmap_HighResolution_600652801_600912001_4FGL_J2311.0+3425_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.05e-08', energy_flux2='4.83e-05', photon_flux_error='3.29e-08', dlogl='1.21e+00', energy_flux='2.15e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-29 08:20:25.559209', photon_index_error2='0.49', photon_index2='1.35', ts='8.35', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='4.48e-05', EG='0.95', time_epoch_completed='1632928825.56', return_code='0', job_id='688105', GAL2='1.04', EG2='0.99', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.08e-08', ts2='10.76', photon_index='2.24' WHERE bin_id='1394' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:20:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 688105: <4FGL_J2311.0+3425_daily_bin1394> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin1394 347.768 34.4223 600652801 600912001 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 :                                   767.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

