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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin383
RA = 347.766, Dec = 2.0995
tmin = 338601601, tmax = 338860801
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='675619', job_status='RUN', time_executed='2021-09-29 07:27:23.663913', time_epoch_executed='1632925643.66' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675619

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675619/ft1_4FGL_J2311.0+0205_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675619/ft2_4FGL_J2311.0+0205_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675619/ft1_4FGL_J2311.0+0205_daily_bin383.fits outfile=/scratch/kocevski/675619/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin383.fits ra=347.766 dec=2.0995 rad=12.0 tmin=338601601.0 tmax=338860801.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 5.16
user 4.90
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675619/ft1_filtered_4FGL_J2311.0+0205_daily_bin383.fits" evtable="EVENTS" scfile=/scratch/kocevski/675619/ft2_4FGL_J2311.0+0205_daily_bin383.fits sctable="SC_DATA" outfile=/scratch/kocevski/675619/ltcube_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.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/675619/ft2_4FGL_J2311.0+0205_daily_bin383.fits
.....................!
real 15.49
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675619/ft1_filtered_4FGL_J2311.0+0205_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/675619/ft2_4FGL_J2311.0+0205_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/675619/ltcube_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.fits outfile=/scratch/kocevski/675619/expmap_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.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/675619/ltcube_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.fits
.....................!
real 190.37
user 185.53
sys 4.52

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/675619/ft1_filtered_4FGL_J2311.0+0205_daily_bin383.fits scfile=/scratch/kocevski/675619/ft2_4FGL_J2311.0+0205_daily_bin383.fits outfile=/scratch/kocevski/675619/cmap_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.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.63
user 0.36
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675619/ft1_filtered_4FGL_J2311.0+0205_daily_bin383.fits', '/scratch/kocevski/675619/ft2_4FGL_J2311.0+0205_daily_bin383.fits', expMap='/scratch/kocevski/675619/expmap_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.fits', expCube='/scratch/kocevski/675619/ltcube_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675619/Model_4FGL_J2311.0+0205_daily_bin383.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/675619/ft1_filtered_4FGL_J2311.0+0205_daily_bin383.fits
Spacecraft file(s): /scratch/kocevski/675619/ft2_4FGL_J2311.0+0205_daily_bin383.fits
Exposure map: /scratch/kocevski/675619/expmap_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.fits
Exposure cube: /scratch/kocevski/675619/ltcube_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675619/Model_4FGL_J2311.0+0205_daily_bin383.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) = 5243.20854851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34971       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.222       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3595       1.0000         .10000E-03   10000.    
     9 'norm      '    .11646E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33494E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12615E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7028       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95763       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86003       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=   5243.024     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2208 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0013       -.60093E-08** at limit **
   2  norm          .10000E-03    8.9717        .75261E-07** at limit **
   3  Prefactor     .10000E-03    23.292       -.17378E-05** at limit **
   4  Prefactor     .10000E-03    3.6683        .96118E-08** at limit **
   5  Prefactor     .18065        22.498       -.45672E-06    .81640E-04
   6  Prefactor     .10000E-03    38.170       -.27443E-05** at limit **
   7  Prefactor     19.193        17.601        .30972E-06   -.30494E-03
   8  norm          3.3596        1.3973        .22737E-07   -.63414E-03
   9  norm          .10004E-03    8.0786        .63689E-06** at limit **
  10  Prefactor     .10000E-03    6.6955        .89614E-07** at limit **
  11  Prefactor     .10000E-03    58.797        .98087E-06** at limit **
  12  norm          .10000E-03    4.5506        .30137E-07** at limit **
  13  Prefactor     .10000E-03    5.0581        .73666E-07** at limit **
  14  Prefactor     .10011E-03    371.77        .15106E-04** at limit **
  15  Prefactor     .10000E-03    21.723        .17407E-05** at limit **
  16  Prefactor     .10000E-03    6.8829        .14792E-08** at limit **
  17  norm          .10000E-03    13.980       -.59280E-07** at limit **
  18  Prefactor     .10000E-03    30.076        .25030E-05** at limit **
  19  Prefactor     1.6856        4.8583        .12010E-05   -.24174E-03
  20  Prefactor     .10000E-03    23.526       -.25939E-05** at limit **
  21  Prefactor     4.6959        20.319        .63905E-05   -.16655E-03
  22  Normalizat    .95794        .21716       -.77901E-06   -.60116E-04
  23  Prefactor     .86012        .12939       -.15032E-06   -.86241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.180646
  Prefactor  = 0.000100004
  Prefactor  = 19.1932
  norm       = 3.35958
  norm       = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100109
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.68561
  Prefactor  = 0.000100003
  Prefactor  = 4.69586
  Normalizat = 0.957937
  Prefactor  = 0.86012
 **********
 **   18 **HESSE 
 **********

 FCN=   5243.024     FROM HESSE     STATUS=OK           368 CALLS     2576 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0040        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.0205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6740        .13544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18065        34.763        .90223E-01   -1.5623    
   6  Prefactor     .10000E-03    39.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.193        14.608        .91355E-04   -1.4831    
   8  norm          3.3596        1.3803        .51652E-04   -1.5341    
   9  norm          .10004E-03    29.362        .31605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.6906        .30162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2228        .31795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10011E-03    396.58        .21343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6856        4.8519        .25372E-03   -1.5448    
  20  Prefactor     .10000E-03    24.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6959        22.947        .92781E-03   -1.5275    
  22  Normalizat    .95794        .25282        .28786E-03   -.94453    
  23  Prefactor     .86012        .15021        .19091E-03   -.97549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96331e-09
