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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin786
RA = 347.931, Dec = 26.0831
tmin = 443059201, tmax = 443318401
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='693379', job_status='RUN', time_executed='2021-09-29 08:20:31.543296', time_epoch_executed='1632928831.54' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693379/ft1_4FGL_J2311.7+2604_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693379/ft1_4FGL_J2311.7+2604_daily_bin786.fits outfile=/scratch/kocevski/693379/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin786.fits ra=347.931 dec=26.0831 rad=12.0 tmin=443059201.0 tmax=443318401.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.80
user 3.56
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/693379/ltcube_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.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/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits
.....................!
real 12.01
user 11.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/693379/ltcube_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.fits outfile=/scratch/kocevski/693379/expmap_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.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/693379/ltcube_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.fits
.....................!
real 191.78
user 185.78
sys 5.54

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.7+2604 @ 347.931 26.0831

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits scfile=/scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits outfile=/scratch/kocevski/693379/cmap_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.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.931 yref=26.0831 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits scfile=/scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits outfile=/scratch/kocevski/693379/cmap_HighResolution_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.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.931 yref=26.0831 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693379/Model_4FGL_J2311.7+2604_daily_bin786.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/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits.....................!
real 107.07
user 105.47
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits', '/scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits', expMap='/scratch/kocevski/693379/expmap_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.fits', expCube='/scratch/kocevski/693379/ltcube_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/693379/Model_4FGL_J2311.7+2604_daily_bin786.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.7+2604'

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  4.423e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/693379/ft1_filtered_4FGL_J2311.7+2604_daily_bin786.fits
Spacecraft file(s): /scratch/kocevski/693379/ft2_4FGL_J2311.7+2604_daily_bin786.fits
Exposure map: /scratch/kocevski/693379/expmap_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.fits
Exposure cube: /scratch/kocevski/693379/ltcube_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/693379/Model_4FGL_J2311.7+2604_daily_bin786.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) = 9390.70383653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    162.25       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0472       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.6863       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9323       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25657       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0712       1.0000         .10000E-03   10000.    
    12 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.665       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93134       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.151       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.390       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    88.673       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91798       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9390.697     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2440 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     162.24        144.67        .12920E-05    .24528E-04
   2  Prefactor     5.0469        16.286        .23685E-06   -.11379E-05
   3  norm          8.9017        1.9821        .15631E-07    .28321E-03
   4  Prefactor     .10000E-03    24.965       -.79481E-06** at limit **
   5  norm          9.6862        2.7683        .31796E-08   -.38090E-04
   6  Prefactor     .10000E-03    22.337        .64771E-06** at limit **
   7  Prefactor     .10000E-03    3.8524       -.71823E-07** at limit **
   8  Prefactor     1.9323        .27110       -.26632E-07   -.79802E-03
   9  Prefactor     .26942        8.3845        .35403E-05   -.55066E-03
  10  Prefactor     12.272        18.516        .96161E-08    .21175E-04
  11  Prefactor     3.0723        7.5217        .45818E-05    .17189E-03
  12  norm          .10000E-03    .89714       -.26193E-06** at limit **
  13  Prefactor     40.662        25.365        .55878E-06    .38193E-04
  14  Prefactor     .10000E-03    27.182       -.52811E-06** at limit **
  15  Prefactor     .93105        4.0462        .12102E-05   -.22190E-03
  16  norm          .10000E-03    3.9990        .41363E-06** at limit **
  17  Prefactor     26.149        22.977       -.53162E-07   -.64898E-04
  18  Prefactor     37.399        24.069       -.17359E-05   -.38071E-03
  19  Prefactor     .10000E-03    7.6201        .10813E-06** at limit **
  20  Prefactor     88.692        51.729       -.24977E-05   -.18178E-03
  21  Normalizat    1.1486        .24428       -.95213E-06   -.15180E-03
  22  Prefactor     .91795        .11422        .49708E-06    .30867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 162.242
  Prefactor  = 5.04692
  norm       = 8.90175
  Prefactor  = 0.0001
  norm       = 9.68623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93228
  Prefactor  = 0.269417
  Prefactor  = 12.2724
  Prefactor  = 3.07233
  norm       = 0.0001
  Prefactor  = 40.6624
  Prefactor  = 0.0001
  Prefactor  = 0.931052
  norm       = 0.0001
  Prefactor  = 26.1492
  Prefactor  = 37.3994
  Prefactor  = 0.0001
  Prefactor  = 88.6916
  Normalizat = 1.14865
  Prefactor  = 0.917946
 **********
 **   18 **HESSE 
 **********

 FCN=   9390.697     FROM HESSE     STATUS=OK           350 CALLS     2790 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     162.24        144.76        .31661E-04   -1.3154    
   2  Prefactor     5.0469        16.289        .17898E-03   -1.5259    
   3  norm          8.9017        1.9810        .60382E-04   -1.5111    
   4  Prefactor     .10000E-03    25.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.6862        2.7676        .83549E-04   -1.5085    
   6  Prefactor     .10000E-03    22.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9323        .27188        .17964E-04   -1.5430    
   9  Prefactor     .26942        50.103        .43335E-02   -1.5604    
  10  Prefactor     12.272        18.503        .11435E-03   -1.5007    
  11  Prefactor     3.0723        7.7685        .11573E-02   -1.5357    
  12  norm          .10000E-03    1.6648        .17389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.662        25.409        .62859E-04   -1.4432    
  14  Prefactor     .10000E-03    27.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93105        13.917        .33653E-02   -1.5515    
  16  norm          .10000E-03    12.004        .33776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.149        20.990        .78337E-04   -1.4685    
  18  Prefactor     37.399        24.126        .65544E-04   -1.4484    
  19  Prefactor     .10000E-03    7.6268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     88.692        51.726        .42668E-04   -1.3822    
  21  Normalizat    1.1486        .28305        .38256E-03   -.88205    
  22  Prefactor     .91795        .13540        .21505E-03   -.95517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27918e-09
