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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin443
RA = 347.766, Dec = 2.0995
tmin = 354153601, tmax = 354412801
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='675706', job_status='RUN', time_executed='2021-09-29 07:29:23.929517', time_epoch_executed='1632925763.93' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675706/ft1_4FGL_J2311.0+0205_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675706/ft2_4FGL_J2311.0+0205_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675706/ft1_4FGL_J2311.0+0205_daily_bin443.fits outfile=/scratch/kocevski/675706/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin443.fits ra=347.766 dec=2.0995 rad=12.0 tmin=354153601.0 tmax=354412801.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.93
user 3.72
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675706/ft1_filtered_4FGL_J2311.0+0205_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/675706/ft2_4FGL_J2311.0+0205_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/675706/ltcube_354153601_354412801_4FGL_J2311.0+0205_daily_bin443.fits outfile=/scratch/kocevski/675706/expmap_354153601_354412801_4FGL_J2311.0+0205_daily_bin443.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/675706/ltcube_354153601_354412801_4FGL_J2311.0+0205_daily_bin443.fits
.....................!
real 191.14
user 185.30
sys 5.48

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/675706/ft1_filtered_4FGL_J2311.0+0205_daily_bin443.fits scfile=/scratch/kocevski/675706/ft2_4FGL_J2311.0+0205_daily_bin443.fits outfile=/scratch/kocevski/675706/cmap_354153601_354412801_4FGL_J2311.0+0205_daily_bin443.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675706/ft1_filtered_4FGL_J2311.0+0205_daily_bin443.fits scfile=/scratch/kocevski/675706/ft2_4FGL_J2311.0+0205_daily_bin443.fits outfile=/scratch/kocevski/675706/cmap_HighResolution_354153601_354412801_4FGL_J2311.0+0205_daily_bin443.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.59
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.445       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11433E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.588       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .90585       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9734       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11659E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.556       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4065       1.0000         .10000E-03   10000.    
    17 'norm      '    .10585E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.167       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12090E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72875       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0836       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=   6079.984     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2525 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6034       -.55233E-08** at limit **
   2  norm          10.443        14.955       -.38660E-06   -.68948E-05
   3  Prefactor     .10000E-03    30.443        .38143E-05** at limit **
   4  Prefactor     .10000E-03    29.230        .46582E-05** at limit **
   5  Prefactor     11.586        17.671       -.20703E-06   -.64010E-05
   6  Prefactor     .10000E-03    85.401       -.41986E-06** at limit **
   7  Prefactor     .10000E-03    8.9853       -.33245E-06** at limit **
   8  norm          .90613        1.2867       -.20851E-06   -.15247E-03
   9  norm          2.9697        3.0288        .10250E-05   -.24964E-02
  10  Prefactor     .10000E-03    12.172        .77211E-06** at limit **
  11  Prefactor     .10000E-03    83.039        .58701E-05** at limit **
  12  norm          .10000E-03    13.193       -.37239E-06** at limit **
  13  Prefactor     .10000E-03    3.8945        .61363E-07** at limit **
  14  Prefactor     .10000E-03    90.636       -.11945E-04** at limit **
  15  Prefactor     16.547        14.939       -.19154E-07    .31423E-03
  16  Prefactor     2.3733        65.537       -.13714E-04   -.54969E-04
  17  norm          .10000E-03    33.520       -.16201E-04** at limit **
  18  Prefactor     .10000E-03    30.587        .31748E-05** at limit **
  19  Prefactor     .10000E-03    2.3854       -.77693E-09** at limit **
  20  Prefactor     48.167        40.313        .86707E-06    .16576E-04
  21  Prefactor     .10000E-03    56.534        .10555E-04** at limit **
  22  Normalizat    .72851        .21932        .10594E-05   -.13752E-04
  23  Prefactor     1.0838        .13304       -.41584E-07    .13952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.4434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.906127
  norm       = 2.96973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.5474
  Prefactor  = 2.37334
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.1675
  Prefactor  = 0.000100001
  Normalizat = 0.728508
  Prefactor  = 1.08381
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.984     FROM HESSE     STATUS=OK           364 CALLS     2889 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6043        .12287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.443        14.966        .12397E-03   -1.5062    
   3  Prefactor     .10000E-03    30.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.586        17.675        .11769E-03   -1.5027    
   6  Prefactor     .10000E-03    85.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .90613        1.2526        .93343E-04   -1.5518    
   9  norm          2.9697        6.3641        .11773E-02   -1.5363    
  10  Prefactor     .10000E-03    12.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    83.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9158        .15021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    90.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.547        14.770        .98432E-04   -1.4894    
  16  Prefactor     2.3733        66.154        .26392E-03   -1.5400    
  17  norm          .10000E-03    33.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4013        .11725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.167        40.364        .57777E-04   -1.4319    
  21  Prefactor     .10000E-03    57.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .72851        .24916        .34161E-03   -1.0278    
  23  Prefactor     1.0838        .15230        .18537E-03   -.89986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62758e-09
