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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1715
RA = 166.119, Dec = 38.207
tmin = 683856001, tmax = 684115201
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='100343', job_status='RUN', time_executed='2022-09-16 15:49:08.205748', time_epoch_executed='1663368548.21' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100343/ft1_4FGL_J1104.4+3812_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100343/ft2_4FGL_J1104.4+3812_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100343/ft1_4FGL_J1104.4+3812_daily_bin1715.fits outfile=/scratch/kocevski/100343/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1715.fits ra=166.119 dec=38.207 rad=12.0 tmin=683856001.0 tmax=684115201.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.54
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100343/ft2_4FGL_J1104.4+3812_daily_bin1715.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/100343/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/100343/ft1_filtered_4FGL_J1104.4+3812_daily_bin1715.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 526

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100343/ft1_filtered_4FGL_J1104.4+3812_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/100343/ft2_4FGL_J1104.4+3812_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/100343/ltcube_683856001_684115201_4FGL_J1104.4+3812_daily_bin1715.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/100343/ft2_4FGL_J1104.4+3812_daily_bin1715.fits
.....................!
real 14.09
user 13.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100343/ft1_filtered_4FGL_J1104.4+3812_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/100343/ft2_4FGL_J1104.4+3812_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/100343/ltcube_683856001_684115201_4FGL_J1104.4+3812_daily_bin1715.fits outfile=/scratch/kocevski/100343/expmap_683856001_684115201_4FGL_J1104.4+3812_daily_bin1715.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/100343/ltcube_683856001_684115201_4FGL_J1104.4+3812_daily_bin1715.fits
.....................!
real 194.03
user 187.85
sys 5.26

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/100343/ft1_filtered_4FGL_J1104.4+3812_daily_bin1715.fits scfile=/scratch/kocevski/100343/ft2_4FGL_J1104.4+3812_daily_bin1715.fits outfile=/scratch/kocevski/100343/cmap_683856001_684115201_4FGL_J1104.4+3812_daily_bin1715.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100343/ft1_filtered_4FGL_J1104.4+3812_daily_bin1715.fits scfile=/scratch/kocevski/100343/ft2_4FGL_J1104.4+3812_daily_bin1715.fits outfile=/scratch/kocevski/100343/cmap_HighResolution_683856001_684115201_4FGL_J1104.4+3812_daily_bin1715.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27869E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.9925       1.0000          .0000       .10000E+07
     3 'norm      '    12.412       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28488E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19093E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12315E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    23.760       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.9178       1.0000          .0000       .10000E+07
     9 'Prefactor '    12.929       1.0000          .0000       .10000E+07
    10 'norm      '    1.2703       1.0000          .0000       .10000E+07
    11 'Prefactor '    .94229E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .42275E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20173E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .57920E-02   1.0000          .0000       .10000E+07
    15 'norm      '    43.137       1.0000          .0000       .10000E+07
    16 'norm      '    .13608E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.9329       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13056E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    14.801       1.0000          .0000       .10000E+07
    20 'norm      '    .57662E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .11928E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.068       1.0000          .0000       .10000E+07
    23 'Prefactor '    4.1243       1.0000          .0000       .10000E+07
    24 'norm      '    1.4545       1.0000          .0000       .10000E+07
    25 'norm      '    .26580E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .42098E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1590       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .58826       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=   5655.439     FROM MIGRAD    STATUS=CONVERGED    239 CALLS     2600 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.6332        .34227E-08** at limit **
   2  Prefactor     3.9111        4.9786        .29372E-06   -.26027E-02
   3  norm          12.406        12.310        .10762E-06   -.20870E-02
   4  Prefactor     .66613E-09    35.791        .12381E-05** at limit **
   5  Prefactor     .63283E-08    60.315        .15051E-05** at limit **
   6  Prefactor     .11102E-09    3.7599        .36224E-06** at limit **
   7  Prefactor     23.737        4.3495       -.19437E-06   -.82444E-01
   8  Prefactor     .31590E-03    253.05       -.39414E-05** at limit **
   9  Prefactor     12.922        10.375        .69601E-07   -.29737E-03
  10  norm          1.2705        .31087       -.41502E-07   -.67238E-01
  11  Prefactor      .0000        1.1622        .10802E-06** at limit **
  12  Prefactor     .80533E-04    730.88       -.97503E-05** at limit **
  13  Prefactor     .55511E-09    8.7434        .81850E-06** at limit **
  14  Prefactor     .85487E-08    109.16        .14787E-05** at limit **
  15  norm          43.081        18.401       -.74204E-06   -.41443E-02
  16  norm          .57732E-07    22.547        .93836E-06** at limit **
  17  Prefactor     2.9290        2.4696       -.13882E-06   -.31301E-02
  18  Prefactor     .37551E-04    141.52       -.67492E-06** at limit **
  19  Prefactor     14.790        13.170        .29003E-07   -.10985E-02
  20  norm          .55511E-10    1.5879        .25390E-06** at limit **
  21  Prefactor      .0000        5.5511        .70755E-07** at limit **
  22  Prefactor     13.028        5.7713        .39730E-07   -.16263E-02
  23  Prefactor     4.0845        3.4116       -.21313E-06   -.17409E-01
  24  norm          1.4537        .88906       -.32854E-07    .44885E-02
  25  norm          .55511E-10    4.4778        .23726E-06** at limit **
  26  Prefactor     .50182E-07    22.823       -.79253E-06** at limit **
  27  Normalizat    1.1607        .19864       -.64192E-05   -.27240E-03
  28  Prefactor     .58753        .22391        .20344E-05   -.13982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.91114
  norm       = 12.4063
  Prefactor  = 6.66134e-10
  Prefactor  = 6.32827e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 23.7367
  Prefactor  = 0.000315901
  Prefactor  = 12.922
  norm       = 1.27047
  Prefactor  = 0
  Prefactor  = 8.05334e-05
  Prefactor  = 5.55112e-10
  Prefactor  = 8.54872e-09
  norm       = 43.081
  norm       = 5.77316e-08
  Prefactor  = 2.92902
  Prefactor  = 3.75506e-05
  Prefactor  = 14.7897
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 13.0276
  Prefactor  = 4.08447
  norm       = 1.4537
  norm       = 5.55112e-11
  Prefactor  = 5.01821e-08
  Normalizat = 1.16066
  Prefactor  = 0.587532
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.439     FROM HESSE     STATUS=OK           579 CALLS     3179 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.5758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9111        5.0170        .50451E-03   -1.5668    
   3  norm          12.406        12.276        .28408E-03   -1.5638    
   4  Prefactor     .66613E-09    36.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .63283E-08    61.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    3.7749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.737        24.341        .20520E-03   -1.5611    
   8  Prefactor     .31590E-03    700.29        .75014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.922        10.378        .27832E-03   -1.5636    
  10  norm          1.2705        .31970        .45395E-03   -1.5685    
  11  Prefactor      .0000        1.1592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80533E-04    25.723        .65736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-09    8.8667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .85487E-08    109.45        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.081        19.292        .15227E-03   -1.5577    
  16  norm          .57732E-07    22.799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9290        2.4921        .59287E-03   -1.5674    
  18  Prefactor     .37551E-04    203.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.790        13.176        .26008E-03   -1.5631    
  20  norm          .55511E-10    1.5925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        5.5582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.028        5.7762        .27684E-03   -1.5636    
  23  Prefactor     4.0845        82.225        .49612E-03   -1.5668    
  24  norm          1.4537        .96645        .89250E-03   -1.5684    
  25  norm          .55511E-10    4.4853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .50182E-07    23.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1607        .17461        .35986E-01   -.87827    
  28  Prefactor     .58753        .19690        .75028E-01   -1.0811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75989e-07
