/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 174 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 = 7648
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+0730_daily_bin1258
RA = 166.117, Dec = 7.51
tmin = 565401601, tmax = 565660801
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='484379', job_status='RUN', time_executed='2021-09-03 06:25:03.483781', time_epoch_executed='1630675503.48' WHERE source_name='4FGL J1104.4+0730' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484379

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484379/ft1_4FGL_J1104.4+0730_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484379/ft1_4FGL_J1104.4+0730_daily_bin1258.fits outfile=/scratch/kocevski/484379/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1258.fits ra=166.117 dec=7.51 rad=12.0 tmin=565401601.0 tmax=565660801.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.61
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484379/ft1_filtered_4FGL_J1104.4+0730_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/484379/ltcube_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.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/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits
.....................!
real 12.24
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484379/ft1_filtered_4FGL_J1104.4+0730_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/484379/ltcube_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.fits outfile=/scratch/kocevski/484379/expmap_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.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/484379/ltcube_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.fits
.....................!
real 191.53
user 186.07
sys 5.11

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/484379/ft1_filtered_4FGL_J1104.4+0730_daily_bin1258.fits scfile=/scratch/kocevski/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits outfile=/scratch/kocevski/484379/cmap_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.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 1.18
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484379/ft1_filtered_4FGL_J1104.4+0730_daily_bin1258.fits scfile=/scratch/kocevski/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits outfile=/scratch/kocevski/484379/cmap_HighResolution_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.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 1.09
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484379/ft1_filtered_4FGL_J1104.4+0730_daily_bin1258.fits', '/scratch/kocevski/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits', expMap='/scratch/kocevski/484379/expmap_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.fits', expCube='/scratch/kocevski/484379/ltcube_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484379/Model_4FGL_J1104.4+0730_daily_bin1258.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/484379/ft1_filtered_4FGL_J1104.4+0730_daily_bin1258.fits
Spacecraft file(s): /scratch/kocevski/484379/ft2_4FGL_J1104.4+0730_daily_bin1258.fits
Exposure map: /scratch/kocevski/484379/expmap_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.fits
Exposure cube: /scratch/kocevski/484379/ltcube_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484379/Model_4FGL_J1104.4+0730_daily_bin1258.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) = 6292.3082317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6244       1.0000         .10000E-03   10000.    
     9 'norm      '    .25305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.703       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.865       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7306       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1878       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .97580       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.

 FCN=   6292.306     FROM MIGRAD    STATUS=CONVERGED    279 CALLS     1319 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.537        .90712E-02** at limit **
   2  Prefactor     24.493        30.811        .20201E-02    .23626E-04
   3  Prefactor     .10000E-03    19.067        .90712E-02** at limit **
   4  Prefactor     3.4128        2.7277        .54745E-02    .19448E-03
   5  Prefactor     .10000E-03    3.4390        .90712E-02** at limit **
   6  Prefactor     .10000E-03    2.6825        .90712E-02** at limit **
   7  norm          1.0284        .70045        .10031E-01    .51829E-03
   8  Prefactor     3.6232        8.2541        .53054E-02   -.39980E-03
   9  norm          .25323        .88287        .10217E-01    .22051E-02
  10  Prefactor     20.704        18.148        .22007E-02    .10660E-02
  11  norm          2.8141        9.1050        .60628E-02    .46306E-03
  12  Prefactor     48.866        40.003        .14341E-02    .70758E-04
  13  Prefactor     1.7306        1.7821        .79780E-02    .45049E-04
  14  Normalizat    1.1878        .18461        .57093E-01    .85086E-05
  15  Prefactor     .97581        .16089        .45964E-01    .11247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.4926
  Prefactor  = 0.0001
  Prefactor  = 3.41282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02843
  Prefactor  = 3.62318
  norm       = 0.253234
  Prefactor  = 20.7039
  norm       = 2.81407
  Prefactor  = 48.8659
  Prefactor  = 1.73059
  Normalizat = 1.18777
  Prefactor  = 0.975813
 **********
 **   18 **HESSE 
 **********

 FCN=   6292.306     FROM HESSE     STATUS=OK           182 CALLS     1501 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.493        30.499        .80803E-04   -1.4718    
   3  Prefactor     .10000E-03    19.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4128        2.7261        .11261E-03   -1.5338    
   5  Prefactor     .10000E-03    3.4727        .14358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6941        .12684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0284        .70758        .44845E-04   -1.5505    
   8  Prefactor     3.6232        8.4407        .21222E-03   -1.5327    
   9  norm          .25323        .85263        .13254E-03   -1.5607    
  10  Prefactor     20.704        18.157        .88029E-04   -1.4798    
  11  norm          2.8141        9.0737        .24251E-03   -1.5372    
  12  Prefactor     48.866        40.020        .57365E-04   -1.4309    
  13  Prefactor     1.7306        1.7825        .10397E-03   -1.5445    
  14  Normalizat    1.1878        .21402        .25248E-03   -.86982    
  15  Prefactor     .97581        .18684        .24612E-03   -.93540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88358e-09
