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


Performing analysis on: 4FGL_J1104.9+5748_weekly_bin760
RA = 166.24, Dec = 57.8079
tmin = 698630401, tmax = 699235201
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='20021', job_status='RUN', time_executed='2023-02-28 01:01:20.499582', time_epoch_executed='1677574880.5' WHERE source_name='4FGL J1104.9+5748' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20021

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20021/ft1_4FGL_J1104.9+5748_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20021/ft1_4FGL_J1104.9+5748_weekly_bin760.fits outfile=/scratch/kocevski/20021/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin760.fits ra=166.24 dec=57.8079 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.25
user 5.97
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.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/20021/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/20021/ft1_filtered_4FGL_J1104.9+5748_weekly_bin760.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.93
user 0.38
sys 0.14

Number of photons that the gtmktime cut: 412

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20021/ft1_filtered_4FGL_J1104.9+5748_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/20021/ltcube_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.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/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits
.....................!
real 28.73
user 28.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20021/ft1_filtered_4FGL_J1104.9+5748_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/20021/ltcube_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits outfile=/scratch/kocevski/20021/expmap_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.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/20021/ltcube_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits
.....................!
real 190.47
user 185.52
sys 4.55

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 233 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/20021/ft1_filtered_4FGL_J1104.9+5748_weekly_bin760.fits scfile=/scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits outfile=/scratch/kocevski/20021/cmap_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=166.24 yref=57.8079 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20021/ft1_filtered_4FGL_J1104.9+5748_weekly_bin760.fits scfile=/scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits outfile=/scratch/kocevski/20021/cmap_HighResolution_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=166.24 yref=57.8079 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20021/ft1_filtered_4FGL_J1104.9+5748_weekly_bin760.fits', '/scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits', expMap='/scratch/kocevski/20021/expmap_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits', expCube='/scratch/kocevski/20021/ltcube_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20021/Model_4FGL_J1104.9+5748_weekly_bin760.xml', optimizer='MINUIT')

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

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


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/20021/ft1_filtered_4FGL_J1104.9+5748_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/20021/ft2_4FGL_J1104.9+5748_weekly_bin760.fits
Exposure map: /scratch/kocevski/20021/expmap_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits
Exposure cube: /scratch/kocevski/20021/ltcube_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20021/Model_4FGL_J1104.9+5748_weekly_bin760.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) = 4735.29638176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0678       1.0000          .0000       .10000E+07
     2 'norm      '    .10069E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .30052       1.0000          .0000       .10000E+07
     4 'norm      '    .83267E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.3655       1.0000          .0000       .10000E+07
     6 'norm      '    2.5384       1.0000          .0000       .10000E+07
     7 'norm      '    .87929E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    1223.9       1.0000          .0000       .10000E+07
     9 'norm      '    15.268       1.0000          .0000       .10000E+07
    10 'Prefactor '    101.59       1.0000          .0000       .10000E+07
    11 'norm      '    10.155       1.0000          .0000       .10000E+07
    12 'norm      '    .40515E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14681E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .78070       1.0000          .0000       .10000E+07
    15 'norm      '    .11698E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    14.925       1.0000          .0000       .10000E+07
    17 'Prefactor '    42.847       1.0000          .0000       .10000E+07
    18 'Prefactor '    .60926       1.0000          .0000       .10000E+07
    19 'norm      '    .14682       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37049       1.0000          .0000       .10000E+07
    21 'Prefactor '    53.087       1.0000          .0000       .10000E+07
    22 'Prefactor '    .35564E-03   1.0000          .0000       .10000E+07
    23 'norm      '    7.8627       1.0000          .0000       .10000E+07
    24 'Prefactor '    9.3754       1.0000          .0000       .10000E+07
    25 'norm      '    3.4337       1.0000          .0000       .10000E+07
    26 'Prefactor '    .82042E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .33714E-02   1.0000          .0000       .10000E+07
    28 'norm      '    3.2707       1.0000          .0000       .10000E+07
    29 'Prefactor '    8.7192       1.0000          .0000       .10000E+07
    30 'Normalizat'    .49891       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4735.290     FROM MIGRAD    STATUS=CONVERGED    271 CALLS     3166 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1348        10.251        .10063E-06    .52314E-03
   2  norm           .0000        14.043       -.54985E-07** at limit **
   3  Prefactor      .0000        102.92        .94973E-07** at limit **
   4  norm           .0000        .80734       -.51777E-07** at limit **
   5  Prefactor     .60367E-03    1220.8       -.24147E-05** at limit **
   6  norm          2.5399        .67583       -.69250E-08   -.10416E-04
   7  norm          .21180E-05    291.79        .16768E-05** at limit **
   8  Prefactor     1224.0        20.702       -.65555E-08   -.52340    
   9  norm          14.943        41.308        .57734E-06   -.40354E-01
  10  Prefactor     97.724        47.054       -.21120E-06   -.19126    
  11  norm          10.506        10.647       -.21776E-06    .64342E-02
  12  norm          .11102E-09    25.566        .32845E-06** at limit **
  13  Prefactor     .16653E-09    28.381        .84888E-06** at limit **
  14  Prefactor     .58404E-03    256.94        .47805E-05** at limit **
  15  norm           .0000        3.3436       -.11742E-06** at limit **
  16  Prefactor     15.575        15.576        .15724E-06   -.21344E-01
  17  Prefactor     41.780        64.014        .11598E-05   -.87535E-01
  18  Prefactor     .29028E-05    240.53        .89574E-06** at limit **
  19  norm          .55511E-10    66.181        .80584E-06** at limit **
  20  Prefactor     .47773        136.73        .55450E-06    .12260E-02
  21  Prefactor     52.906        36.910       -.83142E-07    .26550E-01
  22  Prefactor      .0000        5.3849       -.35401E-06** at limit **
  23  norm          7.8670        13.100        .58838E-07   -.70569E-04
  24  Prefactor     9.3149        6.5397        .29663E-07    .62050E-04
  25  norm          3.4123        5.5295       -.77987E-07   -.15385E-03
  26  Prefactor      .0000        3.1879       -.24714E-07** at limit **
  27  Prefactor      .0000        6.6810        .20200E-06** at limit **
  28  norm          3.2650        2.5811        .10010E-08    .37326E-03
  29  Prefactor     8.6686        11.292        .56120E-07   -.60071E-03
  30  Normalizat    .50186        .21535        .50180E-05    .52888E-04
  31  Prefactor     1.0713        .23979        .31937E-07    .55804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13482
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.000603671
  norm       = 2.53991
  norm       = 2.11797e-06
  Prefactor  = 1223.98
  norm       = 14.9434
  Prefactor  = 97.7238
  norm       = 10.5059
  norm       = 1.11022e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 0.000584037
  norm       = 0
  Prefactor  = 15.5751
  Prefactor  = 41.7799
  Prefactor  = 2.90279e-06
  norm       = 5.55112e-11
  Prefactor  = 0.477728
  Prefactor  = 52.9056
  Prefactor  = 0
  norm       = 7.86699
  Prefactor  = 9.31485
  norm       = 3.41229
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.26505
  Prefactor  = 8.66862
  Normalizat = 0.501856
  Prefactor  = 1.07133
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.290     FROM HESSE     STATUS=OK           682 CALLS     3848 TOTAL
                     EDM=   .17E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1348        10.389        .44641E-03   -1.5663    
   2  norm           .0000        14.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        103.35        .10206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .81063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .60367E-03    1368.6        .39759E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5399        .67551        .62342E-03   -1.5676    
   7  norm          .21180E-05    407.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1224.0        922.99        .28602E-04   -1.5008    
   9  norm          14.943        41.843        .25607E-03   -1.5631    
  10  Prefactor     97.724        140.25        .99221E-04   -1.5510    
  11  norm          10.506        14.102        .31419E-03   -1.5643    
  12  norm          .11102E-09    25.600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    28.436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .58404E-03    534.74        .54385E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        3.3463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.575        785.26        .25899E-03   -1.5629    
  17  Prefactor     41.780        71.847        .15278E-03   -1.5579    
  18  Prefactor     .29028E-05    241.36        .68403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    66.302        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .47773        18.246        .92988E-02   -1.5694    
  21  Prefactor     52.906        37.157        .13726E-03   -1.5562    
  22  Prefactor      .0000        5.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8670        13.132        .35735E-03   -1.5652    
  24  Prefactor     9.3149        6.5461        .32706E-03   -1.5647    
  25  norm          3.4123        5.6113        .54560E-03   -1.5671    
  26  Prefactor      .0000        3.1869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        6.6933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.2650        2.5966        .55968E-03   -1.5672    
  29  Prefactor     8.6686        11.337        .33922E-03   -1.5649    
  30  Normalizat    .50186        .19738        .65811E-01   -1.1233    
  31  Prefactor     1.0713        .21171        .38720E-01   -.90388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000169846
