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


Performing analysis on: 4FGL_J1054.5+2211_daily_bin1745
RA = 163.628, Dec = 22.1913
tmin = 691632001, tmax = 691891201
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='643033', job_status='RUN', time_executed='2022-12-05 00:28:52.667172', time_epoch_executed='1670228932.67' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643033/ft1_4FGL_J1054.5+2211_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643033/ft1_4FGL_J1054.5+2211_daily_bin1745.fits outfile=/scratch/kocevski/643033/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1745.fits ra=163.628 dec=22.1913 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.40
user 2.16
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.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/643033/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.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.51
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 686

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/643033/ltcube_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.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/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits
.....................!
real 13.60
user 13.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/643033/ltcube_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.fits outfile=/scratch/kocevski/643033/expmap_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.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/643033/ltcube_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.fits
.....................!
real 192.99
user 187.74
sys 4.37

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits scfile=/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits outfile=/scratch/kocevski/643033/cmap_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.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=163.628 yref=22.1913 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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits scfile=/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits outfile=/scratch/kocevski/643033/cmap_HighResolution_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.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=163.628 yref=22.1913 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.59
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643033/Model_4FGL_J1054.5+2211_daily_bin1745.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/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits.....................!
real 67.18
user 65.06
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits', '/scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits', expMap='/scratch/kocevski/643033/expmap_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.fits', expCube='/scratch/kocevski/643033/ltcube_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/643033/Model_4FGL_J1054.5+2211_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/643033/ft1_filtered_4FGL_J1054.5+2211_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/643033/ft2_4FGL_J1054.5+2211_daily_bin1745.fits
Exposure map: /scratch/kocevski/643033/expmap_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.fits
Exposure cube: /scratch/kocevski/643033/ltcube_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/643033/Model_4FGL_J1054.5+2211_daily_bin1745.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) = 7764.77115681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5288       1.0000          .0000       .10000E+07
     2 'Prefactor '    .70963E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .75892E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.6769       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10653E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.9837       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.2234       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.201       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53452E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0601       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17932E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .73098       1.0000          .0000       .10000E+07
    13 'Prefactor '    .44503E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.6066       1.0000          .0000       .10000E+07
    15 'norm      '    3.9743       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11192E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.6825       1.0000          .0000       .10000E+07
    18 'Normalizat'    .77476       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7764.720     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1139 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5312        4.4863       -.95261E-07   -.23303E-03
   2  Prefactor      .0000        32.642        .15195E-06** at limit **
   3  Prefactor      .0000        58.623        .11208E-05** at limit **
   4  Prefactor     5.6864        5.3226       -.19376E-06   -.70718E-04
   5  Prefactor      .0000        .64467       -.94509E-08** at limit **
   6  Prefactor     6.9923        6.1050       -.15754E-06   -.19769E-03
   7  Prefactor     9.2550        7.0443       -.29374E-07   -.73988E-03
   8  Prefactor     12.245        1.0591       -.48810E-08    .12116E-01
   9  Prefactor     .16653E-09    3.9553       -.27087E-06** at limit **
  10  Prefactor     2.0884        7.3922        .22889E-06    .17962E-03
  11  Prefactor     .16653E-09    11.229        .27414E-06** at limit **
  12  norm          .73149        .80239       -.30608E-08   -.91685E-04
  13  Prefactor     .77716E-08    9.0438        .22274E-06** at limit **
  14  Prefactor     5.5833        5.3937        .71857E-07   -.26337E-03
  15  norm          3.9818        6.9643        .15643E-06   -.16772E-03
  16  Prefactor     .16653E-09    3.0946       -.16364E-06** at limit **
  17  Prefactor     8.1371        4.6210       -.93942E-07   -.19193E-01
  18  Normalizat    .77422        .16852       -.39686E-05   -.39055E-04
  19  Prefactor     1.2463        .18242        .22366E-05   -.45515E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53119
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.68635
  Prefactor  = 0
  Prefactor  = 6.99231
  Prefactor  = 9.255
  Prefactor  = 12.2452
  Prefactor  = 1.66533e-10
  Prefactor  = 2.08842
  Prefactor  = 1.66533e-10
  norm       = 0.731486
  Prefactor  = 7.77156e-09
  Prefactor  = 5.58332
  norm       = 3.98183
  Prefactor  = 1.66533e-10
  Prefactor  = 8.13706
  Normalizat = 0.774217
  Prefactor  = 1.2463
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.720     FROM HESSE     STATUS=OK           312 CALLS     1451 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5312        4.4960        .53788E-03   -1.5670    
   2  Prefactor      .0000        32.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        58.797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6864        5.3362        .42136E-03   -1.5660    
   5  Prefactor      .0000        .63948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9923        6.1228        .37938E-03   -1.5655    
   7  Prefactor     9.2550        7.0526        .32976E-03   -1.5647    
   8  Prefactor     12.245        13.760        .28653E-03   -1.5638    
   9  Prefactor     .16653E-09    3.9726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0884        7.9807        .71971E-03   -1.5679    
  11  Prefactor     .16653E-09    11.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73149        .81434        .58228E-03   -1.5691    
  13  Prefactor     .77716E-08    1.6580        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5833        5.4070        .42403E-03   -1.5661    
  15  norm          3.9818        6.9686        .50570E-03   -1.5668    
  16  Prefactor     .16653E-09    3.1089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1371        14.067        .36156E-03   -1.5651    
  18  Normalizat    .77422        .14670        .43280E-01   -1.0103    
  19  Prefactor     1.2463        .15618        .52391E-01   -.84918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56359e-07
