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 151 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1104.4+0730_weekly_bin717
RA = 166.117, Dec = 7.51
tmin = 672624001, tmax = 673228801
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='371641', job_status='RUN', time_executed='2022-05-03 01:19:06.990960', time_epoch_executed='1651565946.99' WHERE source_name='4FGL J1104.4+0730' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371641

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371641/ft1_4FGL_J1104.4+0730_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371641/ft1_4FGL_J1104.4+0730_weekly_bin717.fits outfile=/scratch/kocevski/371641/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin717.fits ra=166.117 dec=7.51 rad=12.0 tmin=672624001.0 tmax=673228801.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.48
user 6.17
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.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/371641/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.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.57
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1305

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/371641/ltcube_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.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/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits
.....................!
real 33.20
user 32.55
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/371641/ltcube_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.fits outfile=/scratch/kocevski/371641/expmap_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.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/371641/ltcube_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.fits
.....................!
real 191.62
user 186.65
sys 4.32

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

Setting source of interest to:
4FGL J1104.4+0730 @ 166.117 7.51

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits scfile=/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits outfile=/scratch/kocevski/371641/cmap_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.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.117 yref=7.51 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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits scfile=/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits outfile=/scratch/kocevski/371641/cmap_HighResolution_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.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.117 yref=7.51 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.62
user 0.44
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371641/Model_4FGL_J1104.4+0730_weekly_bin717.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/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits.....................!
real 121.89
user 120.27
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits', '/scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits', expMap='/scratch/kocevski/371641/expmap_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.fits', expCube='/scratch/kocevski/371641/ltcube_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/371641/Model_4FGL_J1104.4+0730_weekly_bin717.xml', optimizer='MINUIT')

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

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  5.865e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/371641/ft1_filtered_4FGL_J1104.4+0730_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/371641/ft2_4FGL_J1104.4+0730_weekly_bin717.fits
Exposure map: /scratch/kocevski/371641/expmap_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.fits
Exposure cube: /scratch/kocevski/371641/ltcube_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/371641/Model_4FGL_J1104.4+0730_weekly_bin717.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) = 14804.8452145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.997       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3105       1.0000         .10000E-03   10000.    
     7 'norm      '    .65077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.976       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3286       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32945E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14240       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14804.82     FROM MIGRAD    STATUS=CONVERGED    318 CALLS     1243 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1093        .71613E-06** at limit **
   2  Prefactor     .10000E-03    8.0947       -.22959E-06** at limit **
   3  Prefactor     .10000E-03    2.5954       -.29425E-07** at limit **
   4  Prefactor     .29132        1.0360       -.53884E-06   -.14222E-02
   5  Prefactor     14.997        4.7389        .82952E-06    .28262E-04
   6  Prefactor     4.3105        4.9092       -.36672E-06   -.45994E-03
   7  norm          .65077        .30327        .36196E-07   -.62448E-04
   8  Prefactor     .10000E-03    4.8614        .12122E-06** at limit **
   9  norm          .10000E-03    .30901       -.25837E-06** at limit **
  10  Prefactor     25.970        14.048        .27739E-05    .72499E-04
  11  norm          3.3330        7.7986        .83991E-05   -.95853E-04
  12  Prefactor     .10024E-03    16.343       -.30972E-05** at limit **
  13  Prefactor     .14259        .58769       -.68959E-06   -.13968E-02
  14  Normalizat    1.0780        .12297       -.16942E-05    .92547E-03
  15  Prefactor     .96321        .10140        .64728E-07    .49372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.29132
  Prefactor  = 14.9973
  Prefactor  = 4.31047
  norm       = 0.650766
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.97
  norm       = 3.33299
  Prefactor  = 0.000100239
  Prefactor  = 0.14259
  Normalizat = 1.07799
  Prefactor  = 0.963207
 **********
 **   18 **HESSE 
 **********

 FCN=   14804.82     FROM HESSE     STATUS=OK           196 CALLS     1439 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .29132        1.9733        .21622E-02   -1.5600    
   5  Prefactor     14.997        4.7186        .10342E-03   -1.4933    
   6  Prefactor     4.3105        4.8243        .19403E-03   -1.5293    
   7  norm          .65077        .30451        .43560E-04   -1.5547    
   8  Prefactor     .10000E-03    4.9561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2052        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.970        13.974        .78599E-04   -1.4688    
  11  norm          3.3330        7.4012        .22186E-03   -1.5343    
  12  Prefactor     .10024E-03    17.377        .12468       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14259        1.5133        .18467E-02   -1.5632    
  14  Normalizat    1.0780        .14367        .25232E-03   -.90462    
  15  Prefactor     .96321        .12028        .23565E-03   -.93966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51989e-09