Minuit parameter uncertainties:
  1  1.14141e-05
  2  30.5181
  3  1.7939e-05
  4  2.72618
  5  1.57116e-07
  6  1.33489e-07
  7  0.707584
  8  8.44348
  9  0.852671
  10  18.1619
  11  9.07812
  12  40.0424
  13  1.78255
  14  0.214179
  15  0.186967
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  2.070e+01  1.816e+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.758e-01  1.870e-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.188e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 166.117 7.510
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.20e-05

TS (Fixed Index): 2.96
Ra Dec: 166.117 7.510
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484379/likelihoodResults_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.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) = 6291.97619876
delta logL = 0.330046808209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6291.95386773
delta logL = 0.352377835913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.852       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7505       1.0000          .0000       10.000    
     3 'Normalizat'    1.2084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96580       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=   6291.954     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      239 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.863        21.995        .40177E-03   -.24817E-03
   2  Index         1.7506        .62398        .10397E-01   -.74129E-04
   3  Normalizat    1.2084        .20821        .25059E-03   -.14671E-02
   4  Prefactor     .96578        .18646        .24717E-03   -.12905E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8627
  Index      = 1.75058
  Normalizat = 1.2084
  Prefactor  = 0.96578
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.954     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.863        22.207        .80353E-04   -1.4710    
   2  Index         1.7506        .63002        .41588E-03   -.70743    
   3  Normalizat    1.2084        .20835        .50117E-04   -.86344    
   4  Prefactor     .96578        .18659        .49433E-04   -.93879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36212e-09
Minuit parameter uncertainties:
  1  22.214
  2  0.632938
  3  0.208494
  4  0.186717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484379': 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) = 6291.95386761
delta logL = 0.352377955733

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  2.486e+01  2.221e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.751e+00  6.329e-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.658e-01  1.867e-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.208e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 166.117 7.510
Photon Index (Free Index): 1.75 +/- 0.63
Photon Flux (Free Index): 2.04e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.83e-05 +/- 3.83e-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/484379/cmap_HighResolution_565401601_565660801_4FGL_J1104.4+0730_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='2.83e-05', photon_flux_error='3.37e-08', dlogl='3.52e-01', energy_flux='1.36e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-03 06:34:17.127624', photon_index_error2='0.63', photon_index2='1.75', ts='2.96', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='3.83e-05', EG='1.19', time_epoch_completed='1630676057.13', return_code='0', job_id='484379', GAL2='0.97', EG2='1.21', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='2.56e-08', ts2='3.67', photon_index='2.34' WHERE bin_id='1258' AND source_name='4FGL J1104.4+0730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:34:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 484379: <4FGL_J1104.4+0730_daily_bin1258> in cluster <slac> Done

Job <4FGL_J1104.4+0730_daily_bin1258> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 06:21:08 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:22:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:22:00 2021
Terminated at Fri Sep  3 06:34:18 2021
Results reported at Fri Sep  3 06:34:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_daily_bin1258 166.117 7.51 565401601 565660801 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 :                                   538.27 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             279.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            790 sec.

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

