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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin431
RA = 347.766, Dec = 2.0995
tmin = 351043201, tmax = 351302401
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='675689', job_status='RUN', time_executed='2021-09-29 07:27:23.447585', time_epoch_executed='1632925643.45' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675689/ft1_4FGL_J2311.0+0205_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675689/ft2_4FGL_J2311.0+0205_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675689/ft1_4FGL_J2311.0+0205_daily_bin431.fits outfile=/scratch/kocevski/675689/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin431.fits ra=347.766 dec=2.0995 rad=12.0 tmin=351043201.0 tmax=351302401.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.41
user 3.20
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675689/ft1_filtered_4FGL_J2311.0+0205_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/675689/ft2_4FGL_J2311.0+0205_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/675689/ltcube_351043201_351302401_4FGL_J2311.0+0205_daily_bin431.fits outfile=/scratch/kocevski/675689/expmap_351043201_351302401_4FGL_J2311.0+0205_daily_bin431.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/675689/ltcube_351043201_351302401_4FGL_J2311.0+0205_daily_bin431.fits
.....................!
real 190.57
user 185.09
sys 5.13

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/675689/ft1_filtered_4FGL_J2311.0+0205_daily_bin431.fits scfile=/scratch/kocevski/675689/ft2_4FGL_J2311.0+0205_daily_bin431.fits outfile=/scratch/kocevski/675689/cmap_351043201_351302401_4FGL_J2311.0+0205_daily_bin431.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/675689/ft1_filtered_4FGL_J2311.0+0205_daily_bin431.fits scfile=/scratch/kocevski/675689/ft2_4FGL_J2311.0+0205_daily_bin431.fits outfile=/scratch/kocevski/675689/cmap_HighResolution_351043201_351302401_4FGL_J2311.0+0205_daily_bin431.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.68
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1964       1.0000         .10000E-03   10000.    
     2 'norm      '    8.5816       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1223       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3963       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.222       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12700E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .53011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.806       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.437       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90769E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4409       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1260       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97657       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88367       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=   7684.434     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2554 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1963        4.5691       -.59410E-06   -.10866E-03
   2  norm          8.5800        9.3536        .16692E-06   -.59527E-04
   3  Prefactor     .10000E-03    26.678        .21514E-05** at limit **
   4  Prefactor     2.1213        11.033        .10520E-04    .15633E-03
   5  Prefactor     .10000E-03    15.724        .11351E-05** at limit **
   6  Prefactor     54.368        43.855        .19285E-05    .72307E-05
   7  Prefactor     .10000E-03    3.0021       -.78969E-06** at limit **
   8  norm          3.3967        1.0403        .87359E-08   -.17957E-03
   9  norm          .10000E-03    1.4075       -.22395E-06** at limit **
  10  Prefactor     12.212        11.578       -.53037E-06   -.21089E-03
  11  Prefactor     .10000E-03    92.388        .33349E-05** at limit **
  12  norm          .55110        7.0273        .47561E-05   -.17876E-03
  13  Prefactor     .10000E-03    1.6600        .37480E-07** at limit **
  14  Prefactor     .10000E-03    58.693       -.35911E-05** at limit **
  15  Prefactor     16.841        12.368        .10238E-05    .27567E-03
  16  Prefactor     .10000E-03    8.0450        .43860E-07** at limit **
  17  norm          .10000E-03    19.539       -.23931E-05** at limit **
  18  Prefactor     15.435        35.601        .45068E-06   -.70491E-05
  19  Prefactor     .10008E-03    2.7668        .23203E-05** at limit **
  20  Prefactor     5.4459        50.845       -.67282E-06   -.33024E-04
  21  Prefactor     7.1229        22.717        .10188E-05   -.12338E-04
  22  Normalizat    .97667        .18412        .15035E-06   -.28187E-03
  23  Prefactor     .88367        .11208       -.12608E-05   -.52480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.19629
  norm       = 8.58002
  Prefactor  = 0.0001
  Prefactor  = 2.12126
  Prefactor  = 0.0001
  Prefactor  = 54.368
  Prefactor  = 0.000100001
  norm       = 3.39665
  norm       = 0.0001
  Prefactor  = 12.212
  Prefactor  = 0.0001
  norm       = 0.551103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.4352
  Prefactor  = 0.000100079
  Prefactor  = 5.44587
  Prefactor  = 7.12293
  Normalizat = 0.976671
  Prefactor  = 0.883672
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.434     FROM HESSE     STATUS=OK           374 CALLS     2928 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1963        4.5818        .95649E-03   -1.5298    
   2  norm          8.5800        9.3625        .13684E-03   -1.5122    
   3  Prefactor     .10000E-03    26.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1213        12.303        .14154E-02   -1.5417    
   5  Prefactor     .10000E-03    15.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.368        44.193        .54391E-04   -1.4232    
   7  Prefactor     .10000E-03    3.0360        .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3967        1.0409        .21953E-04   -1.5339    
   9  norm          .10000E-03    1.4135        .10161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.212        11.445        .11458E-03   -1.5009    
  11  Prefactor     .10000E-03    93.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55110        16.285        .37065E-02   -1.5560    
  13  Prefactor     .10000E-03    1.6626        .11027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.841        11.488        .97699E-04   -1.4887    
  16  Prefactor     .10000E-03    8.0511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.435        35.603        .10194E-03   -1.4922    
  19  Prefactor     .10008E-03    14.695        .22107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4459        50.758        .17227E-03   -1.5241    
  21  Prefactor     7.1229        22.686        .15027E-03   -1.5174    
  22  Normalizat    .97667        .21581        .29230E-03   -.93816    
  23  Prefactor     .88367        .13126        .19831E-03   -.96714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77545e-08