Minuit parameter uncertainties:
  1  145.074
  2  16.3032
  3  1.98104
  4  0.000121159
  5  2.76764
  6  5.69896e-05
  7  9.88132e-06
  8  0.271876
  9  7.35299
  10  18.5112
  11  7.77103
  12  7.37813e-06
  13  25.4161
  14  0.00010726
  15  7.20098
  16  3.42167e-05
  17  20.9959
  18  24.1319
  19  1.87159e-05
  20  51.7526
  21  0.28343
  22  0.135454
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  4.066e+01  2.542e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.179e-01  1.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.149e+00  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 347.931 26.083
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.89e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.56e-05

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) = 9390.67313529
delta logL = 0.0238781786611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9390.66553486
delta logL = 0.0314786075542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.811       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2581       1.0000          .0000       10.000    
     3 'Normalizat'    1.1661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91283       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   9390.666     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.814        30.392        .60569E-04    .18695E-04
   2  Index         2.2589        .68900        .10005E-01    .31475E-03
   3  Normalizat    1.1658        .27110        .38007E-03   -.59944E-04
   4  Prefactor     .91303        .13507        .21557E-03   -.15652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.8144
  Index      = 2.25894
  Normalizat = 1.1658
  Prefactor  = 0.913032
 **********
 **   18 **HESSE 
 **********

 FCN=   9390.666     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.814        29.887        .12114E-04   -1.4383    
   2  Index         2.2589        .67605        .20010E-02   -.58022    
   3  Normalizat    1.1658        .27081        .15203E-04   -.87666    
   4  Prefactor     .91303        .13507        .86229E-05   -.95687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55759e-11
Minuit parameter uncertainties:
  1  29.8971
  2  0.679027
  3  0.271136
  4  0.135123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693379': 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) = 9390.6655329
delta logL = 0.0314805697508

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  4.381e+01  2.990e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.259e+00  6.790e-01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.130e-01  1.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.166e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.74
Ra Dec: 347.931 26.083
Photon Index (Free Index): 2.26 +/- 0.68
Photon Flux (Free Index): 6.51e-08 +/- 6.87e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.90e-05

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/693379/cmap_HighResolution_443059201_443318401_4FGL_J2311.7+2604_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.89e-08', energy_flux2='2.63e-05', photon_flux_error='4.93e-08', dlogl='3.15e-02', energy_flux='2.49e-05', photon_flux2='6.51e-08', job_status='DONE', time_completed='2021-09-29 08:32:34.816223', photon_index_error2='0.68', photon_index2='2.26', ts='7.75', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.15', time_epoch_completed='1632929554.82', return_code='0', job_id='693379', GAL2='0.91', EG2='1.17', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.87e-08', ts2='7.74', photon_index='2.43' WHERE bin_id='786' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:32:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 693379: <4FGL_J2311.7+2604_daily_bin786> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin786> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 08:20:16 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:20:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 08:20:17 2021
Terminated at Wed Sep 29 08:32:35 2021
Results reported at Wed Sep 29 08:32:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin786 347.931 26.0831 443059201 443318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.7+2604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   720.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             361.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

