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


Performing analysis on: 4FGL_J2311.0+0205_daily_bin544
RA = 347.766, Dec = 2.0995
tmin = 380332801, tmax = 380592001
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='675852', job_status='RUN', time_executed='2021-09-29 07:26:51.007265', time_epoch_executed='1632925611.01' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675852/ft1_4FGL_J2311.0+0205_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675852/ft2_4FGL_J2311.0+0205_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675852/ft1_4FGL_J2311.0+0205_daily_bin544.fits outfile=/scratch/kocevski/675852/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin544.fits ra=347.766 dec=2.0995 rad=12.0 tmin=380332801.0 tmax=380592001.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.44
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675852/ft2_4FGL_J2311.0+0205_daily_bin544.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/675852/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin544.fits evtable="EVENTS" outfile="/scratch/kocevski/675852/ft1_filtered_4FGL_J2311.0+0205_daily_bin544.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.50
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675852/ft1_filtered_4FGL_J2311.0+0205_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/675852/ft2_4FGL_J2311.0+0205_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/675852/ltcube_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.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/675852/ft2_4FGL_J2311.0+0205_daily_bin544.fits
.....................!
real 11.98
user 11.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675852/ft1_filtered_4FGL_J2311.0+0205_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/675852/ft2_4FGL_J2311.0+0205_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/675852/ltcube_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.fits outfile=/scratch/kocevski/675852/expmap_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.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/675852/ltcube_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.fits
.....................!
real 190.25
user 185.02
sys 4.72

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/675852/ft1_filtered_4FGL_J2311.0+0205_daily_bin544.fits scfile=/scratch/kocevski/675852/ft2_4FGL_J2311.0+0205_daily_bin544.fits outfile=/scratch/kocevski/675852/cmap_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675852/ft1_filtered_4FGL_J2311.0+0205_daily_bin544.fits scfile=/scratch/kocevski/675852/ft2_4FGL_J2311.0+0205_daily_bin544.fits outfile=/scratch/kocevski/675852/cmap_HighResolution_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65243E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5530       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36983       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67218       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6160       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.997       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83797       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=   5750.195     FROM MIGRAD    STATUS=CONVERGED   1010 CALLS     2710 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0070        .14806E-02** at limit **
   2  norm          .10000E-03    6.6673        .18142E-02** at limit **
   3  Prefactor     7.4567        50.208        .14785E-03    .60286E-04
   4  Prefactor     .10000E-03    5.3589        .17109E-02** at limit **
   5  Prefactor     .10000E-03    8.3121        .18142E-02** at limit **
   6  Prefactor     .10000E-03    47.176        .18142E-02** at limit **
   7  Prefactor     .12153        12.463        .65714E-01    .29335E-03
   8  norm          3.5534        1.5177        .56020E-04   -.28270E-03
   9  norm          4.3936        8.8474        .19144E-03   -.44265E-03
  10  Prefactor     .10000E-03    3.7855        .14378E-02** at limit **
  11  Prefactor     .10000E-03    24.733        .18142E-02** at limit **
  12  norm          .10000E-03    4.0593        .14846E-02** at limit **
  13  Prefactor     9.1337        6.3371        .13263E-03   -.33430E-04
  14  Prefactor     .66717E-03    161.26        .35140    ** at limit **
  15  Prefactor     .10000E-03    25.160        .36285E-03** at limit **
  16  Prefactor     .10000E-03    21.318        .18142E-02** at limit **
  17  norm          .10000E-03    38.887        .18142E-02** at limit **
  18  Prefactor     .69584        82.076        .19350        .38846E-04
  19  Prefactor     4.5986        4.8204        .16002E-03   -.10671E-03
  20  Prefactor     1.6795        133.02        .33305E-03    .51953E-04
  21  Prefactor     26.007        22.656        .78567E-04   -.21705E-05
  22  Normalizat    1.0956        .26212        .28911E-03    .16063E-03
  23  Prefactor     .83806        .15755        .20665E-03    .99355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.45666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.121531
  norm       = 3.55338
  norm       = 4.39358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.13366
  Prefactor  = 0.000667166
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.695836
  Prefactor  = 4.5986
  Prefactor  = 1.67946
  Prefactor  = 26.0074
  Normalizat = 1.09558
  Prefactor  = 0.838058
 **********
 **   18 **HESSE 
 **********

 FCN=   5750.195     FROM HESSE     STATUS=OK           376 CALLS     3086 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0073        .29613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.6678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4567        50.233        .59138E-05   -1.5162    
   4  Prefactor     .10000E-03    5.3597        .34219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3128        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12153        11.299        .70257E-01   -1.5638    
   8  norm          3.5534        1.5177        .22408E-05   -1.5331    
   9  norm          4.3936        8.7976        .76578E-05   -1.5289    
  10  Prefactor     .10000E-03    3.7858        .28756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.0603        .29692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1337        6.3369        .53051E-05   -1.5103    
  14  Prefactor     .66717E-03    161.26        .35140       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.161        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    38.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .69584        83.063        .19191       -1.5541    
  19  Prefactor     4.5986        4.8198        .64008E-05   -1.5279    
  20  Prefactor     1.6795        132.97        .13322E-04   -1.5449    
  21  Prefactor     26.007        22.656        .31427E-05   -1.4688    
  22  Normalizat    1.0956        .26226        .11565E-04   -.89894    
  23  Prefactor     .83806        .15768        .82660E-05   -.98340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09328e-09
