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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1766
RA = 166.119, Dec = 38.207
tmin = 697075201, tmax = 697334401
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='846515', job_status='RUN', time_executed='2023-02-06 00:44:21.809719', time_epoch_executed='1675673061.81' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846515/ft1_4FGL_J1104.4+3812_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846515/ft2_4FGL_J1104.4+3812_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846515/ft1_4FGL_J1104.4+3812_daily_bin1766.fits outfile=/scratch/kocevski/846515/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1766.fits ra=166.119 dec=38.207 rad=12.0 tmin=697075201.0 tmax=697334401.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.73
user 3.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846515/ft2_4FGL_J1104.4+3812_daily_bin1766.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/846515/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/846515/ft1_filtered_4FGL_J1104.4+3812_daily_bin1766.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.33
sys 0.17

Number of photons that the gtmktime cut: 582

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846515/ft1_filtered_4FGL_J1104.4+3812_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/846515/ft2_4FGL_J1104.4+3812_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/846515/ltcube_697075201_697334401_4FGL_J1104.4+3812_daily_bin1766.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/846515/ft2_4FGL_J1104.4+3812_daily_bin1766.fits
.....................!
real 15.05
user 14.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846515/ft1_filtered_4FGL_J1104.4+3812_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/846515/ft2_4FGL_J1104.4+3812_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/846515/ltcube_697075201_697334401_4FGL_J1104.4+3812_daily_bin1766.fits outfile=/scratch/kocevski/846515/expmap_697075201_697334401_4FGL_J1104.4+3812_daily_bin1766.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/846515/ltcube_697075201_697334401_4FGL_J1104.4+3812_daily_bin1766.fits
.....................!
real 193.24
user 185.93
sys 5.42

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/846515/ft1_filtered_4FGL_J1104.4+3812_daily_bin1766.fits scfile=/scratch/kocevski/846515/ft2_4FGL_J1104.4+3812_daily_bin1766.fits outfile=/scratch/kocevski/846515/cmap_697075201_697334401_4FGL_J1104.4+3812_daily_bin1766.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846515/ft1_filtered_4FGL_J1104.4+3812_daily_bin1766.fits scfile=/scratch/kocevski/846515/ft2_4FGL_J1104.4+3812_daily_bin1766.fits outfile=/scratch/kocevski/846515/cmap_HighResolution_697075201_697334401_4FGL_J1104.4+3812_daily_bin1766.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34607E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .86243E-05   1.0000          .0000       .10000E+07
     3 'norm      '    24.168       1.0000          .0000       .10000E+07
     4 'Prefactor '    31.996       1.0000          .0000       .10000E+07
     5 'Prefactor '    26.805       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4787       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40661E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    59.677       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43611E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.3214       1.0000          .0000       .10000E+07
    11 'Prefactor '    .57142       1.0000          .0000       .10000E+07
    12 'Prefactor '    .52458E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20452E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10394E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .18800E-02   1.0000          .0000       .10000E+07
    16 'norm      '    25.754       1.0000          .0000       .10000E+07
    17 'Prefactor '    .49016E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .19811E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    44.925       1.0000          .0000       .10000E+07
    20 'norm      '    4.4813       1.0000          .0000       .10000E+07
    21 'Prefactor '    .73101E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .77992E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    26.195       1.0000          .0000       .10000E+07
    24 'norm      '    .23370E-07   1.0000          .0000       .10000E+07
    25 'norm      '    7.3010       1.0000          .0000       .10000E+07
    26 'Prefactor '    50.952       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.5000       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .39292       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=   6287.421     FROM MIGRAD    STATUS=CONVERGED    215 CALLS     2618 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    3.6223        .52674E-06** at limit **
   2  Prefactor     .10586E-03    55.597        .11664E-05** at limit **
   3  norm          24.089        13.528        .15036E-06    .44056E-01
   4  Prefactor     33.067        28.151       -.27650E-06   -.31940E-01
   5  Prefactor     26.290        7.6378        .10892E-07   -.36321E-01
   6  Prefactor     1.4869        3.6904       -.54754E-08   -.31998E-03
   7  Prefactor     .11713E-07    10.238       -.31143E-06** at limit **
   8  Prefactor     55.345        72.687        .21109E-06    .22262E-01
   9  Prefactor      .0000        3.1878       -.52197E-06** at limit **
  10  norm          3.3221        .48404        .70839E-08    .30730E-02
  11  Prefactor     .57172        1.3947        .22040E-06    .21688E-02
  12  Prefactor     .11102E-09    7.0847        .37429E-06** at limit **
  13  Prefactor     .30573E-05    11.229       -.23902E-06** at limit **
  14  Prefactor     .83311E-06    23.202        .63579E-06** at limit **
  15  norm          .44409E-09    8.1623       -.33494E-06** at limit **
  16  norm          25.836        2.6088       -.98152E-08   -.13513E-03
  17  Prefactor      .0000        1.0780        .78024E-07** at limit **
  18  Prefactor     .15421E-06    18.778        .85377E-06** at limit **
  19  Prefactor     43.953        19.831       -.63882E-07   -.18524    
  20  norm          4.4599        3.2027       -.34148E-07   -.92644E-03
  21  Prefactor     .20380E-05    13.353       -.36996E-06** at limit **
  22  Prefactor     .15303E-05    11.872        .16432E-06** at limit **
  23  Prefactor     26.743        35.872        .53140E-07   -.31055E-01
  24  norm           .0000        .59459       -.53452E-07** at limit **
  25  norm          7.2761        7.1438        .50085E-07   -.11878E-03
  26  Prefactor     52.365        33.552       -.34757E-06    .29794E-01
  27  Normalizat    1.5016        .20645       -.70860E-07    .60010E-04
  28  Prefactor     .39254        .21982        .29867E-06    .26050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 0.000105859
  norm       = 24.0887
  Prefactor  = 33.0672
  Prefactor  = 26.2901
  Prefactor  = 1.48688
  Prefactor  = 1.17129e-08
  Prefactor  = 55.3454
  Prefactor  = 0
  norm       = 3.32211
  Prefactor  = 0.571724
  Prefactor  = 1.11022e-10
  Prefactor  = 3.05733e-06
  Prefactor  = 8.33111e-07
  norm       = 4.44089e-10
  norm       = 25.8357
  Prefactor  = 0
  Prefactor  = 1.5421e-07
  Prefactor  = 43.9534
  norm       = 4.45988
  Prefactor  = 2.03798e-06
  Prefactor  = 1.53033e-06
  Prefactor  = 26.7425
  norm       = 0
  norm       = 7.27612
  Prefactor  = 52.3652
  Normalizat = 1.5016
  Prefactor  = 0.392542
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.421     FROM HESSE     STATUS=OK           585 CALLS     3203 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    3.6013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10586E-03    3.9014        .50162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.089        13.814        .20346E-03   -1.5610    
   4  Prefactor     33.067        46.753        .17681E-03   -1.5593    
   5  Prefactor     26.290        24.455        .19318E-03   -1.5605    
   6  Prefactor     1.4869        3.7340        .88250E-03   -1.5684    
   7  Prefactor     .11713E-07    10.246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.345        73.512        .12946E-03   -1.5559    
   9  Prefactor      .0000        3.1895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3221        .48344        .45852E-03   -1.5672    
  11  Prefactor     .57172        1.4283        .71828E-03   -1.5693    
  12  Prefactor     .11102E-09    7.0889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .30573E-05    12.995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .83311E-06    23.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44409E-09    8.1552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.836        41.404        .19709E-03   -1.5606    
  17  Prefactor      .0000        1.0789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15421E-06    18.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.953        26.000        .14921E-03   -1.5575    
  20  norm          4.4599        3.2746        .47540E-03   -1.5666    
  21  Prefactor     .20380E-05    14.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15303E-05    12.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.743        46.962        .19542E-03   -1.5605    
  24  norm           .0000        .59221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.2761        7.1773        .37097E-03   -1.5654    
  26  Prefactor     52.365        53.650        .14010E-03   -1.5563    
  27  Normalizat    1.5016        .19086        .48055E-01   -.77733    
  28  Prefactor     .39254        .20628        .98527E-01   -1.1719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42973e-06
