aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 46 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7534
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2311.0+3425_daily_bin1719
RA = 347.768, Dec = 34.4223
tmin = 684892801, tmax = 685152001
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='668283', job_status='RUN', time_executed='2022-09-18 01:21:56.170470', time_epoch_executed='1663489316.17' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668283/ft1_4FGL_J2311.0+3425_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668283/ft1_4FGL_J2311.0+3425_daily_bin1719.fits outfile=/scratch/kocevski/668283/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1719.fits ra=347.768 dec=34.4223 rad=12.0 tmin=684892801.0 tmax=685152001.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.14
user 2.90
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.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/668283/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin1719.fits evtable="EVENTS" outfile="/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.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

Number of photons that the gtmktime cut: 1250

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/668283/ltcube_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.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/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits
.....................!
real 16.04
user 15.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/668283/ltcube_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.fits outfile=/scratch/kocevski/668283/expmap_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.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/668283/ltcube_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.fits
.....................!
real 193.26
user 186.01
sys 5.14

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 157 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2311.0+3425 @ 347.768 34.4223

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits scfile=/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits outfile=/scratch/kocevski/668283/cmap_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.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.768 yref=34.4223 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits scfile=/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits outfile=/scratch/kocevski/668283/cmap_HighResolution_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.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.768 yref=34.4223 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668283/Model_4FGL_J2311.0+3425_daily_bin1719.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits.....................!
real 149.48
user 146.51
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits', '/scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits', expMap='/scratch/kocevski/668283/expmap_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.fits', expCube='/scratch/kocevski/668283/ltcube_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668283/Model_4FGL_J2311.0+3425_daily_bin1719.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.0+3425'

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.866e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/668283/ft1_filtered_4FGL_J2311.0+3425_daily_bin1719.fits
Spacecraft file(s): /scratch/kocevski/668283/ft2_4FGL_J2311.0+3425_daily_bin1719.fits
Exposure map: /scratch/kocevski/668283/expmap_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.fits
Exposure cube: /scratch/kocevski/668283/ltcube_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668283/Model_4FGL_J2311.0+3425_daily_bin1719.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) = 13545.0040258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69771E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.6346       1.0000          .0000       .10000E+07
     3 'norm      '    .60790E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.535       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.1231       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.5193       1.0000          .0000       .10000E+07
     7 'norm      '    2.5788       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.0865       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.394       1.0000          .0000       .10000E+07
    10 'Prefactor '    50.798       1.0000          .0000       .10000E+07
    11 'norm      '    4.7924       1.0000          .0000       .10000E+07
    12 'norm      '    6.8616       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17070       1.0000          .0000       .10000E+07
    14 'norm      '    .24176       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16796E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20677E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15710E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.5185       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79441       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13545.00     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1411 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        110.13        .20291E-06** at limit **
   2  norm          1.6343        .98060        .35718E-07   -.96679E-03
   3  norm           .0000        1.1152        .76579E-07** at limit **
   4  Prefactor     13.331        12.181       -.57412E-07    .11657E-02
   5  Prefactor     2.1317        4.5270        .30298E-07   -.46867E-03
   6  Prefactor     6.4746        1.3968       -.16628E-07    .42145E-01
   7  norm          2.5787        1.4512       -.30249E-07    .63489E-04
   8  Prefactor     3.1407        41.045       -.37698E-06   -.61289E-02
   9  Prefactor     10.404        1.2497       -.15922E-07    .23940E-01
  10  Prefactor     50.853        9.4235       -.40522E-07    .62756E-01
  11  norm          4.8641        4.3495       -.46578E-07   -.16714E-03
  12  norm          6.8510        6.0664       -.92276E-08    .51411E-03
  13  Prefactor     .90483E-08    31.486       -.57395E-06** at limit **
  14  norm          .24323        1.3159       -.20184E-06** at limit **
  15  Prefactor      .0000        17.655        .10775E-07** at limit **
  16  Prefactor      .0000        11.713       -.41451E-06** at limit **
  17  Prefactor      .0000        2.0815        .89254E-07** at limit **
  18  Normalizat    1.5185        .21197        .10424E-04   -.58555E-04
  19  Prefactor     .79443        .83615E-01   -.39274E-05   -.50437E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.63433
  norm       = 0
  Prefactor  = 13.3312
  Prefactor  = 2.13166
  Prefactor  = 6.47457
  norm       = 2.5787
  Prefactor  = 3.14069
  Prefactor  = 10.4041
  Prefactor  = 50.853
  norm       = 4.86407
  norm       = 6.85101
  Prefactor  = 9.04832e-09
  norm       = 0.243225
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.5185
  Prefactor  = 0.794434
 **********
 **   18 **HESSE 
 **********

 FCN=   13545.00     FROM HESSE     STATUS=OK           312 CALLS     1723 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        107.72        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6343        .98581        .82651E-03   -1.5682    
   3  norm           .0000        1.1151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.331        12.180        .27200E-03   -1.5635    
   5  Prefactor     2.1317        4.5684        .70746E-03   -1.5679    
   6  Prefactor     6.4746        9.1629        .39282E-03   -1.5657    
   7  norm          2.5787        1.4622        .63526E-03   -1.5676    
   8  Prefactor     3.1407        52.831        .57704E-03   -1.5673    
   9  Prefactor     10.404        8.9870        .31054E-03   -1.5643    
  10  Prefactor     50.853        34.739        .14032E-03   -1.5565    
  11  norm          4.8641        4.4015        .45933E-03   -1.5664    
  12  norm          6.8510        6.0846        .38278E-03   -1.5656    
  13  Prefactor     .90483E-08    30.978        .12322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .24323        1.3339        .11075E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        17.480        .17257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        11.790        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.1106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5185        .18172        .75734E-01   -.77260    
  19  Prefactor     .79443        .71064E-01    .43644E-01   -.99934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03474e-06
