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


Performing analysis on: 4FGL_J1054.5+2211_weekly_bin763
RA = 163.628, Dec = 22.1913
tmin = 700444801, tmax = 701049601
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='422711', job_status='RUN', time_executed='2023-03-21 01:20:56.520573', time_epoch_executed='1679386856.52' WHERE source_name='4FGL J1054.5+2211' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422711

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422711/ft1_4FGL_J1054.5+2211_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422711/ft1_4FGL_J1054.5+2211_weekly_bin763.fits outfile=/scratch/kocevski/422711/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin763.fits ra=163.628 dec=22.1913 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.57
user 9.26
sys 0.27

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

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

Number of photons that the gtmktime cut: 923

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422711/ft1_filtered_4FGL_J1054.5+2211_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/422711/ltcube_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.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/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits
.....................!
real 26.62
user 26.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422711/ft1_filtered_4FGL_J1054.5+2211_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/422711/ltcube_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.fits outfile=/scratch/kocevski/422711/expmap_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.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/422711/ltcube_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.fits
.....................!
real 192.62
user 187.43
sys 4.74

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/422711/ft1_filtered_4FGL_J1054.5+2211_weekly_bin763.fits scfile=/scratch/kocevski/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits outfile=/scratch/kocevski/422711/cmap_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422711/ft1_filtered_4FGL_J1054.5+2211_weekly_bin763.fits scfile=/scratch/kocevski/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits outfile=/scratch/kocevski/422711/cmap_HighResolution_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422711/ft1_filtered_4FGL_J1054.5+2211_weekly_bin763.fits', '/scratch/kocevski/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits', expMap='/scratch/kocevski/422711/expmap_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.fits', expCube='/scratch/kocevski/422711/ltcube_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422711/Model_4FGL_J1054.5+2211_weekly_bin763.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/422711/ft1_filtered_4FGL_J1054.5+2211_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/422711/ft2_4FGL_J1054.5+2211_weekly_bin763.fits
Exposure map: /scratch/kocevski/422711/expmap_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.fits
Exposure cube: /scratch/kocevski/422711/ltcube_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422711/Model_4FGL_J1054.5+2211_weekly_bin763.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) = 10855.7547609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.310       1.0000          .0000       .10000E+07
     2 'Prefactor '    26.503       1.0000          .0000       .10000E+07
     3 'Prefactor '    29.026       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19557       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21952       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.737       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.036       1.0000          .0000       .10000E+07
     8 'Prefactor '    .44814E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .73826E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.1393       1.0000          .0000       .10000E+07
    11 'Prefactor '    20.086       1.0000          .0000       .10000E+07
    12 'norm      '    .27756E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0332       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10643E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .49166E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.1912       1.0000          .0000       .10000E+07
    17 'Prefactor '    .87063E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1024       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79860       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=   10855.62     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1179 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.253        5.8380        .35088E-07    .79209E-02
   2  Prefactor     25.776        13.971       -.20195E-07   -.13091    
   3  Prefactor     29.553        23.106        .73895E-07   -.79690E-01
   4  Prefactor     .22467        7.2719        .20435E-06** at limit **
   5  Prefactor     .21903        1.4274        .42074E-07** at limit **
   6  Prefactor     11.697        6.4402       -.68503E-07   -.69481E-02
   7  Prefactor     12.080        6.8685       -.78660E-07   -.27731E-01
   8  Prefactor     .18097E-06    13.437        .16633E-06** at limit **
   9  Prefactor     .35361E-07    6.3543        .17856E-06** at limit **
  10  Prefactor     9.1324        6.7076        .75332E-08    .27608E-01
  11  Prefactor     19.900        2.4374       -.14868E-07   -.95558E-02
  12  norm           .0000        2.3925        .34295E-07** at limit **
  13  Prefactor     1.0328        2.0335        .31250E-07    .48323E-03
  14  Prefactor     .73885E-07    9.6473        .29261E-06** at limit **
  15  norm          .22204E-09    4.7924        .10614E-06** at limit **
  16  Prefactor     5.2696        9.2540        .16669E-07    .34264E-01
  17  Prefactor     .23870E-08    3.5463       -.16642E-06** at limit **
  18  Normalizat    1.1026        .15333        .87593E-07   -.16156E-03
  19  Prefactor     .79865        .15334       -.74315E-06   -.15035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2532
  Prefactor  = 25.7757
  Prefactor  = 29.5531
  Prefactor  = 0.224666
  Prefactor  = 0.219027
  Prefactor  = 11.6967
  Prefactor  = 12.0796
  Prefactor  = 1.80966e-07
  Prefactor  = 3.53606e-08
  Prefactor  = 9.13237
  Prefactor  = 19.8997
  norm       = 0
  Prefactor  = 1.03278
  Prefactor  = 7.38853e-08
  norm       = 2.22045e-10
  Prefactor  = 5.2696
  Prefactor  = 2.38698e-09
  Normalizat = 1.10259
  Prefactor  = 0.798654
 **********
 **   18 **HESSE 
 **********

 FCN=   10855.62     FROM HESSE     STATUS=OK           324 CALLS     1503 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.253        5.8496        .28525E-03   -1.5638    
   2  Prefactor     25.776        21.204        .19428E-03   -1.5606    
   3  Prefactor     29.553        28.252        .18564E-03   -1.5599    
   4  Prefactor     .22467        2.0889        .81849E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21903        .84772        .31420E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.697        6.4991        .29216E-03   -1.5640    
   7  Prefactor     12.080        9.2547        .28849E-03   -1.5638    
   8  Prefactor     .18097E-06    13.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35361E-07    6.4187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1324        7.2242        .33128E-03   -1.5648    
  11  Prefactor     19.900        16.941        .22320E-03   -1.5619    
  12  norm           .0000        .57873        .27522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0328        2.1364        .12437E-02   -1.5688    
  14  Prefactor     .73885E-07    9.7240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .22204E-09    4.7991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2696        9.8534        .44097E-03   -1.5662    
  17  Prefactor     .23870E-08    3.5505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1026        .13641        .37903E-01   -.89669    
  19  Prefactor     .79865        .13332        .43699E-01   -.99778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29989e-07