Minuit parameter uncertainties:
  1  4.69716e-07
  2  9.3939e-06
  3  0.000375398
  4  7.14972e-07
  5  5.01349
  6  0.000787419
  7  14.6105
  8  1.38033
  9  0.00216855
  10  9.84374e-06
  11  0.000329804
  12  2.31009e-06
  13  5.80658e-06
  14  0.0132463
  15  0.00028382
  16  5.05084e-08
  17  2.43215e-05
  18  0.000616009
  19  4.85302
  20  0.000575558
  21  20.7737
  22  0.253132
  23  0.150284
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.806e-01  5.013e+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

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  8.601e-01  1.503e-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:  9.579e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/675619/likelihoodResults_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.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): 102
logL (Free Index) = 5242.78919324
delta logL = 0.235261472437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5242.54415456
delta logL = 0.480300157108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3752       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4413       1.0000          .0000       10.000    
     3 'Normalizat'    .88469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88074       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.

 FCN=   5242.544     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3790        98.674        .55063E-02    .44950E-03
   2  Index         3.4408        3.6548        .11043        .13659E-03
   3  Normalizat    .88464        .67002E-01    .67520E-01    .15238E-04
   4  Prefactor     .88076        .41538E-01    .44759E-01    .20828E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37896
  Index      = 3.44077
  Normalizat = 0.884636
  Prefactor  = 0.880765
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.544     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3790        182.47        .13574E-03   -1.5340    
   2  Index         3.4408        6.6638        .59796E-02   -.31714    
   3  Normalizat    .88464        .24285        .29870E-03   -.97002    
   4  Prefactor     .88076        .15789        .18886E-03   -.96817    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.97009e-10
Minuit parameter uncertainties:
  1  49.8211
  2  6.96881
  3  0.243153
  4  0.15797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675619': 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): 102
logL (Free Index) = 5242.54415445
delta logL = 0.480300266328

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  3.379e+00  4.982e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.441e+00  6.969e+00  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:  8.808e-01  1.580e-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.846e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 347.766 2.099
Photon Index (Free Index): 3.44 +/- 6.97
Photon Flux (Free Index): 6.87e-08 +/- 7.96e-08
Energy Flux (Free Index): 1.16e-05 +/- 2.97e-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/675619/cmap_HighResolution_338601601_338860801_4FGL_J2311.0+0205_daily_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='4.80e-01', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-09-29 07:37:05.320552', photon_index_error2='6.97', photon_index2='3.44', ts='0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='2.97e-05', EG='0.96', time_epoch_completed='1632926225.32', return_code='0', job_id='675619', GAL2='0.88', EG2='0.88', return_code2='102', photon_flux_error2='7.96e-08', ts2='1.13', photon_index='2.19' WHERE bin_id='383' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:37:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 675619: <4FGL_J2311.0+0205_daily_bin383> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin383 347.766 2.0995 338601601 338860801 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 :                                   578.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

