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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1718
RA = 166.119, Dec = 38.207
tmin = 684633601, tmax = 684892801
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='100347', job_status='RUN', time_executed='2022-09-16 15:49:58.741509', time_epoch_executed='1663368598.74' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100347/ft1_4FGL_J1104.4+3812_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100347/ft1_4FGL_J1104.4+3812_daily_bin1718.fits outfile=/scratch/kocevski/100347/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1718.fits ra=166.119 dec=38.207 rad=12.0 tmin=684633601.0 tmax=684892801.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.25
user 3.00
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.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/100347/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 133

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/100347/ltcube_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.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/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits
.....................!
real 15.75
user 15.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/100347/ltcube_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.fits outfile=/scratch/kocevski/100347/expmap_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.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/100347/ltcube_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.fits
.....................!
real 192.22
user 185.99
sys 5.43

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

Setting source of interest to:
4FGL J1104.4+3812 @ 166.119 38.207

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits scfile=/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits outfile=/scratch/kocevski/100347/cmap_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.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.119 yref=38.207 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits scfile=/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits outfile=/scratch/kocevski/100347/cmap_HighResolution_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.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.119 yref=38.207 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100347/Model_4FGL_J1104.4+3812_daily_bin1718.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/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits.......................!
real 24.45
user 23.08
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits', '/scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits', expMap='/scratch/kocevski/100347/expmap_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.fits', expCube='/scratch/kocevski/100347/ltcube_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100347/Model_4FGL_J1104.4+3812_daily_bin1718.xml', optimizer='MINUIT')

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

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.879e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/100347/ft1_filtered_4FGL_J1104.4+3812_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/100347/ft2_4FGL_J1104.4+3812_daily_bin1718.fits
Exposure map: /scratch/kocevski/100347/expmap_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.fits
Exposure cube: /scratch/kocevski/100347/ltcube_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100347/Model_4FGL_J1104.4+3812_daily_bin1718.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) = 1489.58795147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16185E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .46078E-02   1.0000          .0000       .10000E+07
     3 'norm      '    9.6227       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19291       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17554E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .24748E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    72.256       1.0000          .0000       .10000E+07
     8 'Prefactor '    253.23       1.0000          .0000       .10000E+07
     9 'Prefactor '    .71749E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.4578       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36212E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    84.276       1.0000          .0000       .10000E+07
    13 'Prefactor '    .34544E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14081       1.0000          .0000       .10000E+07
    15 'norm      '    .82741E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .11092       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34638E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .18103E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19394E-03   1.0000          .0000       .10000E+07
    20 'norm      '    8.6803       1.0000          .0000       .10000E+07
    21 'Prefactor '    .20079E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .77237E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    465.44       1.0000          .0000       .10000E+07
    24 'norm      '    .13692E-04   1.0000          .0000       .10000E+07
    25 'norm      '    .25911       1.0000          .0000       .10000E+07
    26 'Prefactor '    5.5515       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1550       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .38123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1489.578     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     3476 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.6889       -.19994E-07** at limit **
   2  Prefactor     .66946E-01    83.782        .46087E-05** at limit **
   3  norm          9.2929        10.249       -.12829E-07    .19062E-03
   4  Prefactor     .55511E-10    81.798       -.97623E-06** at limit **
   5  Prefactor     .55511E-10    14.357       -.57501E-08** at limit **
   6  Prefactor      .0000        11.326       -.20316E-06** at limit **
   7  Prefactor     74.187        78.219       -.24408E-05    .75295E-02
   8  Prefactor     254.68        177.65        .11516E-05   -.22049    
   9  Prefactor      .0000        18.218       -.91370E-07** at limit **
  10  norm          2.4595        .84059       -.22607E-07    .84751E-03
  11  Prefactor     .27756E-09    16.932        .13074E-05** at limit **
  12  Prefactor     83.883        32.083        .30131E-06    .13859    
  13  Prefactor     .11102E-09    25.110       -.46715E-07** at limit **
  14  Prefactor     .16653E-09    70.152        .12672E-06** at limit **
  15  norm           .0000        33.206       -.56514E-07** at limit **
  16  norm          .55511E-10    64.231       -.63034E-06** at limit **
  17  Prefactor      .0000        7.3604       -.37782E-07** at limit **
  18  Prefactor     .34129E-04    98.481       -.90096E-06** at limit **
  19  Prefactor     .63682E-04    87.849        .73968E-06** at limit **
  20  norm          9.2018        17.038        .39559E-06   -.22508E-02
  21  Prefactor     .36486E-05    126.64       -.25598E-05** at limit **
  22  Prefactor      .0000        20.110       -.76391E-06** at limit **
  23  Prefactor     452.21        293.26       -.38084E-07    .47751    
  24  norm           .0000        9.0960       -.12979E-06** at limit **
  25  norm          .55511E-10    98.066       -.14746E-05** at limit **
  26  Prefactor     .31228        3525.3       -.57465E-05   -.53731E-01
  27  Normalizat    1.1565        .33734       -.88395E-05    .24079E-04
  28  Prefactor     .37864        .36893        .20301E-04   -.42663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0.0669457
  norm       = 9.29288
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 74.1868
  Prefactor  = 254.677
  Prefactor  = 0
  norm       = 2.45947
  Prefactor  = 2.77556e-10
  Prefactor  = 83.883
  Prefactor  = 1.11022e-10
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 3.41289e-05
  Prefactor  = 6.36819e-05
  norm       = 9.20179
  Prefactor  = 3.64858e-06
  Prefactor  = 0
  Prefactor  = 452.213
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 0.312275
  Normalizat = 1.15646
  Prefactor  = 0.378636
 **********
 **   18 **HESSE 
 **********

 FCN=   1489.578     FROM HESSE     STATUS=OK           561 CALLS     4037 TOTAL
                     EDM=   .19E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.5788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .66946E-01    6.5803        .42118E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.2929        10.230        .32281E-03   -1.5647    
   4  Prefactor     .55511E-10    81.805        .11903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    14.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        11.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     74.187        77.638        .11765E-03   -1.5536    
   8  Prefactor     254.68        181.58        .62849E-04   -1.5389    
   9  Prefactor      .0000        18.216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4595        .85310        .45056E-03   -1.5677    
  11  Prefactor     .27756E-09    16.748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     83.883        56.032        .10894E-03   -1.5525    
  13  Prefactor     .11102E-09    25.094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16653E-09    70.309        .12942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        33.153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55511E-10    64.142        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        7.3500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .34129E-04    109.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63682E-04    111.70        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.2018        19.555        .33998E-03   -1.5647    
  21  Prefactor     .36486E-05    128.04        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        20.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     452.21        493.39        .46363E-04   -1.5283    
  24  norm           .0000        9.2565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .55511E-10    98.109        .10806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .31228        5185.7        .42617E-03   -1.5719    
  27  Normalizat    1.1565        .31441        .36102E-01   -.87959    
  28  Prefactor     .37864        .34662        .87228E-01   -1.1791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000187779