Minuit parameter uncertainties:
  1  1.8751e-07
  2  1.0676e-05
  3  38.7545
  4  1.57803e-05
  5  4.09857e-05
  6  0.00015663
  7  2.34314
  8  1.51767
  9  8.80016
  10  1.34474e-05
  11  9.79513e-05
  12  8.65025e-06
  13  6.33741
  14  0.606484
  15  0.000456859
  16  1.58719e-06
  17  0.000330325
  18  15.2256
  19  4.8202
  20  29.9555
  21  22.6637
  22  0.26257
  23  0.157767
Done.

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

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  4.099e-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.381e-01  1.578e-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:  1.096e+00  2.626e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675852/likelihoodResults_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.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) = 5750.1953728
delta logL = -0.000572969341192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5750.19479986
delta logL = -2.39078872255e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1762       1.0000          .0000       10.000    
     3 'Normalizat'    1.0956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83808       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=   5750.195     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    125.72        .18142E-02** at limit **
   2  Index         2.1332        8.1187        .50000        .75513E-05
   3  Normalizat    1.0956        .21233E-01    .28911E-03    .31065E-05
   4  Prefactor     .83806        .13537E-01    .20665E-03    .69868E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100526
  Index      = 2.13318
  Normalizat = 1.09558
  Prefactor  = 0.838059
 **********
 **   18 **HESSE 
 **********

 FCN=   5750.195     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    531.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1332        7.6624        .50000       -.61061    
   3  Normalizat    1.0956        .46721E-01    .11564E-04   -.89894    
   4  Prefactor     .83806        .29784E-01    .82661E-05   -.98340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.76264e-09
Minuit parameter uncertainties:
  1  0.0337544
  2  1093.51
  3  0.0467224
  4  0.029785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675852': 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) = 5750.19479975
delta logL = 8.09422999737e-08

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  1.005e-04  3.375e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.133e+00  1.094e+03  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.381e-01  2.979e-02  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:  1.096e+00  4.672e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/675852/cmap_HighResolution_380332801_380592001_4FGL_J2311.0+0205_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-29 07:37:31.721685', job_id='675852', GAL2='0.84', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632926251.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='544' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:37:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 675852: <4FGL_J2311.0+0205_daily_bin544> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin544 347.766 2.0995 380332801 380592001 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 :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

