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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin1541
RA = 347.931, Dec = 26.0831
tmin = 638755201, tmax = 639014401
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='696411', job_status='RUN', time_executed='2021-09-29 08:33:56.270348', time_epoch_executed='1632929636.27' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/696411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/696411/ft1_4FGL_J2311.7+2604_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/696411/ft1_4FGL_J2311.7+2604_daily_bin1541.fits outfile=/scratch/kocevski/696411/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin1541.fits ra=347.931 dec=26.0831 rad=12.0 tmin=638755201.0 tmax=639014401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.38
user 5.08
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits" evtable="EVENTS" scfile=/scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits sctable="SC_DATA" outfile=/scratch/kocevski/696411/ltcube_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.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/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits
.....................!
real 11.84
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/696411/ltcube_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.fits outfile=/scratch/kocevski/696411/expmap_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.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/696411/ltcube_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.fits
.....................!
real 191.53
user 186.76
sys 4.42

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/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits scfile=/scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits outfile=/scratch/kocevski/696411/cmap_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits scfile=/scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits outfile=/scratch/kocevski/696411/cmap_HighResolution_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.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.51
user 0.38
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/696411/Model_4FGL_J2311.7+2604_daily_bin1541.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/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits.....................!
real 79.23
user 77.88
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits', '/scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits', expMap='/scratch/kocevski/696411/expmap_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.fits', expCube='/scratch/kocevski/696411/ltcube_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/696411/Model_4FGL_J2311.7+2604_daily_bin1541.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/696411/ft1_filtered_4FGL_J2311.7+2604_daily_bin1541.fits
Spacecraft file(s): /scratch/kocevski/696411/ft2_4FGL_J2311.7+2604_daily_bin1541.fits
Exposure map: /scratch/kocevski/696411/expmap_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.fits
Exposure cube: /scratch/kocevski/696411/ltcube_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/696411/Model_4FGL_J2311.7+2604_daily_bin1541.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) = 6870.3722806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.870       1.0000         .10000E-03   10000.    
     3 'norm      '    .53601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.220       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9482       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.047       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65952       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7674       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.889       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.708       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0884       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.819       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85350       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=   6870.368     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2362 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.251       -.23836E-06** at limit **
   2  Prefactor     15.877        15.286       -.33713E-05   -.12553E-04
   3  norm          .53596        .74706       -.75843E-07   -.81157E-03
   4  Prefactor     16.222        15.817       -.10314E-05    .23747E-05
   5  norm          2.3250        1.5506        .15459E-07    .18206E-03
   6  Prefactor     1.7958        135.33       -.13056E-04   -.26035E-04
   7  Prefactor     20.034        14.288        .10504E-06    .26815E-05
   8  Prefactor     .65968        .20168        .66149E-07    .45474E-03
   9  Prefactor     .10000E-03    10.061       -.42496E-07** at limit **
  10  Prefactor     5.1758        43.573       -.82012E-05   -.18144E-04
  11  Prefactor     6.7689        9.0743       -.27669E-05   -.98442E-04
  12  norm          2.2433        1.3240       -.59345E-07   -.12793E-03
  13  Prefactor     16.861        29.578        .34580E-05   -.12296E-05
  14  Prefactor     24.136        27.392        .66587E-05   -.77067E-06
  15  Prefactor     12.710        8.0043       -.43928E-05   -.21069E-04
  16  norm          .10000E-03    1.2754       -.43191E-07** at limit **
  17  Prefactor     .10000E-03    4.3713       -.73518E-07** at limit **
  18  Prefactor     .10000E-03    7.5659        .30399E-06** at limit **
  19  Prefactor     5.0878        13.820        .50196E-06   -.48586E-04
  20  Prefactor     46.814        51.944       -.65669E-05    .46107E-05
  21  Normalizat    1.0763        .23131        .18876E-05    .48718E-05
  22  Prefactor     .85370        .11531        .36776E-06    .95292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.8774
  norm       = 0.535958
  Prefactor  = 16.2222
  norm       = 2.32504
  Prefactor  = 1.79577
  Prefactor  = 20.0342
  Prefactor  = 0.659683
  Prefactor  = 0.0001
  Prefactor  = 5.17576
  Prefactor  = 6.76895
  norm       = 2.24332
  Prefactor  = 16.8606
  Prefactor  = 24.1361
  Prefactor  = 12.7103
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08785
  Prefactor  = 46.8137
  Normalizat = 1.07634
  Prefactor  = 0.853704
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.368     FROM HESSE     STATUS=OK           356 CALLS     2718 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.877        15.295        .10054E-03   -1.4911    
   3  norm          .53596        .63170        .81126E-03   -1.5562    
   4  Prefactor     16.222        15.746        .99447E-04   -1.4902    
   5  norm          2.3250        1.5540        .81082E-04   -1.5403    
   6  Prefactor     1.7958        137.91        .29735E-03   -1.5440    
   7  Prefactor     20.034        14.283        .89456E-04   -1.4812    
   8  Prefactor     .65968        .20123        .19197E-04   -1.5546    
   9  Prefactor     .10000E-03    10.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1758        44.230        .17665E-03   -1.5253    
  11  Prefactor     6.7689        9.0970        .15424E-03   -1.5188    
  12  norm          2.2433        1.3213        .70334E-04   -1.5408    
  13  Prefactor     16.861        29.604        .97458E-04   -1.4887    
  14  Prefactor     24.136        27.333        .81517E-04   -1.4725    
  15  Prefactor     12.710        8.0076        .11236E-03   -1.4995    
  16  norm          .10000E-03    1.2790        .91412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3764        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0878        13.810        .17824E-03   -1.5257    
  20  Prefactor     46.814        52.088        .58599E-04   -1.4338    
  21  Normalizat    1.0763        .27492        .33294E-03   -.90515    
  22  Prefactor     .85370        .13774        .18954E-03   -.97778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56754e-10