Minuit parameter uncertainties:
  1  5.84961
  2  21.2044
  3  28.2525
  4  1.37012
  5  0.847719
  6  6.49907
  7  9.25471
  8  0.00315718
  9  0.000952664
  10  7.22424
  11  16.9406
  12  4.42122e-06
  13  2.13637
  14  0.00169508
  15  6.59798e-05
  16  9.85346
  17  0.000185086
  18  0.136455
  19  0.133377
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.536e-08  9.527e-04  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:  7.987e-01  1.334e-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:  1.103e+00  1.365e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422711/likelihoodResults_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.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) = 10855.7003485
delta logL = -0.0813901707988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10855.6189604
delta logL = -2.06475306186e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31391E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.7957       1.0000          .0000       10.000    
     3 'Normalizat'    1.1024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79878       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10855.62     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      208 TOTAL
                     EDM=   .51E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        18.767        .42118E-03** at limit **
   2  Index         1.3494        .91512        .45625E-05     .0000    
   3  Normalizat    1.1026        1.1537        .35802E-05    .65404E-05
   4  Prefactor     .79865        1.1473       -.43320E-05   -.10416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.34943
  Normalizat = 1.10259
  Prefactor  = 0.798655
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10855.62     FROM HESSE     STATUS=FAILED         9 CALLS      217 TOTAL
                     EDM=   .51E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .14607        1.3367        .45625E-05   -.81849    
   3  Normalizat    1.1026        1.1537        .35802E-05   -.89669    
   4  Prefactor     .79865        1.1473       -.43320E-05   -.99778    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.09978e-13
Minuit parameter uncertainties:
  1  8.24963e-06
  2  0.926434
  3  1.18179
  4  1.18468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422711': 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): 101
logL (Free Index) = 10855.6189583
delta logL = 2.75031197816e-09

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  0.000e+00  8.250e-06  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  1.349e+00  9.264e-01  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:  7.987e-01  1.185e+00  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:  1.103e+00  1.182e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 163.628 22.191

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/422711/cmap_HighResolution_700444801_701049601_4FGL_J1054.5+2211_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', job_status='DONE', photon_flux_upper_limit='4.27e-08', time_completed='2023-03-21 01:33:39.509532', job_id='422711', GAL2='0.80', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1679387619.51', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.75e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='763' AND source_name='4FGL J1054.5+2211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:33:39 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 422711: <4FGL_J1054.5+2211_weekly_bin763> in cluster <slac> Done

Job <4FGL_J1054.5+2211_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 01:20:19 2023
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 01:20:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 01:20:21 2023
Terminated at Tue Mar 21 01:33:40 2023
Results reported at Tue Mar 21 01:33:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_weekly_bin763 163.628 22.1913 700444801 701049601 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 :                                   762.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

