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


Performing analysis on: 4FGL_J2311.7+2604_daily_bin600
RA = 347.931, Dec = 26.0831
tmin = 394848001, tmax = 395107201
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='691668', job_status='RUN', time_executed='2021-09-29 08:18:29.817952', time_epoch_executed='1632928709.82' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691668

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691668/ft1_4FGL_J2311.7+2604_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691668/ft2_4FGL_J2311.7+2604_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691668/ft1_4FGL_J2311.7+2604_daily_bin600.fits outfile=/scratch/kocevski/691668/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin600.fits ra=347.931 dec=26.0831 rad=12.0 tmin=394848001.0 tmax=395107201.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.22
user 4.99
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691668/ft1_filtered_4FGL_J2311.7+2604_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/691668/ft2_4FGL_J2311.7+2604_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/691668/ltcube_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.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/691668/ft2_4FGL_J2311.7+2604_daily_bin600.fits
.....................!
real 11.88
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691668/ft1_filtered_4FGL_J2311.7+2604_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/691668/ft2_4FGL_J2311.7+2604_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/691668/ltcube_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.fits outfile=/scratch/kocevski/691668/expmap_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.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/691668/ltcube_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.fits
.....................!
real 190.35
user 184.91
sys 5.01

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/691668/ft1_filtered_4FGL_J2311.7+2604_daily_bin600.fits scfile=/scratch/kocevski/691668/ft2_4FGL_J2311.7+2604_daily_bin600.fits outfile=/scratch/kocevski/691668/cmap_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691668/ft1_filtered_4FGL_J2311.7+2604_daily_bin600.fits scfile=/scratch/kocevski/691668/ft2_4FGL_J2311.7+2604_daily_bin600.fits outfile=/scratch/kocevski/691668/cmap_HighResolution_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691668/ft1_filtered_4FGL_J2311.7+2604_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/691668/ft2_4FGL_J2311.7+2604_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691668/Model_4FGL_J2311.7+2604_daily_bin600.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/691668/ft1_filtered_4FGL_J2311.7+2604_daily_bin600.fits.....................!
real 88.97
user 87.50
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17793E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.646       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6444       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6589       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.539       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4018       1.0000         .10000E-03   10000.    
    16 'norm      '    38.048       1.0000         .10000E-03   10000.    
    17 'Prefactor '    82.963       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2580       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42279E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61290       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0647       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=   7891.968     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     2413 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    191.84        .18142E-02** at limit **
   2  Prefactor     14.668        13.251        .10466E-03    .31502E-03
   3  norm          4.2117        1.3202        .55045E-04    .32905E-03
   4  Prefactor     .10000E-03    6.2264        .18142E-02** at limit **
   5  norm          2.6460        1.9818        .10106E-03    .33322E-03
   6  Prefactor     .10000E-03    19.349        .18142E-02** at limit **
   7  Prefactor     .65149        43.942        .47003E-02    .20330E-03
   8  Prefactor     1.9425        .27136        .16564E-04    .24256E-02
   9  Prefactor     .10000E-03    7.2486        .18142E-02** at limit **
  10  Prefactor     .10000E-03    13.678        .18142E-02** at limit **
  11  Prefactor     .10000E-03    32.755        .40710E-02** at limit **
  12  norm          1.6580        1.6039        .10528E-03    .17169E-03
  13  Prefactor     13.815        20.782        .10773E-03   -.27544E-04
  14  Prefactor     34.540        23.097        .68187E-04   -.39014E-05
  15  Prefactor     2.4033        6.4883        .26420E-03    .14983E-03
  16  norm          38.046        11.451        .64977E-04    .22413E-03
  17  Prefactor     82.933        29.189        .44100E-04    .10621E-03
  18  Prefactor     .10000E-03    25.174        .18142E-02** at limit **
  19  Prefactor     5.2607        16.701        .17529E-03    .54285E-04
  20  Prefactor     .10000E-03    28.648        .13101    ** at limit **
  21  Normalizat    .61301        .24960        .43071E-03    .38418E-03
  22  Prefactor     1.0649        .13233        .18579E-03    .34930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 14.6685
  norm       = 4.21166
  Prefactor  = 0.0001
  norm       = 2.64596
  Prefactor  = 0.0001
  Prefactor  = 0.651491
  Prefactor  = 1.9425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.65797
  Prefactor  = 13.8146
  Prefactor  = 34.54
  Prefactor  = 2.40334
  norm       = 38.0463
  Prefactor  = 82.9331
  Prefactor  = 0.000100002
  Prefactor  = 5.26075
  Prefactor  = 0.000100002
  Normalizat = 0.613009
  Prefactor  = 1.06487
 **********
 **   18 **HESSE 
 **********

 FCN=   7891.968     FROM HESSE     STATUS=OK           332 CALLS     2745 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    191.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.668        13.249        .41863E-05   -1.4942    
   3  norm          4.2117        1.3201        .11009E-04   -1.5297    
   4  Prefactor     .10000E-03    6.2266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6460        1.9658        .40423E-05   -1.5383    
   6  Prefactor     .10000E-03    19.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .65149        43.381        .18801E-03   -1.5547    
   8  Prefactor     1.9425        .27125        .33129E-05   -1.5429    
   9  Prefactor     .10000E-03    7.2500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.355        .81420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6580        1.6036        .42113E-05   -1.5450    
  13  Prefactor     13.815        20.777        .43091E-05   -1.4964    
  14  Prefactor     34.540        23.096        .13637E-04   -1.4532    
  15  Prefactor     2.4033        6.4855        .10568E-04   -1.5398    
  16  norm          38.046        11.451        .25991E-05   -1.4474    
  17  Prefactor     82.933        29.186        .88199E-05   -1.3884    
  18  Prefactor     .10000E-03    25.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2607        16.701        .70116E-05   -1.5249    
  20  Prefactor     .10000E-03    28.265        .13223       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .61301        .24921        .17228E-04   -1.0743    
  22  Prefactor     1.0649        .13237        .37157E-04   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11583e-09
