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


Performing analysis on: 4FGL_J1104.9+5748_daily_bin1774
RA = 166.24, Dec = 57.8079
tmin = 699148801, tmax = 699408001
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='680101', job_status='RUN', time_executed='2023-03-02 00:37:48.776605', time_epoch_executed='1677746268.78' WHERE source_name='4FGL J1104.9+5748' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680101/ft1_4FGL_J1104.9+5748_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680101/ft1_4FGL_J1104.9+5748_daily_bin1774.fits outfile=/scratch/kocevski/680101/ft1_filteredMKT_4FGL_J1104.9+5748_daily_bin1774.fits ra=166.24 dec=57.8079 rad=12.0 tmin=699148801.0 tmax=699408001.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.79
user 2.59
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.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/680101/ft1_filteredMKT_4FGL_J1104.9+5748_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.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: 215

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/680101/ltcube_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.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/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits
.....................!
real 12.55
user 12.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/680101/ltcube_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.fits outfile=/scratch/kocevski/680101/expmap_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.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/680101/ltcube_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.fits
.....................!
real 191.24
user 186.12
sys 4.80

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

Setting source of interest to:
4FGL J1104.9+5748 @ 166.24 57.8079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits scfile=/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits outfile=/scratch/kocevski/680101/cmap_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.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=166.24 yref=57.8079 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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits scfile=/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits outfile=/scratch/kocevski/680101/cmap_HighResolution_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.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=166.24 yref=57.8079 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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680101/Model_4FGL_J1104.9+5748_daily_bin1774.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/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits......................!
real 34.44
user 33.23
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits', '/scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits', expMap='/scratch/kocevski/680101/expmap_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.fits', expCube='/scratch/kocevski/680101/ltcube_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680101/Model_4FGL_J1104.9+5748_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.9+5748'

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  2.714e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/680101/ft1_filtered_4FGL_J1104.9+5748_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/680101/ft2_4FGL_J1104.9+5748_daily_bin1774.fits
Exposure map: /scratch/kocevski/680101/expmap_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.fits
Exposure cube: /scratch/kocevski/680101/ltcube_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680101/Model_4FGL_J1104.9+5748_daily_bin1774.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) = 2407.52380592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18101E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .38191       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33812E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .20099E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10201E+06   1.0000          .0000       .10000E+07
     6 'norm      '    1.3450       1.0000          .0000       .10000E+07
     7 'norm      '    .15965       1.0000          .0000       .10000E+07
     8 'Prefactor '    .36389E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .48535E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .94306E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.0644       1.0000          .0000       .10000E+07
    12 'norm      '    .64382E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    36.126       1.0000          .0000       .10000E+07
    14 'Prefactor '    .50825       1.0000          .0000       .10000E+07
    15 'norm      '    2.3359       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13004       1.0000          .0000       .10000E+07
    17 'Prefactor '    .64476E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .77299       1.0000          .0000       .10000E+07
    19 'norm      '    .22577       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.5335       1.0000          .0000       .10000E+07
    21 'Prefactor '    92.025       1.0000          .0000       .10000E+07
    22 'Prefactor '    .99702E-02   1.0000          .0000       .10000E+07
    23 'norm      '    16.290       1.0000          .0000       .10000E+07
    24 'Prefactor '    4.2316       1.0000          .0000       .10000E+07
    25 'norm      '    .27164E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .81971E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    23.251       1.0000          .0000       .10000E+07
    28 'norm      '    13.687       1.0000          .0000       .10000E+07
    29 'Prefactor '    13.212       1.0000          .0000       .10000E+07
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2407.522     FROM MIGRAD    STATUS=CONVERGED    237 CALLS     3918 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19984E-08    10.538       -.17854E-06** at limit **
   2  norm          .19984E-06    80.771        .76568E-06** at limit **
   3  Prefactor     .11499E-04    173.16        .25858E-06** at limit **
   4  norm           .0000        3.0308       -.18947E-06** at limit **
   5  Prefactor     .10201E+06    1.0958       -.73439E-10    .94067E-01
   6  norm          1.3454        1.0174        .32529E-07   -.20017E-03
   7  norm          .55511E-10    66.237       -.17248E-06** at limit **
   8  Prefactor     .13279E-05    95.333       -.94224E-06** at limit **
   9  norm          .26034E-05    13.326        .36886E-06** at limit **
  10  Prefactor     .21649E-07    14.933        .34088E-07** at limit **
  11  norm          1.0753        4.3337        .41703E-06   -.24396E-03
  12  norm           .0000        1.9958       -.15865E-06** at limit **
  13  Prefactor     36.395        14.622        .11786E-06   -.33939E-01
  14  Prefactor     .84308E-05    162.04        .12776E-05** at limit **
  15  norm          2.3334        3.8261        .82290E-07   -.26519E-03
  16  Prefactor      .0000        60.640       -.33695E-06** at limit **
  17  Prefactor     .35715E-05    14.011        .28334E-06** at limit **
  18  Prefactor     .32265E-04    441.52       -.18132E-05** at limit **
  19  norm          .31580E-06    79.174        .62005E-07** at limit **
  20  Prefactor     1.5029        23.405        .24901E-06   -.36331E-04
  21  Prefactor     92.184        2.7760        .11815E-08   -.14764E-01
  22  Prefactor     .17092E-06    17.409        .64757E-07** at limit **
  23  norm          16.261        1.6236        .71831E-08   -.15392E-03
  24  Prefactor     4.2221        9.7092       -.10053E-07   -.11790E-02
  25  norm          .55511E-10    4.3768       -.28355E-06** at limit **
  26  Prefactor     .11102E-09    8.7065       -.71857E-07** at limit **
  27  Prefactor     23.288        13.742       -.22087E-06   -.15569    
  28  norm          13.695        5.3837       -.10363E-07    .14458E-03
  29  Prefactor     13.203        2.7235        .48216E-07    .25769E-01
  30  Normalizat    .10000E-01    .74178E-01    .17595E-05** at limit **
  31  Prefactor     1.3257        .18678       -.33506E-05    .59900E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9984e-09
  norm       = 1.9984e-07
  Prefactor  = 1.14994e-05
  norm       = 0
  Prefactor  = 102013
  norm       = 1.34538
  norm       = 5.55112e-11
  Prefactor  = 1.32788e-06
  norm       = 2.60342e-06
  Prefactor  = 2.16493e-08
  norm       = 1.0753
  norm       = 0
  Prefactor  = 36.3954
  Prefactor  = 8.43081e-06
  norm       = 2.33339
  Prefactor  = 0
  Prefactor  = 3.57148e-06
  Prefactor  = 3.22652e-05
  norm       = 3.15803e-07
  Prefactor  = 1.50287
  Prefactor  = 92.1835
  Prefactor  = 1.70919e-07
  norm       = 16.2611
  Prefactor  = 4.2221
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 23.2885
  norm       = 13.6953
  Prefactor  = 13.2029
  Normalizat = 0.01
  Prefactor  = 1.32568
 **********
 **   18 **HESSE 
 **********

 FCN=   2407.522     FROM HESSE     STATUS=OK           678 CALLS     4596 TOTAL
                     EDM=   .30E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19984E-08    10.558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .19984E-06    118.84        .91613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11499E-04    183.49        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        3.0325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10201E+06    17149.        .43898E-05   -.92061    
   6  norm          1.3454        1.0165        .93744E-03   -1.5685    
   7  norm          .55511E-10    66.233        .12543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13279E-05    96.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .26034E-05    22.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21649E-07    14.953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0753        4.4253        .11830E-02   -1.5687    
  12  norm           .0000        1.9977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.395        116.70        .16640E-03   -1.5587    
  14  Prefactor     .84308E-05    168.21        .77884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3334        3.8551        .67064E-03   -1.5677    
  16  Prefactor      .0000        60.677        .13184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .35715E-05    21.029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .32265E-04    486.69        .54971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .31580E-06    79.423        .11334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5029        25.026        .86128E-03   -1.5683    
  21  Prefactor     92.184        50.740        .10425E-03   -1.5516    
  22  Prefactor     .17092E-06    17.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.261        20.301        .24788E-03   -1.5627    
  24  Prefactor     4.2221        9.8084        .48960E-03   -1.5667    
  25  norm          .55511E-10    4.3661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11102E-09    8.7082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.288        28.021        .20743E-03   -1.5611    
  28  norm          13.695        5.4184        .27048E-03   -1.5634    
  29  Prefactor     13.203        23.171        .27532E-03   -1.5635    
  30  Normalizat    .10000E-01    .69482E-01    .18626       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.3257        .21699        .54003E-01   -.82547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97593e-05
