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


Performing analysis on: 4FGL_J1104.4+0730_daily_bin1601
RA = 166.117, Dec = 7.51
tmin = 654307201, tmax = 654566401
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='541335', job_status='RUN', time_executed='2021-09-29 00:13:58.271528', time_epoch_executed='1632899638.27' WHERE source_name='4FGL J1104.4+0730' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541335

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541335/ft1_4FGL_J1104.4+0730_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541335/ft2_4FGL_J1104.4+0730_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541335/ft1_4FGL_J1104.4+0730_daily_bin1601.fits outfile=/scratch/kocevski/541335/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1601.fits ra=166.117 dec=7.51 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.23
user 3.97
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541335/ft2_4FGL_J1104.4+0730_daily_bin1601.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/541335/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/541335/ft1_filtered_4FGL_J1104.4+0730_daily_bin1601.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541335/ft1_filtered_4FGL_J1104.4+0730_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/541335/ft2_4FGL_J1104.4+0730_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/541335/ltcube_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.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/541335/ft2_4FGL_J1104.4+0730_daily_bin1601.fits
.....................!
real 12.00
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541335/ft1_filtered_4FGL_J1104.4+0730_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/541335/ft2_4FGL_J1104.4+0730_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/541335/ltcube_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.fits outfile=/scratch/kocevski/541335/expmap_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.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/541335/ltcube_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.fits
.....................!
real 191.88
user 186.52
sys 4.87

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/541335/ft1_filtered_4FGL_J1104.4+0730_daily_bin1601.fits scfile=/scratch/kocevski/541335/ft2_4FGL_J1104.4+0730_daily_bin1601.fits outfile=/scratch/kocevski/541335/cmap_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541335/ft1_filtered_4FGL_J1104.4+0730_daily_bin1601.fits scfile=/scratch/kocevski/541335/ft2_4FGL_J1104.4+0730_daily_bin1601.fits outfile=/scratch/kocevski/541335/cmap_HighResolution_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11255E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.511       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .64680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.689       1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3824       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .60321       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.4897       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=   5931.182     FROM MIGRAD    STATUS=CONVERGED    264 CALLS     1302 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.850        73.271       -.17161E-03    .45820E-04
   2  Prefactor     .10001E-03    37.840       -.49825E-04** at limit **
   3  Prefactor     20.147        18.188        .91788E-05    .18797E-03
   4  Prefactor     .10000E-03    1.6071        .11989E-06** at limit **
   5  Prefactor     10.512        8.4212       -.15205E-05   -.42452E-04
   6  Prefactor     .10000E-03    7.0123       -.12523E-05** at limit **
   7  norm          .64670        .57353       -.38310E-06   -.21512E-02
   8  Prefactor     .10000E-03    6.9090        .25655E-05** at limit **
   9  norm          2.2770        1.4304       -.42248E-06   -.24278E-03
  10  Prefactor     34.689        24.921       -.49635E-06    .21854E-04
  11  norm          .10000E-03    7.1371       -.24711E-05** at limit **
  12  Prefactor     .10000E-03    34.252        .45824E-04** at limit **
  13  Prefactor     6.3822        3.5749       -.18879E-05   -.25281E-03
  14  Normalizat    .60305        .21213        .15637E-04   -.10560E-03
  15  Prefactor     1.4899        .18606       -.36221E-06    .16144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8503
  Prefactor  = 0.000100011
  Prefactor  = 20.1467
  Prefactor  = 0.0001
  Prefactor  = 10.512
  Prefactor  = 0.0001
  norm       = 0.646704
  Prefactor  = 0.0001
  norm       = 2.27701
  Prefactor  = 34.6891
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.3822
  Normalizat = 0.60305
  Prefactor  = 1.48991
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.182     FROM HESSE     STATUS=OK           182 CALLS     1484 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.850        73.365        .32962E-03   -1.4493    
   2  Prefactor     .10001E-03    37.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.147        18.196        .89241E-04   -1.4810    
   4  Prefactor     .10000E-03    1.6544        .19058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.512        8.4310        .12358E-03   -1.5059    
   6  Prefactor     .10000E-03    7.0966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .64670        .55244        .51949E-03   -1.5547    
   8  Prefactor     .10000E-03    6.9476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2770        1.4248        .69446E-04   -1.5406    
  10  Prefactor     34.689        24.918        .68040E-04   -1.4529    
  11  norm          .10000E-03    7.1820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3822        3.5725        .10330E-03   -1.5203    
  14  Normalizat    .60305        .24129        .35646E-03   -1.0785    
  15  Prefactor     1.4899        .21453        .21639E-03   -.77823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09824e-09