Minuit parameter uncertainties:
  1  3.12554e-07
  2  14.9712
  3  0.000108815
  4  5.92534e-06
  5  17.6834
  6  7.56574e-05
  7  1.40871e-05
  8  1.25259
  9  6.36558
  10  0.00011263
  11  0.000308253
  12  0.000135703
  13  1.44019e-05
  14  0.000679398
  15  14.7728
  16  25.0905
  17  0.000450158
  18  9.97178e-05
  19  1.80498e-06
  20  40.3869
  21  0.000447606
  22  0.24955
  23  0.152358
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.159e+01  1.768e+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:  1.084e+00  1.524e-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.285e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/675706/likelihoodResults_354153601_354412801_4FGL_J2311.0+0205_daily_bin443.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) = 6079.98423788
delta logL = 0.000223818798986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6079.98421415
delta logL = 0.000247549744017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2084       1.0000          .0000       10.000    
     3 'Normalizat'    .72787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0839       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=   6079.984     FROM MIGRAD    STATUS=FAILED        79 CALLS      249 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.480        18.585        .11820E-03    .15495E-02
   2  Index         2.2074        .96285        .98381E-02    .58776E-03
   3  Normalizat    .72791        .23256        .34174E-03   -.10448E-02
   4  Prefactor     1.0840        .15143        .18535E-03   -.22108E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6079.984     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      318 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.480        18.585        .22108E-03   -1.5030    
   2  Index         2.2074        .96285        .76719E-03   -.59260    
   3  Normalizat    .72791        .23256        .32718E-03   -1.0280    
   4  Prefactor     1.0840        .15143        .21893E-03   -.89980    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6079.984     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      348 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.479        18.195        .23639E-04    .14735E-03
   2  Index         2.2073        .94269        .39353E-03    .12885E-04
   3  Normalizat    .72792        .23259        .68348E-04    .18962E-04
   4  Prefactor     1.0840        .15147        .37070E-04    .24166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4794
  Index      = 2.20731
  Normalizat = 0.727915
  Prefactor  = 1.08399
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.984     FROM HESSE     STATUS=OK            23 CALLS      371 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.479        18.183        .47279E-05   -1.5030    
   2  Index         2.2073        .94203        .15741E-04   -.59262    
   3  Normalizat    .72792        .23272        .27339E-05   -1.0280    
   4  Prefactor     1.0840        .15153        .74141E-05   -.89980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62705e-11
Minuit parameter uncertainties:
  1  18.1917
  2  0.950319
  3  0.233039
  4  0.151594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675706': 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) = 6079.98421293
delta logL = 0.000248767538324

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.148e+01  1.819e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.207e+00  9.503e-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:  1.084e+00  1.516e-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.279e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
Ra Dec: 347.766 2.099

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/675706/cmap_HighResolution_354153601_354412801_4FGL_J2311.0+0205_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 07:39:51.843794', job_id='675706', GAL2='1.08', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632926391.84', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.49e-04', ts2='0.61', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='443' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 675706: <4FGL_J2311.0+0205_daily_bin443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin443 347.766 2.0995 354153601 354412801 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 :                                   623.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             260.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

