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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1753
RA = 166.119, Dec = 38.207
tmin = 693705601, tmax = 693964801
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='452586', job_status='RUN', time_executed='2022-12-29 00:49:20.010247', time_epoch_executed='1672303760.01' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452586

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452586/ft1_4FGL_J1104.4+3812_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452586/ft2_4FGL_J1104.4+3812_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452586/ft1_4FGL_J1104.4+3812_daily_bin1753.fits outfile=/scratch/kocevski/452586/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1753.fits ra=166.119 dec=38.207 rad=12.0 tmin=693705601.0 tmax=693964801.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 4.67
user 4.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452586/ft2_4FGL_J1104.4+3812_daily_bin1753.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/452586/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/452586/ft1_filtered_4FGL_J1104.4+3812_daily_bin1753.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.55
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 560

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452586/ft1_filtered_4FGL_J1104.4+3812_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452586/ft2_4FGL_J1104.4+3812_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/452586/ltcube_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.fits outfile=/scratch/kocevski/452586/expmap_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.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/452586/ltcube_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.fits
.....................!
real 192.78
user 186.17
sys 5.70

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/452586/ft1_filtered_4FGL_J1104.4+3812_daily_bin1753.fits scfile=/scratch/kocevski/452586/ft2_4FGL_J1104.4+3812_daily_bin1753.fits outfile=/scratch/kocevski/452586/cmap_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452586/ft1_filtered_4FGL_J1104.4+3812_daily_bin1753.fits scfile=/scratch/kocevski/452586/ft2_4FGL_J1104.4+3812_daily_bin1753.fits outfile=/scratch/kocevski/452586/cmap_HighResolution_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.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.57
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452586/ft1_filtered_4FGL_J1104.4+3812_daily_bin1753.fits', '/scratch/kocevski/452586/ft2_4FGL_J1104.4+3812_daily_bin1753.fits', expMap='/scratch/kocevski/452586/expmap_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.fits', expCube='/scratch/kocevski/452586/ltcube_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452586/Model_4FGL_J1104.4+3812_daily_bin1753.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/452586/ft1_filtered_4FGL_J1104.4+3812_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/452586/ft2_4FGL_J1104.4+3812_daily_bin1753.fits
Exposure map: /scratch/kocevski/452586/expmap_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.fits
Exposure cube: /scratch/kocevski/452586/ltcube_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452586/Model_4FGL_J1104.4+3812_daily_bin1753.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) = 5994.75695534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97645       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.9679       1.0000          .0000       .10000E+07
     3 'norm      '    .23919E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11424E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    30.241       1.0000          .0000       .10000E+07
     6 'Prefactor '    .50143E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14014E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50101E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11273E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.2554       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.1552       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.6888       1.0000          .0000       .10000E+07
    13 'Prefactor '    .81051E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .22291E-03   1.0000          .0000       .10000E+07
    15 'norm      '    4.9207       1.0000          .0000       .10000E+07
    16 'norm      '    .92231E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14433E-08   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14256E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.1578       1.0000          .0000       .10000E+07
    20 'norm      '    1.8667       1.0000          .0000       .10000E+07
    21 'Prefactor '    .16603       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.4211       1.0000          .0000       .10000E+07
    23 'Prefactor '    4.7097       1.0000          .0000       .10000E+07
    24 'norm      '    .32593       1.0000          .0000       .10000E+07
    25 'norm      '    5.9539       1.0000          .0000       .10000E+07
    26 'Prefactor '    .30673E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .89682       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0752       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=   5994.609     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2491 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98502        2.9620       -.43403E-08    .21996E-04
   2  Prefactor     3.9617        4.5119       -.85122E-08   -.11182E-04
   3  norm          .73830E-08    5.1929       -.16808E-06** at limit **
   4  Prefactor     .76827E-07    158.30       -.41813E-06** at limit **
   5  Prefactor     30.833        7.7654        .30062E-07    .21185E-01
   6  Prefactor      .0000        1.5397       -.18285E-07** at limit **
   7  Prefactor     .33307E-08    5.7330       -.71202E-07** at limit **
   8  Prefactor     .85904E-06    41.061        .20256E-06** at limit **
   9  Prefactor     .11102E-09    4.5115        .85052E-08** at limit **
  10  norm          2.2562        .40227       -.60272E-09    .43472E-03
  11  Prefactor     4.1558        2.6374       -.14925E-07   -.26684E-02
  12  Prefactor     9.5831        2.4659        .24913E-07    .43399E-01
  13  Prefactor     .11657E-07    5.2184        .14821E-06** at limit **
  14  Prefactor     .16043E-07    23.800        .68346E-07** at limit **
  15  norm          4.9871        1.5863       -.24331E-07   -.12386E-01
  16  norm           .0000        44.507        .68443E-07** at limit **
  17  Prefactor      .0000        .48702        .52481E-09** at limit **
  18  Prefactor     .29976E-08    11.816       -.12894E-06** at limit **
  19  Prefactor     1.3708        43.151       -.88930E-06    .68591E-02
  20  norm          1.8672        2.0837       -.28159E-07   -.26180E-02
  21  Prefactor     .12444E-05    9.2105        .11463E-06** at limit **
  22  Prefactor     4.4235        4.2736        .30824E-07    .40531E-03
  23  Prefactor     4.8522        4.9707       -.66018E-07   -.79311E-01
  24  norm          .32613        .68404       -.11933E-07   -.14652E-02
  25  norm          5.9404        6.0818        .55737E-07    .23945E-02
  26  Prefactor     .11685E-05    34.989       -.15457E-06** at limit **
  27  Normalizat    .89653        .19375        .82561E-06   -.62899E-04
  28  Prefactor     1.0752        .23359       -.55644E-06   -.67507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.985023
  Prefactor  = 3.96169
  norm       = 7.38298e-09
  Prefactor  = 7.68274e-08
  Prefactor  = 30.8327
  Prefactor  = 0
  Prefactor  = 3.33067e-09
  Prefactor  = 8.59035e-07
  Prefactor  = 1.11022e-10
  norm       = 2.25622
  Prefactor  = 4.15582
  Prefactor  = 9.58309
  Prefactor  = 1.16573e-08
  Prefactor  = 1.60427e-08
  norm       = 4.98708
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.9976e-09
  Prefactor  = 1.37079
  norm       = 1.86722
  Prefactor  = 1.24439e-06
  Prefactor  = 4.42347
  Prefactor  = 4.85222
  norm       = 0.326133
  norm       = 5.94036
  Prefactor  = 1.16851e-06
  Normalizat = 0.89653
  Prefactor  = 1.07517
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.609     FROM HESSE     STATUS=OK           583 CALLS     3074 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98502        3.0124        .42930E-03   -1.5688    
   2  Prefactor     3.9617        4.5867        .50612E-03   -1.5668    
   3  norm          .73830E-08    5.1876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76827E-07    158.43        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.833        28.168        .18187E-03   -1.5597    
   6  Prefactor      .0000        1.5365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .33307E-08    5.7574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .85904E-06    43.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    4.5116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2562        .41951        .45129E-03   -1.5678    
  11  Prefactor     4.1558        2.6434        .49422E-03   -1.5667    
  12  Prefactor     9.5831        17.690        .32170E-03   -1.5646    
  13  Prefactor     .11657E-07    5.2420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16043E-07    23.865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9871        12.970        .45317E-03   -1.5663    
  16  norm           .0000        44.478        .14143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .48724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29976E-08    11.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3708        86.236        .10717E-02   -1.5685    
  20  norm          1.8672        2.1160        .76217E-03   -1.5681    
  21  Prefactor     .12444E-05    22.659        .89113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4235        4.2869        .47870E-03   -1.5666    
  23  Prefactor     4.8522        18.123        .46344E-03   -1.5664    
  24  norm          .32613        .75399        .20973E-02   -1.5697    
  25  norm          5.9404        6.0802        .41129E-03   -1.5659    
  26  Prefactor     .11685E-05    38.688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .89653        .16579        .44861E-01   -.96582    
  28  Prefactor     1.0752        .19624        .60816E-01   -.90264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06414e-07