Minuit parameter uncertainties:
  1  8.6499e-06
  2  5.65233e-06
  3  2.73379e-06
  4  1.51622
  5  4.71871
  6  4.82471
  7  0.304512
  8  1.2887e-05
  9  1.81737e-05
  10  13.976
  11  7.40328
  12  0.00407954
  13  0.928756
  14  0.143725
  15  0.120318
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  2.597e+01  1.398e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.632e-01  1.203e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.078e+00  1.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.99
Ra Dec: 166.117 7.510
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 9.21e-06

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) = 14804.7177042
delta logL = 0.102333656518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14804.7100447
delta logL = 0.109993151913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.720       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1038       1.0000          .0000       10.000    
     3 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14804.71     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      256 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.726        15.786        .76091E-04    .86358E-04
   2  Index         2.1046        .50892        .10409E-01    .20390E-03
   3  Normalizat    1.0920        .13647        .25092E-03    .17824E-03
   4  Prefactor     .95689        .11943        .23634E-03   -.15826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7257
  Index      = 2.10462
  Normalizat = 1.09197
  Prefactor  = 0.956887
 **********
 **   18 **HESSE 
 **********

 FCN=   14804.71     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.726        15.780        .30437E-05   -1.4654    
   2  Index         2.1046        .50793        .20819E-02   -.61759    
   3  Normalizat    1.0920        .13650        .10037E-04   -.90010    
   4  Prefactor     .95689        .11951        .94536E-05   -.94181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02706e-10
Minuit parameter uncertainties:
  1  15.7827
  2  0.509252
  3  0.136541
  4  0.119539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371641': 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) = 14804.7100431
delta logL = 0.109994713617

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  2.773e+01  1.578e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.105e+00  5.093e-01  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.569e-01  1.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.092e+00  1.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.20
Ra Dec: 166.117 7.510
Photon Index (Free Index): 2.10 +/- 0.51
Photon Flux (Free Index): 3.57e-08 +/- 3.35e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/371641/cmap_HighResolution_672624001_673228801_4FGL_J1104.4+0730_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.94e-05', photon_flux_error='2.59e-08', dlogl='1.10e-01', energy_flux='1.71e-05', photon_flux2='3.57e-08', job_status='DONE', time_completed='2022-05-03 01:32:08.399388', photon_index_error2='0.51', photon_index2='2.10', ts='6.99', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.08', time_epoch_completed='1651566728.4', return_code='0', job_id='371641', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='9.21e-06', photon_flux_error2='3.35e-08', ts2='7.20', photon_index='2.34' WHERE bin_id='717' AND source_name='4FGL J1104.4+0730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:32:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 371641: <4FGL_J1104.4+0730_weekly_bin717> in cluster <slac> Done

Job <4FGL_J1104.4+0730_weekly_bin717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 01:15:36 2022
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:16:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:16:27 2022
Terminated at Tue May  3 01:32:09 2022
Results reported at Tue May  3 01:32:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_weekly_bin717 166.117 7.51 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+0730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             315.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            993 sec.

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