Minuit parameter uncertainties:
  1  1.85465e-05
  2  1.32743
  3  10.2299
  4  0.000129017
  5  5.84072e-05
  6  1.85601e-05
  7  77.6391
  8  181.58
  9  3.81853e-05
  10  0.853098
  11  0.000134516
  12  56.032
  13  0.000107813
  14  0.000224996
  15  8.6153e-06
  16  0.000117742
  17  1.3269e-05
  18  0.122254
  19  0.16868
  20  19.5554
  21  0.0432295
  22  1.84031e-05
  23  493.431
  24  3.1204e-06
  25  0.000105243
  26  80.5528
  27  0.314926
  28  0.348554
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.459e+00  8.531e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  3.786e-01  3.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.156e+00  3.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.36
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.55e-07 +/- 8.86e-08
Energy Flux (Fixed Index): 3.45e-04 +/- 1.20e-04

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) = 1489.56570442
delta logL = 0.0121474492314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1489.56512057
delta logL = 0.012731294067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4838       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6953       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37652       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1489.565     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      185 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4838        .92447        .45519E-03    .90966E-02
   2  alpha         1.6953        .26817        .88440E-01    .58586E-05
   3  Normalizat    1.1607        .30270        .35935E-01    .49112E-04
   4  Prefactor     .37652        .34280        .87495E-01   -.27978E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48382
  alpha      = 1.69535
  Normalizat = 1.16074
  Prefactor  = 0.376524
 **********
 **   18 **HESSE 
 **********

 FCN=   1489.565     FROM HESSE     STATUS=OK            27 CALLS      212 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4838        .85383        .20094E-05   -1.5676    
   2  alpha         1.6953        .25008        .38737E-03   -.32769    
   3  Normalizat    1.1607        .32343        .20298E-03   -.87825    
   4  Prefactor     .37652        .36460        .38795E-03   -1.1802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69907e-10
Minuit parameter uncertainties:
  1  0.853829
  2  0.250546
  3  0.323991
  4  0.366871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100347': 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) = 1489.56512057
delta logL = 0.0127312941052

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.484e+00  8.538e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.695e+00  2.505e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  2.035e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  3.765e-01  3.669e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.161e+00  3.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.83
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.70 +/- 0.25
Photon Flux (Free Index): 2.46e-07 +/- 1.02e-07
Energy Flux (Free Index): 3.75e-04 +/- 2.33e-04

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/100347/cmap_HighResolution_684633601_684892801_4FGL_J1104.4+3812_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.55e-07', energy_flux2='3.75e-04', photon_flux_error='8.86e-08', dlogl='1.27e-02', energy_flux='3.45e-04', photon_flux2='2.46e-07', job_status='DONE', time_completed='2022-09-16 15:57:17.881302', photon_index_error2='0.25', photon_index2='1.70', ts='51.36', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='2.33e-04', EG='1.16', time_epoch_completed='1663369037.88', return_code='0', job_id='100347', GAL2='0.38', EG2='1.16', return_code2='0', energy_flux_error='1.20e-04', photon_flux_error2='1.02e-07', ts2='51.83', photon_index='1.74' WHERE bin_id='1718' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:57:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 100347: <4FGL_J1104.4+3812_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1718> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 15:45:25 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:46:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:46:29 2022
Terminated at Fri Sep 16 15:57:18 2022
Results reported at Fri Sep 16 15:57:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1718 166.119 38.207 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   439.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            713 sec.

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