Minuit parameter uncertainties:
  1  2.34264e-06
  2  5.01703
  3  12.276
  4  0.000308398
  5  0.0012414
  6  3.91384e-05
  7  24.3409
  8  0.940795
  9  10.3779
  10  0.319698
  11  6.00323e-06
  12  0.0910296
  13  0.00013799
  14  0.00193515
  15  19.2921
  16  0.00229503
  17  2.4921
  18  0.174657
  19  13.1758
  20  1.70549e-05
  21  1.13959e-05
  22  5.77621
  23  36.6528
  24  0.966447
  25  2.68886e-05
  26  0.00215144
  27  0.174699
  28  0.197133
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.270e+00  3.197e-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:  5.875e-01  1.971e-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  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 83.84
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 3.32e-08
Energy Flux (Fixed Index): 1.78e-04 +/- 4.49e-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) = 5655.2421856
delta logL = 0.196316138091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5655.24017741
delta logL = 0.198324335402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2200       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8528       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59506       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=   5655.240     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2200        .57535        .43584E-03   -.11591E-02
   2  alpha         1.8528        .33909        .11922        .33457E-04
   3  Normalizat    1.1473        .16726        .36334E-01    .25805E-05
   4  Prefactor     .59511        .19602        .74533E-01    .27155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22002
  alpha      = 1.85282
  Normalizat = 1.14732
  Prefactor  = 0.595114
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.240     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2200        .31361        .19235E-05   -1.5686    
   2  alpha         1.8528        .18948        .51411E-02   -.26185    
   3  Normalizat    1.1473        .18883        .20724E-03   -.88247    
   4  Prefactor     .59511        .22188        .32999E-03   -1.0779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10794e-10
Minuit parameter uncertainties:
  1  0.313614
  2  0.189675
  3  0.188942
  4  0.222206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100343': 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) = 5655.24017737
delta logL = 0.198324372273

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.220e+00  3.136e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.853e+00  1.897e-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:  5.951e-01  2.222e-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.147e+00  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.96
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.85 +/- 0.19
Photon Flux (Free Index): 1.47e-07 +/- 4.28e-08
Energy Flux (Free Index): 1.43e-04 +/- 6.00e-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/100343/cmap_HighResolution_683856001_684115201_4FGL_J1104.4+3812_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='1.43e-04', photon_flux_error='3.32e-08', dlogl='1.98e-01', energy_flux='1.78e-04', photon_flux2='1.47e-07', job_status='DONE', time_completed='2022-09-16 16:00:20.407966', photon_index_error2='0.19', photon_index2='1.85', ts='83.84', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='6.00e-05', EG='1.16', time_epoch_completed='1663369220.41', return_code='0', job_id='100343', GAL2='0.60', EG2='1.15', return_code2='0', energy_flux_error='4.49e-05', photon_flux_error2='4.28e-08', ts2='83.96', photon_index='1.74' WHERE bin_id='1715' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:00:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 100343: <4FGL_J1104.4+3812_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1715> 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) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:46:26 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:26 2022
Terminated at Fri Sep 16 16:00:21 2022
Results reported at Fri Sep 16 16:00:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1715 166.119 38.207 683856001 684115201 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 :                                   672.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            896 sec.

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