Minuit parameter uncertainties:
  1  73.5451
  2  0.00126878
  3  18.2011
  4  1.74219e-05
  5  8.43196
  6  2.88032e-05
  7  0.552443
  8  3.93385e-05
  9  1.42477
  10  24.9251
  11  9.30242e-05
  12  0.0004144
  13  3.57264
  14  0.241715
  15  0.214659
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  3.469e+01  2.493e+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:  1.490e+00  2.147e-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:  6.030e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 166.117 7.510
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.64e-05

TS (Fixed Index): 2.87
Ra Dec: 166.117 7.510
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541335/likelihoodResults_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.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) = 5931.17689691
delta logL = 0.00481867666804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5931.17294759
delta logL = 0.0087680008437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.382       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2546       1.0000          .0000       10.000    
     3 'Normalizat'    .60938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4857       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=   5931.173     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.382        715.09        .16388E-02   -.75505E-04
   2  Index         2.2542        6.0179        .14084        .69876E-04
   3  Normalizat    .60985        .12997        .80070E-01   -.20513E-04
   4  Prefactor     1.4853        .85858E-01    .49013E-01   -.63429E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3816
  Index      = 2.25423
  Normalizat = 0.609851
  Prefactor  = 1.48528
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.173     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.382        33.963        .65552E-04   -1.4484    
   2  Index         2.2542        .67520        .76010E-02   -.58135    
   3  Normalizat    .60985        .23778        .35459E-03   -1.0757    
   4  Prefactor     1.4853        .21516        .21666E-03   -.77953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94492e-09
Minuit parameter uncertainties:
  1  33.9802
  2  0.678175
  3  0.23818
  4  0.21529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541335': 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) = 5931.17294531
delta logL = 0.00877027859042

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  3.738e+01  3.398e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.254e+00  6.782e-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:  1.485e+00  2.153e-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:  6.099e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 166.117 7.510
Photon Index (Free Index): 2.25 +/- 0.68
Photon Flux (Free Index): 6.03e-08 +/- 5.29e-08
Energy Flux (Free Index): 2.46e-05 +/- 2.38e-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/541335/cmap_HighResolution_654307201_654566401_4FGL_J1104.4+0730_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='2.46e-05', photon_flux_error='4.62e-08', dlogl='8.77e-03', energy_flux='2.29e-05', photon_flux2='6.03e-08', job_status='DONE', time_completed='2021-09-29 00:22:34.882564', photon_index_error2='0.68', photon_index2='2.25', ts='2.87', fit_tolerance='1e-08', GAL='1.49', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='2.38e-05', EG='0.60', time_epoch_completed='1632900154.88', return_code='0', job_id='541335', GAL2='1.49', EG2='0.61', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.29e-08', ts2='2.88', photon_index='2.34' WHERE bin_id='1601' AND source_name='4FGL J1104.4+0730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:22:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 541335: <4FGL_J1104.4+0730_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1104.4+0730_daily_bin1601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 00:11:09 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:11:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:11:12 2021
Terminated at Wed Sep 29 00:22:35 2021
Results reported at Wed Sep 29 00:22:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_daily_bin1601 166.117 7.51 654307201 654566401 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 :                                   518.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