Minuit parameter uncertainties:
  1  0.00195901
  2  13.2517
  3  1.32015
  4  4.66469e-06
  5  1.96584
  6  4.07622e-05
  7  10.6397
  8  0.271253
  9  7.97454e-06
  10  4.734e-06
  11  0.000296942
  12  1.60367
  13  20.7877
  14  23.1022
  15  6.48738
  16  11.4518
  17  29.1912
  18  0.000493454
  19  16.7156
  20  0.000474568
  21  0.249671
  22  0.132408
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.381e+01  2.079e+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:  1.065e+00  1.324e-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:  6.130e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691668/likelihoodResults_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.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) = 7891.69068526
delta logL = 0.277465528123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7891.67727405
delta logL = 0.290876736301

Fit tolerance = 1e-08

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

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

 FCN=   7891.677     FROM MIGRAD    STATUS=FAILED        88 CALLS      283 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6964        22.635        .15507E-03   -.19728E-03
   2  Index         3.2476        1.8435        .80935E-02    .60415E-03
   3  Normalizat    .57993        .24016        .44206E-03    .48349E-04
   4  Prefactor     1.0743        .13144        .18502E-03    .62586E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7891.677     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      356 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6964        22.635        .33352E-03   -1.5190    
   2  Index         3.2476        1.8435        .16244E-02   -.35808    
   3  Normalizat    .57993        .24016        .44537E-03   -1.0884    
   4  Prefactor     1.0743        .13144        .16359E-03   -.90293    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7891.677     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      384 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6965        14.506        .62029E-05    .31524E-04
   2  Index         3.2476        1.1976        .16187E-02   -.93480E-05
   3  Normalizat    .57993        .23829        .17682E-04    .16716E-05
   4  Prefactor     1.0743        .13056        .37003E-04    .27651E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69652
  Index      = 3.24762
  Normalizat = 0.579931
  Prefactor  = 1.07428
 **********
 **   18 **HESSE 
 **********

 FCN=   7891.677     FROM HESSE     STATUS=OK            23 CALLS      407 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6965        13.712        .12406E-05   -1.5190    
   2  Index         3.2476        1.1322        .64748E-04   -.35808    
   3  Normalizat    .57993        .23822        .35365E-05   -1.0884    
   4  Prefactor     1.0743        .13051        .74006E-05   -.90293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63433e-11
Minuit parameter uncertainties:
  1  13.7182
  2  1.14358
  3  0.238641
  4  0.130554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691668': 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) = 7891.67727076
delta logL = 0.29088002903

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  6.697e+00  1.372e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.248e+00  1.144e+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:  1.074e+00  1.306e-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:  5.799e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 347.931 26.083
Photon Index (Free Index): 3.25 +/- 1.14
Photon Flux (Free Index): 5.50e-08 +/- 6.19e-08
Energy Flux (Free Index): 9.90e-06 +/- 1.05e-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/691668/cmap_HighResolution_394848001_395107201_4FGL_J2311.7+2604_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', comment='SUCCESS', energy_flux2='9.90e-06', dlogl='2.91e-01', photon_flux2='5.50e-08', job_status='DONE', time_completed='2021-09-29 08:31:09.877685', photon_index_error2='1.14', photon_index2='3.25', ts='0.58', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.05e-05', EG='0.61', time_epoch_completed='1632929469.88', return_code='0', job_id='691668', GAL2='1.07', EG2='0.58', return_code2='0', photon_flux_error2='6.19e-08', ts2='1.19', photon_index='2.43' WHERE bin_id='600' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:31:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 691668: <4FGL_J2311.7+2604_daily_bin600> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 08:15:39 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:15:43 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:15:43 2021
Terminated at Wed Sep 29 08:31:10 2021
Results reported at Wed Sep 29 08:31:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin600 347.931 26.0831 394848001 395107201 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            931 sec.

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