Minuit parameter uncertainties:
  1  1.77181e-05
  2  0.985808
  3  6.9762e-07
  4  12.18
  5  4.56843
  6  9.16293
  7  1.46225
  8  25.7627
  9  8.98698
  10  34.7393
  11  4.40152
  12  6.08462
  13  0.00106033
  14  1.13917
  15  1.60306e-06
  16  1.88662e-05
  17  1.82408e-06
  18  0.181798
  19  0.071072
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.579e+00  1.462e+00  0.000e+00  1.000e+06 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  7.944e-01  7.107e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.519e+00  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 7.13e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.44e-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) = 13542.7006536
delta logL = 2.2984509455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13542.6794473
delta logL = 2.31965724667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4141       1.0000          .0000       .10000E+07
     2 'alpha     '    3.6447       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83269       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+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=   13542.68     FROM MIGRAD    STATUS=FAILED        97 CALLS      289 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4142        1.7191        .49765E-05   -.91927E-02
   2  alpha         3.6446        .98541        .15030E-01    .38262E-03
   3  Normalizat    1.3776        .21645        .34832E-03   -.13075E-03
   4  Prefactor     .83266        .84638E-01    .17441E-03    .18004E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13542.68     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      364 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4142        1.7191        .28144E-05   -1.5684    
   2  alpha         3.6446        .98541        .78731E-03    .47558    
   3  Normalizat    1.3776        .21645        .22848E-03   -.81279    
   4  Prefactor     .83266        .84638E-01    .10084E-03   -.98535    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13542.68     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      392 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4142        1.2958        .19906E-06    .77344E-03
   2  alpha         3.6446        .75355        .30060E-02   -.20045E-05
   3  Normalizat    1.3776        .21594        .13933E-04    .32638E-06
   4  Prefactor     .83266        .84227E-01    .69764E-05    .65183E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4142
  alpha      = 3.64462
  Normalizat = 1.37758
  Prefactor  = 0.832659
 **********
 **   18 **HESSE 
 **********

 FCN=   13542.68     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4142        1.2418        .37394E-06   -1.5684    
   2  alpha         3.6446        .72318        .12024E-03    .47557    
   3  Normalizat    1.3776        .21616        .27866E-05   -.81279    
   4  Prefactor     .83266        .84304E-01    .13953E-05   -.98535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6299e-12
Minuit parameter uncertainties:
  1  1.24183
  2  0.736595
  3  0.216304
  4  0.0843167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668283': 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) = 13542.679447
delta logL = 2.31965753695

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.414e+00  1.242e+00  0.000e+00  1.000e+06 ( 1.000e-11)
373        alpha:  3.645e+00  7.366e-01  0.000e+00  5.000e+00 ( 1.000e+00)
374         beta:  9.511e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.327e-01  8.432e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.378e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.89
Ra Dec: 347.768 34.422
Photon Index (Free Index): 3.64 +/- 0.74
Photon Flux (Free Index): 1.75e-07 +/- 7.08e-08
Energy Flux (Free Index): 2.89e-05 +/- 1.13e-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/668283/cmap_HighResolution_684892801_685152001_4FGL_J2311.0+3425_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.13e-08', energy_flux2='2.89e-05', photon_flux_error='4.04e-08', dlogl='2.32e+00', energy_flux='2.53e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2022-09-18 01:34:44.884099', photon_index_error2='0.74', photon_index2='3.64', ts='4.59', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.52', time_epoch_completed='1663490084.88', return_code='0', job_id='668283', GAL2='0.83', EG2='1.38', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='7.08e-08', ts2='9.89', photon_index='2.24' WHERE bin_id='1719' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 01:34:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 668283: <4FGL_J2311.0+3425_daily_bin1719> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin1719> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 18 01:20:23 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 01:21:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 01:21:02 2022
Terminated at Sun Sep 18 01:34:45 2022
Results reported at Sun Sep 18 01:34:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin1719 347.768 34.4223 684892801 685152001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+3425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             389.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            862 sec.

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