Minuit parameter uncertainties:
  1  4.58216
  2  9.36405
  3  5.83852e-05
  4  10.22
  5  5.62126e-05
  6  44.22
  7  8.88966e-05
  8  1.04095
  9  1.77349e-05
  10  11.4475
  11  0.000347807
  12  5.99283
  13  2.49169e-07
  14  2.25013e-05
  15  11.4891
  16  4.51083e-06
  17  1.93425e-05
  18  35.6518
  19  0.00215524
  20  33.289
  21  22.7134
  22  0.216003
  23  0.131308
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  5.621e-05  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.837e-01  1.313e-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.767e-01  2.160e-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: 6.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675689/likelihoodResults_351043201_351302401_4FGL_J2311.0+0205_daily_bin431.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) = 7684.43443399
delta logL = -0.000300654028251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7684.43413696
delta logL = -3.61836100637e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2276       1.0000          .0000       10.000    
     3 'Normalizat'    .97614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88400       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7684.434     FROM MIGRAD    STATUS=FAILED        88 CALLS      242 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6523.2        .18142E-02** at limit **
   2  Index         2.2734        6.1360        .50000       -.23044E-04
   3  Normalizat    .97667        .88839E-01    .29230E-03   -.37875E-03
   4  Prefactor     .88367        .57965E-01    .19831E-03   -.58922E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7684.434     FROM SIMPLEX   STATUS=UNCHANGED    190 CALLS      432 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6523.2        .80019E-03** at limit **
   2  Index         2.2734        6.1360        .77094E-06   -.23044E-04
   3  Normalizat    .97667        .88839E-01    .44065E-07   -.37875E-03
   4  Prefactor     .88367        .57965E-01    .78893E-08   -.58922E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7684.434     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      466 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    21.482        .36285E-03** at limit **
   2  Index         2.2736        6.1283        .50000       -.23045E-04
   3  Normalizat    .97667        .19620        .58461E-04   -.38396E-03
   4  Prefactor     .88367        .12814        .39661E-04   -.59576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.27356
  Normalizat = 0.97667
  Prefactor  = 0.883672
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.434     FROM HESSE     STATUS=OK            29 CALLS      495 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    18.648        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2736        6.1367        .50000       -.57673    
   3  Normalizat    .97667        .19622        .11692E-04   -.93816    
   4  Prefactor     .88367        .12815        .79323E-05   -.96714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18269e-09
Minuit parameter uncertainties:
  1  0.000864612
  2  4.20389
  3  0.196362
  4  0.128192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675689': 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) = 7684.43413286
delta logL = 4.75232809549e-07

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  8.646e-04  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.274e+00  4.204e+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.837e-01  1.282e-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.767e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.766 2.099

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/675689/cmap_HighResolution_351043201_351302401_4FGL_J2311.0+0205_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2021-09-29 07:39:40.690504', job_id='675689', GAL2='0.88', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632926380.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='431' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:39:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 675689: <4FGL_J2311.0+0205_daily_bin431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin431 347.766 2.0995 351043201 351302401 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 :                                   734.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