Minuit parameter uncertainties:
  1  10.3886
  2  2.27116e-05
  3  8.36908e-05
  4  8.13299e-07
  5  1.81833
  6  0.675505
  7  0.0587803
  8  923.101
  9  41.8439
  10  140.251
  11  14.1017
  12  0.000103153
  13  0.000145056
  14  1.11779
  15  3.02569e-06
  16  221.214
  17  71.8481
  18  0.05294
  19  0.000131482
  20  5.90485
  21  37.157
  22  1.32181e-05
  23  13.1323
  24  6.54613
  25  5.61129
  26  2.07454e-07
  27  1.43362e-05
  28  2.59661
  29  11.3365
  30  0.19766
  31  0.211877
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
739   Normalization:  5.019e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 3.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20021/likelihoodResults_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4734.62450313
delta logL = 0.665528189977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4734.62232229
delta logL = 0.667709027237

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4734.622     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      383 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0335        269.14        .70909E-04   -.12485E-02
   2  Index         4.3267        7.1599        .50705E-02   -.20892E-04
   3  Normalizat    .44162        .19459        .30896E-03   -.53355E-04
   4  Prefactor     1.1193        .22301        .23514E-03   -.81768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03352
  Index      = 4.32673
  Normalizat = 0.441622
  Prefactor  = 1.11929
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.622     FROM HESSE     STATUS=OK            25 CALLS      408 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0335        22.114        .28364E-05   -1.5651    
   2  Index         4.3267        1.5999        .20282E-03   -.13506    
   3  Normalizat    .44162        .20809        .12358E-04   -1.1520    
   4  Prefactor     1.1193        .23904        .47027E-04   -.88852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03681e-11