Minuit parameter uncertainties:
  1  6.34157e-07
  2  15.2988
  3  0.631708
  4  15.7505
  5  1.55402
  6  31.5486
  7  14.2855
  8  0.201232
  9  3.0106e-05
  10  30.2903
  11  9.09885
  12  1.32131
  13  29.6301
  14  27.3472
  15  8.00831
  16  2.38447e-06
  17  1.07321e-05
  18  2.94527e-05
  19  13.8184
  20  52.1389
  21  0.275285
  22  0.137793
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.686e+01  2.963e+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:  8.537e-01  1.378e-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.076e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/696411/likelihoodResults_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.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) = 6869.6458718
delta logL = 0.72247241781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6869.64128305
delta logL = 0.727061170292

Fit tolerance = 1e-08

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

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

 FCN=   6869.641     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      294 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80844E-01    .87068        .40646E-02    .34220E-02
   2  Index         5.7544        2.2272        .13281        .16296E-03
   3  Normalizat    .96530        .49987E-01    .78944E-01    .21892E-04
   4  Prefactor     .89871        .25786E-01    .44988E-01    .40801E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0808442
  Index      = 5.75438
  Normalizat = 0.965296
  Prefactor  = 0.898709
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.641     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      329 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80844E-01    2.5066        .18601E-03   -1.5651    
   2  Index         5.7544        7.3183        .46592E-02    .15145    
   3  Normalizat    .96530        .19996        .34941E-03   -.94202    
   4  Prefactor     .89871        .10054        .18524E-03   -.96186    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.17016e-08
Minuit parameter uncertainties:
  1  0.899799
  2  5.14289
  3  0.200115
  4  0.100562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/696411': 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) = 6869.64128181
delta logL = 0.727062407906

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  8.084e-02  8.998e-01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  5.754e+00  5.143e+00  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:  8.987e-01  1.006e-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:  9.653e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 347.931 26.083
Photon Index (Free Index): 5.75 +/- 5.14
Photon Flux (Free Index): 1.05e-07 +/- 8.49e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/696411/cmap_HighResolution_638755201_639014401_4FGL_J2311.7+2604_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='7.27e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-29 08:45:22.365372', photon_index_error2='5.14', photon_index2='5.75', ts='0.41', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.26e-05', EG='1.08', time_epoch_completed='1632930322.37', return_code='0', job_id='696411', GAL2='0.90', EG2='0.97', return_code2='102', photon_flux_error2='8.49e-08', ts2='2.06', photon_index='2.43' WHERE bin_id='1541' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:45:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 696411: <4FGL_J2311.7+2604_daily_bin1541> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin1541> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 08:30:31 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:30: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 08:30:34 2021
Terminated at Wed Sep 29 08:45:22 2021
Results reported at Wed Sep 29 08:45:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin1541 347.931 26.0831 638755201 639014401 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 :                                   670.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