Minuit parameter uncertainties:
  1  3.0124
  2  4.58669
  3  0.000391999
  4  0.00697723
  5  28.1681
  6  4.53842e-06
  7  0.000276009
  8  0.0122926
  9  4.37356e-05
  10  0.419506
  11  2.64339
  12  17.6906
  13  0.000494856
  14  0.00123812
  15  12.9702
  16  3.74918e-05
  17  3.41959e-07
  18  0.000375964
  19  21.7454
  20  2.11601
  21  0.0106202
  22  4.28689
  23  18.1229
  24  0.753995
  25  6.08021
  26  0.0134474
  27  0.165882
  28  0.196372
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.256e+00  4.195e-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:  1.075e+00  1.964e-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:  8.965e-01  1.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 169.92
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.34e-07 +/- 4.36e-08
Energy Flux (Fixed Index): 3.17e-04 +/- 5.89e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5994.29841473
delta logL = 0.310603631015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5994.27443384
delta logL = 0.334584523613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1701       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8498       1.0000          .0000       5.0000    
     3 'Normalizat'    .86972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0925       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=   5994.274     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1701        .60666        .43015E-03   -.89584E-02
   2  alpha         1.8498        .20842        .89606E-01    .49530E-04
   3  Normalizat    .86972        .16052        .44513E-01    .11498E-04
   4  Prefactor     1.0925        .19629        .60322E-01    .11528E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17007
  alpha      = 1.84979
  Normalizat = 0.86972
  Prefactor  = 1.09254
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.274     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1701        .40301        .19000E-05   -1.5679    
   2  alpha         1.8498        .14073        .39015E-03   -.26311    
   3  Normalizat    .86972        .19014        .23810E-03   -.97532    
   4  Prefactor     1.0925        .23343        .26677E-03   -.89705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50068e-12
Minuit parameter uncertainties:
  1  0.403011
  2  0.140806
  3  0.190287
  4  0.233649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452586': 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) = 5994.27443384
delta logL = 0.334584526539

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.170e+00  4.030e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.850e+00  1.408e-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:  1.093e+00  2.336e-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:  8.697e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 170.42
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.85 +/- 0.14
Photon Flux (Free Index): 2.61e-07 +/- 5.56e-08
Energy Flux (Free Index): 2.56e-04 +/- 7.88e-05

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/452586/cmap_HighResolution_693705601_693964801_4FGL_J1104.4+3812_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-07', energy_flux2='2.56e-04', photon_flux_error='4.36e-08', dlogl='3.35e-01', energy_flux='3.17e-04', photon_flux2='2.61e-07', job_status='DONE', time_completed='2022-12-29 01:00:50.149009', photon_index_error2='0.14', photon_index2='1.85', ts='169.92', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='7.88e-05', EG='0.90', time_epoch_completed='1672304450.15', return_code='0', job_id='452586', GAL2='1.09', EG2='0.87', return_code2='0', energy_flux_error='5.89e-05', photon_flux_error2='5.56e-08', ts2='170.42', photon_index='1.74' WHERE bin_id='1753' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:00:50 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 452586: <4FGL_J1104.4+3812_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 00:45:16 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:47:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:47:33 2022
Terminated at Thu Dec 29 01:00:51 2022
Results reported at Thu Dec 29 01:00:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1753 166.119 38.207 693705601 693964801 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 :                                   690.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            935 sec.

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