Minuit parameter uncertainties:
  1  4.496
  2  4.74134e-05
  3  4.42005e-05
  4  5.33623
  5  8.93158e-07
  6  6.12281
  7  7.05258
  8  13.7598
  9  5.25803e-05
  10  7.98076
  11  8.96566e-05
  12  0.814345
  13  0.000227372
  14  5.40704
  15  6.96859
  16  4.24309e-05
  17  14.0673
  18  0.146773
  19  0.15624
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.665e-10  5.258e-05  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.246e+00  1.562e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.742e-01  1.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 4.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/643033/likelihoodResults_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.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) = 7764.71986911
delta logL = -0.000314823109875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7764.71955466
delta logL = -3.77830474463e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16868E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.1919       1.0000          .0000       10.000    
     3 'Normalizat'    .77419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2463       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7763.651     FROM MIGRAD    STATUS=FAILED       383 CALLS      574 TOTAL
                     EDM=   .46E+01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94202E-07    .27368E-05     .0000    ** at limit **
   2  Index        10.0000        6.1612         .0000    ** at limit **
   3  Normalizat    .71011        .58581E-01     .0000        .10642E-02
   4  Prefactor     1.2951        .63229E-01     .0000        .56977E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7763.651     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      695 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94202E-07    .27368E-05    .16831E-09** at limit **
   2  Index        10.0000        6.1612        .15994E-01** at limit **
   3  Normalizat    .71011        .58581E-01    .57807E-06    .10642E-02
   4  Prefactor     1.2951        .63229E-01    .13329E-06    .56977E-03
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7763.651     FROM MIGRAD    STATUS=FAILED        56 CALLS      751 TOTAL
                     EDM=   .41E+01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94202E-07    .23945E-05     .0000    ** at limit **
   2  Index        10.0000        6.3783         .0000    ** at limit **
   3  Normalizat    .71011        .51876E-01     .0000        .10364E-02
   4  Prefactor     1.2951        .56306E-01     .0000        .56834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.42024e-08
  Index      = 10
  Normalizat = 0.710106
  Prefactor  = 1.29506
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.651     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      784 TOTAL
                     EDM=   .83E+01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94202E-07    .24399E-05    .74901E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.4514        .39046        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71011        .52766E-01    .53699E-04   -1.0350    
   4  Prefactor     1.2951        .57240E-01    .45569E-04   -.83454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.26904
Minuit parameter uncertainties:
  1  9.58791e-07
  2  0.000828341
  3  0.0527694
  4  0.0572427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643033': 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): 1
logL (Free Index) = 7763.65120732
delta logL = 1.06834696654

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  9.420e-08  9.588e-07  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  1.000e+01  8.283e-04  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.295e+00  5.724e-02  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.101e-01  5.277e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 163.628 22.191
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.12e-08 +/- 5.05e-07
Energy Flux (Free Index): 5.72e-06 +/- 5.68e-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/643033/cmap_HighResolution_691632001_691891201_4FGL_J1054.5+2211_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', comment='SUCCESS', energy_flux2='5.72e-06', dlogl='1.07e+00', photon_flux2='5.12e-08', job_status='DONE', time_completed='2022-12-05 00:39:08.572161', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='4.48e-08', energy_flux_error2='5.68e-05', EG='0.77', time_epoch_completed='1670229548.57', return_code='0', job_id='643033', GAL2='1.30', EG2='0.71', return_code2='1', photon_flux_error2='5.05e-07', ts2='2.26', photon_index='2.13' WHERE bin_id='1745' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:39:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 643033: <4FGL_J1054.5+2211_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1054.5+2211_daily_bin1745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec  5 00:25:27 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:25:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:25:29 2022
Terminated at Mon Dec  5 00:39:09 2022
Results reported at Mon Dec  5 00:39:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1745 163.628 22.1913 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1054.5+2211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   615.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

