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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin135
RA = 347.766, Dec = 2.0995
tmin = 274320001, tmax = 274579201
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='672903', job_status='RUN', time_executed='2021-09-29 07:18:10.038368', time_epoch_executed='1632925090.04' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672903

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672903/ft1_4FGL_J2311.0+0205_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672903/ft1_4FGL_J2311.0+0205_daily_bin135.fits outfile=/scratch/kocevski/672903/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin135.fits ra=347.766 dec=2.0995 rad=12.0 tmin=274320001.0 tmax=274579201.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.59
user 3.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/672903/ltcube_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.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/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/672903/ltcube_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.fits outfile=/scratch/kocevski/672903/expmap_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.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/672903/ltcube_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.fits
.....................!
real 189.44
user 185.02
sys 4.01

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
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2311.0+0205 @ 347.766 2.0995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits scfile=/scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits outfile=/scratch/kocevski/672903/cmap_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.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.766 yref=2.0995 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits scfile=/scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits outfile=/scratch/kocevski/672903/cmap_HighResolution_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.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.766 yref=2.0995 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/672903/Model_4FGL_J2311.0+0205_daily_bin135.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 GAL_V02
Working on...
/scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits....................!
real 59.60
user 58.24
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits', '/scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits', expMap='/scratch/kocevski/672903/expmap_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.fits', expCube='/scratch/kocevski/672903/ltcube_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/672903/Model_4FGL_J2311.0+0205_daily_bin135.xml', optimizer='MINUIT')

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

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  6.504e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/672903/ft1_filtered_4FGL_J2311.0+0205_daily_bin135.fits
Spacecraft file(s): /scratch/kocevski/672903/ft2_4FGL_J2311.0+0205_daily_bin135.fits
Exposure map: /scratch/kocevski/672903/expmap_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.fits
Exposure cube: /scratch/kocevski/672903/ltcube_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/672903/Model_4FGL_J2311.0+0205_daily_bin135.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) = 5482.11696229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.434       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.333       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.282       1.0000         .10000E-03   10000.    
     8 'norm      '    .26273       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8119       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20521E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.982       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.8079       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.820       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.339       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83055       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5482.110     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2543 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.434        9.3347       -.13582E-07    .21770E-04
   2  norm          .10000E-03    10.326        .36213E-05** at limit **
   3  Prefactor     17.187        38.245       -.32358E-05    .94126E-05
   4  Prefactor     25.349        16.821        .10566E-05    .21406E-04
   5  Prefactor     15.333        23.744       -.36337E-06    .57450E-04
   6  Prefactor     .10000E-03    38.954        .40181E-04** at limit **
   7  Prefactor     12.281        10.414       -.36377E-06   -.64459E-03
   8  norm          .26185        .76915       -.15158E-05   -.29095E-02
   9  norm          2.3590        6.3226       -.13170E-05   -.43866E-03
  10  Prefactor     3.9831        7.9547       -.40748E-05   -.12881E-03
  11  Prefactor     .10000E-03    32.188       -.50349E-04** at limit **
  12  norm          1.7991        9.4613       -.45933E-06   -.35833E-03
  13  Prefactor     .10000E-03    12.099       -.10118E-05** at limit **
  14  Prefactor     72.043        163.94        .68715E-04    .29454E-04
  15  Prefactor     8.9740        17.157        .14931E-04    .20870E-03
  16  Prefactor     .10000E-03    10.553       -.28989E-05** at limit **
  17  norm          8.6937        29.744       -.22616E-04    .56703E-04
  18  Prefactor     .10000E-03    25.931        .14601E-04** at limit **
  19  Prefactor     .10000E-03    1.9507       -.26031E-06** at limit **
  20  Prefactor     43.814        46.556       -.56349E-05    .67347E-04
  21  Prefactor     12.327        30.031        .40294E-05    .13084E-04
  22  Normalizat    .83069        .23592       -.11017E-05    .25468E-03
  23  Prefactor     .98491        .13962        .33547E-06    .22715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4336
  norm       = 0.0001
  Prefactor  = 17.1874
  Prefactor  = 25.3494
  Prefactor  = 15.3326
  Prefactor  = 0.0001
  Prefactor  = 12.2812
  norm       = 0.261854
  norm       = 2.359
  Prefactor  = 3.98314
  Prefactor  = 0.0001
  norm       = 1.79906
  Prefactor  = 0.0001
  Prefactor  = 72.0434
  Prefactor  = 8.97397
  Prefactor  = 0.0001
  norm       = 8.69366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8141
  Prefactor  = 12.3265
  Normalizat = 0.830694
  Prefactor  = 0.984911
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.110     FROM HESSE     STATUS=OK           376 CALLS     2919 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.434        9.3380        .10543E-03   -1.4948    
   2  norm          .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.187        38.321        .96589E-04   -1.4879    
   4  Prefactor     25.349        16.810        .79562E-04   -1.4701    
   5  Prefactor     15.333        23.770        .10229E-03   -1.4925    
   6  Prefactor     .10000E-03    38.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.281        10.370        .57152E-03   -1.5007    
   8  norm          .26185        .78754        .10228E-02   -1.5606    
   9  norm          2.3590        6.2073        .26683E-03   -1.5401    
  10  Prefactor     3.9831        7.8625        .20220E-03   -1.5309    
  11  Prefactor     .10000E-03    32.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7991        9.1545        .31036E-03   -1.5440    
  13  Prefactor     .10000E-03    12.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     72.043        163.92        .23659E-03   -1.4008    
  15  Prefactor     8.9740        17.244        .13396E-03   -1.5109    
  16  Prefactor     .10000E-03    10.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.6937        29.869        .13506E-03   -1.5118    
  18  Prefactor     .10000E-03    25.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9582        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.814        46.705        .60563E-04   -1.4383    
  21  Prefactor     12.327        30.012        .11404E-03   -1.5006    
  22  Normalizat    .83069        .27378        .32651E-03   -.98940    
  23  Prefactor     .98491        .16368        .19552E-03   -.93234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3663e-09