Minuit parameter uncertainties:
  1  22.1139
  2  1.62908
  3  0.208456
  4  0.239272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20021': 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) = 4734.62231517
delta logL = 0.667716146507

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
739   Normalization:  4.416e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 166.240 57.808
Photon Index (Free Index): 4.33 +/- 1.63
Photon Flux (Free Index): 2.26e-07 +/- 2.07e-07
Energy Flux (Free Index): 3.22e-05 +/- 2.79e-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/20021/cmap_HighResolution_698630401_699235201_4FGL_J1104.9+5748_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-02', comment='SUCCESS', energy_flux2='3.22e-05', dlogl='6.68e-01', photon_flux2='2.26e-07', job_status='DONE', time_completed='2023-02-28 01:14:45.090307', photon_index_error2='1.63', photon_index2='4.33', ts='0.59', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='3.06e-07', energy_flux_error2='2.79e-05', EG='0.50', time_epoch_completed='1677575685.09', return_code='0', job_id='20021', GAL2='1.12', EG2='0.44', return_code2='0', photon_flux_error2='2.07e-07', ts2='2.10', photon_index='2.60' WHERE bin_id='760' AND source_name='4FGL J1104.9+5748' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:14:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 20021: <4FGL_J1104.9+5748_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1104.9+5748_weekly_bin760> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 28 01:00:30 2023
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:00:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:00:31 2023
Terminated at Tue Feb 28 01:14:45 2023
Results reported at Tue Feb 28 01:14:45 2023

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   803.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             297.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