Minuit parameter uncertainties:
  1  0.000288512
  2  0.00974612
  3  0.0918722
  4  1.78525e-05
  5  17157.7
  6  1.01652
  7  0.000125794
  8  0.0226381
  9  0.0151543
  10  0.00113722
  11  4.3628
  12  3.3983e-06
  13  116.702
  14  0.0753195
  15  3.85506
  16  5.48588e-05
  17  0.0173325
  18  0.250644
  19  0.0100165
  20  12.2656
  21  50.74
  22  0.00346522
  23  20.3008
  24  9.80846
  25  2.932e-05
  26  6.10637e-05
  27  28.0213
  28  5.41836
  29  23.1708
  30  1.46359e-08
  31  0.217136
Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  3.571e-06  1.733e-02  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  1.326e+00  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.000e-02  1.464e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680101/likelihoodResults_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.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) = 2407.54503511
delta logL = -0.0227678223096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2407.52226768
delta logL = -3.87419277104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   2407.522     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      218 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.723        .42118E-03** at limit **
   2  Index         2.8005        1.2972        .77537E-04     .0000    
   3  Normalizat    .10000E-01    .25505        .16831E-04** at limit **
   4  Prefactor     1.3257        1.0724        .38778E-05   -.51561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.80055
  Normalizat = 0.01
  Prefactor  = 1.32568
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2407.522     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .88840        2.0059        .77537E-04   -.45548    
   3  Normalizat    .10000E-01    .25505        .16831E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3257        1.0724        .38778E-05   -.82547    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.17515e-11
Minuit parameter uncertainties:
  1  3.76074e-05
  2  1.31591
  3  8.50113e-07
  4  1.09116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680101': 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) = 2407.5222672
delta logL = 8.48926902108e-08

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  0.000e+00  3.761e-05  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.801e+00  1.316e+00  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  1.326e+00  1.091e+00  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.000e-02  8.501e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.240 57.808

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/680101/cmap_HighResolution_699148801_699408001_4FGL_J1104.9+5748_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.93e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2023-03-02 00:47:27.984274', job_id='680101', GAL2='1.33', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677746847.98', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='8.49e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1774' AND source_name='4FGL J1104.9+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:47:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 680101: <4FGL_J1104.9+5748_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1104.9+5748_daily_bin1774> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar  2 00:35:19 2023
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:35:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:35:20 2023
Terminated at Thu Mar  2 00:47:28 2023
Results reported at Thu Mar  2 00:47:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.9+5748_daily_bin1774 166.24 57.8079 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.9+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            729 sec.

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