Minuit parameter uncertainties:
  1  9.33897
  2  2.79748e-06
  3  38.3759
  4  16.8131
  5  23.7846
  6  8.23583e-06
  7  10.3713
  8  0.787572
  9  6.20901
  10  7.86449
  11  3.93171e-05
  12  8.11827
  13  0.00012887
  14  164.968
  15  17.2533
  16  2.68656e-05
  17  29.9202
  18  1.83323e-05
  19  3.55353e-05
  20  46.7438
  21  30.0487
  22  0.274236
  23  0.163761
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.533e+01  2.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.849e-01  1.638e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.307e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 347.766 2.099
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672903/likelihoodResults_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5481.80535052
delta logL = 0.304835363011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5481.80493506
delta logL = 0.305250830042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7248       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8757       1.0000          .0000       10.000    
     3 'Normalizat'    .78954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   5481.805     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      299 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7148        21.598        .12850E-03    .26718E-04
   2  Index         2.8762        1.1619        .67040E-02    .48353E-04
   3  Normalizat    .78972        .25707        .33425E-03   -.47277E-05
   4  Prefactor     .99833        .16312        .19433E-03   -.78324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.71483
  Index      = 2.87619
  Normalizat = 0.789723
  Prefactor  = 0.998332
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.805     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7148        17.176        .51401E-05   -1.5084    
   2  Index         2.8762        .92545        .26816E-03   -.43870    
   3  Normalizat    .78972        .25649        .13370E-04   -1.0045    
   4  Prefactor     .99833        .16264        .38865E-04   -.92785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34597e-11
Minuit parameter uncertainties:
  1  17.1851
  2  0.93202
  3  0.256886
  4  0.16272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672903': 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) = 5481.80492942
delta logL = 0.305256468203

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  9.715e+00  1.719e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.876e+00  9.320e-01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.983e-01  1.627e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  7.897e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 347.766 2.099
Photon Index (Free Index): 2.88 +/- 0.93
Photon Flux (Free Index): 6.36e-08 +/- 7.05e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/672903/cmap_HighResolution_274320001_274579201_4FGL_J2311.0+0205_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='3.05e-01', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-09-29 07:28:17.338963', photon_index_error2='0.93', photon_index2='2.88', ts='0.51', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.43e-05', EG='0.83', time_epoch_completed='1632925697.34', return_code='0', job_id='672903', GAL2='1.00', EG2='0.79', return_code2='0', photon_flux_error2='7.05e-08', ts2='1.16', photon_index='2.19' WHERE bin_id='135' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:28:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 672903: <4FGL_J2311.0+0205_daily_bin135> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin135> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:15:37 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:15:39 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:15:39 2021
Terminated at Wed Sep 29 07:28:18 2021
Results reported at Wed Sep 29 07:28:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin135 347.766 2.0995 274320001 274579201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+0205 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   605.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