Minuit parameter uncertainties:
  1  5.23842e-05
  2  0.0406446
  3  13.8141
  4  46.754
  5  24.4555
  6  3.734
  7  0.000692451
  8  73.5133
  9  1.15499e-05
  10  0.483437
  11  1.42827
  12  5.53301e-05
  13  0.0126065
  14  0.00890462
  15  0.000117142
  16  41.4048
  17  9.06211e-06
  18  0.00341576
  19  25.9997
  20  3.27459
  21  0.0108734
  22  0.00879221
  23  46.9622
  24  1.55055e-06
  25  7.17734
  26  53.6502
  27  0.19095
  28  0.206668
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.322e+00  4.834e-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.925e-01  2.067e-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.502e+00  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 285.97
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 3.45e-07 +/- 5.02e-08
Energy Flux (Fixed Index): 4.67e-04 +/- 6.79e-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) = 6287.39148996
delta logL = 0.0295007550521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6287.38999325
delta logL = 0.030997459904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3473       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7081       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38798       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=   6287.390     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3473        .54992        .46264E-03   -.26925E-01
   2  alpha         1.7081        .12004        .77832E-01    .24568E-04
   3  Normalizat    1.5091        .18493        .47978E-01    .84267E-05
   4  Prefactor     .38797        .20559        .99101E-01    .35197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.34728
  alpha      = 1.70812
  Normalizat = 1.50913
  Prefactor  = 0.387972
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.390     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3473        .49730        .20435E-05   -1.5671    
   2  alpha         1.7081        .10971        .34130E-03   -.32230    
   3  Normalizat    1.5091        .19880        .21208E-03   -.77522    
   4  Prefactor     .38797        .21956        .43943E-03   -1.1743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52457e-11
Minuit parameter uncertainties:
  1  0.4973
  2  0.109747
  3  0.198906
  4  0.220039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846515': 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) = 6287.38999325
delta logL = 0.0309974617294

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.347e+00  4.973e-01  0.000e+00  1.000e+06 ( 1.000e-11)
335        alpha:  1.708e+00  1.097e-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.880e-01  2.200e-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.509e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 284.66
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.71 +/- 0.11
Photon Flux (Free Index): 3.37e-07 +/- 5.97e-08
Energy Flux (Free Index): 4.94e-04 +/- 1.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/846515/cmap_HighResolution_697075201_697334401_4FGL_J1104.4+3812_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.45e-07', energy_flux2='4.94e-04', photon_flux_error='5.02e-08', dlogl='3.10e-02', energy_flux='4.67e-04', photon_flux2='3.37e-07', job_status='DONE', time_completed='2023-02-06 00:56:32.034209', photon_index_error2='0.11', photon_index2='1.71', ts='285.97', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', energy_flux_error2='1.33e-04', EG='1.50', time_epoch_completed='1675673792.03', return_code='0', job_id='846515', GAL2='0.39', EG2='1.51', return_code2='0', energy_flux_error='6.79e-05', photon_flux_error2='5.97e-08', ts2='284.66', photon_index='1.74' WHERE bin_id='1766' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 00:56:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 846515: <4FGL_J1104.4+3812_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 00:40:25 2023
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:43:00 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:43:00 2023
Terminated at Mon Feb  6 00:56:32 2023
Results reported at Mon Feb  6 00:56:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1766 166.119 38.207 697075201 697334401 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 :                                   728.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            967 sec.

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

