/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 = 7396
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin870
RA = 166.119, Dec = 38.207
tmin = 464832001, tmax = 465091201
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='495450', job_status='RUN', time_executed='2021-09-03 06:52:59.601984', time_epoch_executed='1630677179.6' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495450/ft1_4FGL_J1104.4+3812_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495450/ft2_4FGL_J1104.4+3812_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495450/ft1_4FGL_J1104.4+3812_daily_bin870.fits outfile=/scratch/kocevski/495450/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin870.fits ra=166.119 dec=38.207 rad=12.0 tmin=464832001.0 tmax=465091201.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.38
user 3.18
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/495450/ft2_4FGL_J1104.4+3812_daily_bin870.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/495450/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin870.fits evtable="EVENTS" outfile="/scratch/kocevski/495450/ft1_filtered_4FGL_J1104.4+3812_daily_bin870.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.55
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495450/ft1_filtered_4FGL_J1104.4+3812_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/495450/ft2_4FGL_J1104.4+3812_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/495450/ltcube_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.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/495450/ft2_4FGL_J1104.4+3812_daily_bin870.fits
.....................!
real 12.24
user 11.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495450/ft1_filtered_4FGL_J1104.4+3812_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/495450/ft2_4FGL_J1104.4+3812_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/495450/ltcube_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.fits outfile=/scratch/kocevski/495450/expmap_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.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/495450/ltcube_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.fits
.....................!
real 192.12
user 186.25
sys 5.39

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

Setting source of interest to:
4FGL J1104.4+3812 @ 166.119 38.207

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/495450/ft1_filtered_4FGL_J1104.4+3812_daily_bin870.fits', '/scratch/kocevski/495450/ft2_4FGL_J1104.4+3812_daily_bin870.fits', expMap='/scratch/kocevski/495450/expmap_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.fits', expCube='/scratch/kocevski/495450/ltcube_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/495450/Model_4FGL_J1104.4+3812_daily_bin870.xml', optimizer='MINUIT')

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

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.879e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/495450/ft1_filtered_4FGL_J1104.4+3812_daily_bin870.fits
Spacecraft file(s): /scratch/kocevski/495450/ft2_4FGL_J1104.4+3812_daily_bin870.fits
Exposure map: /scratch/kocevski/495450/expmap_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.fits
Exposure cube: /scratch/kocevski/495450/ltcube_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/495450/Model_4FGL_J1104.4+3812_daily_bin870.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) = 6003.1841827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51200       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.831       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7624       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.045       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4206       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9379       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1582       1.0000         .10000E-03   10000.    
    18 'norm      '    19.350       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11736E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.497       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0616       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.028       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.773       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3409       1.0000         .10000E-03   10000.    
    28 'norm      '    17.247       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .94492       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6003.173     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4354 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52403        3.4904        .47878E-06   -.15753E-03
   2  Prefactor     21.800        34.696       -.21069E-05    .25816E-04
   3  Prefactor     14.838        6.8646        .33689E-07   -.40882E-04
   4  norm          1.7494        9.7811        .14226E-05    .17441E-03
   5  Prefactor     .10000E-03    60.068       -.10365E-05** at limit **
   6  Prefactor     .10000E-03    12.824        .10170E-06** at limit **
   7  Prefactor     .10000E-03    2.5912        .10924E-06** at limit **
   8  Prefactor     .10000E-03    1.6448       -.17026E-07** at limit **
   9  Prefactor     31.401        27.670       -.34067E-06    .54369E-05
  10  Prefactor     12.738        15.273       -.31302E-07    .59485E-05
  11  Prefactor     74.048        64.301       -.61654E-07    .40162E-05
  12  Prefactor     .10000E-03    8.6588       -.64713E-07** at limit **
  13  norm          1.4206        .31297        .34291E-08   -.76930E-04
  14  Prefactor     1.9383        2.8152       -.16807E-07    .74591E-04
  15  Prefactor     .10000E-03    3.6237       -.76910E-07** at limit **
  16  Prefactor     .10000E-03    8.7359       -.11365E-06** at limit **
  17  Prefactor     2.1520        323.20        .16101E-06   -.24613E-05
  18  norm          19.352        14.034        .37587E-06   -.21295E-04
  19  norm          .10000E-03    32.041        .29925E-06** at limit **
  20  Prefactor     .10000E-03    2.0280        .17453E-05** at limit **
  21  Prefactor     27.551        42.022        .32738E-05    .16143E-04
  22  Prefactor     .10000E-03    30.976       -.48680E-07** at limit **
  23  norm          4.0619        2.8442        .14142E-06   -.10163E-03
  24  Prefactor     10.565        11.447       -.11239E-06   -.54370E-04
  25  Prefactor     13.029        5.6285        .14899E-06   -.51893E-05
  26  Prefactor     14.756        37.874        .12305E-05   -.14368E-04
  27  norm          1.3413        1.0644       -.74770E-07   -.31356E-03
  28  norm          17.246        11.063       -.23486E-07    .73496E-05
  29  Prefactor     .10000E-03    16.650       -.35651E-06** at limit **
  30  Prefactor     .10000E-03    36.523       -.60526E-06** at limit **
  31  Normalizat    .94480        .16659       -.47490E-06   -.58054E-04
  32  Prefactor     .84019        .19094        .12157E-05    .20711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.524035
  Prefactor  = 21.7995
  Prefactor  = 14.838
  norm       = 1.74942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4005
  Prefactor  = 12.7383
  Prefactor  = 74.048
  Prefactor  = 0.0001
  norm       = 1.42058
  Prefactor  = 1.93834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15198
  norm       = 19.352
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5505
  Prefactor  = 0.0001
  norm       = 4.06189
  Prefactor  = 10.5648
  Prefactor  = 13.0291
  Prefactor  = 14.7557
  norm       = 1.34126
  norm       = 17.2458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.9448
  Prefactor  = 0.840192
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.173     FROM HESSE     STATUS=OK           667 CALLS     5021 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52403        10.744        .22612E-02   -1.5563    
   2  Prefactor     21.800        34.765        .85878E-04   -1.4774    
   3  Prefactor     14.838        6.7754        .10400E-03   -1.4937    
   4  norm          1.7494        9.8572        .31560E-03   -1.5443    
   5  Prefactor     .10000E-03    60.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6219        .12155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6556        .97002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.401        27.664        .71518E-04   -1.4587    
  10  Prefactor     12.738        15.274        .11223E-03   -1.4994    
  11  Prefactor     74.048        64.403        .46659E-04   -1.3985    
  12  Prefactor     .10000E-03    8.7377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4206        .31346        .19680E-04   -1.5470    
  14  Prefactor     1.9383        2.7980        .14898E-03   -1.5430    
  15  Prefactor     .10000E-03    3.6287        .14405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1520        327.02        .28041E-03   -1.5415    
  18  norm          19.352        14.029        .91050E-04   -1.4828    
  19  norm          .10000E-03    32.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0501        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.551        41.999        .76399E-04   -1.4658    
  22  Prefactor     .10000E-03    31.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0619        2.8362        .92719E-04   -1.5305    
  24  Prefactor     10.565        11.410        .12326E-03   -1.5058    
  25  Prefactor     13.029        5.6281        .11098E-03   -1.4986    
  26  Prefactor     14.756        37.634        .10421E-03   -1.4940    
  27  norm          1.3413        1.0410        .63189E-04   -1.5476    
  28  norm          17.246        11.061        .96441E-04   -1.4877    
  29  Prefactor     .10000E-03    16.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    36.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .94480        .19608        .22988E-03   -.94903    
  32  Prefactor     .84019        .22366        .29314E-03   -.98263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87389e-08
Minuit parameter uncertainties:
  1  4.7461
  2  34.7976
  3  6.77572
  4  8.30715
  5  2.24222e-06
  6  1.06694e-05
  7  7.34988e-06
  8  1.65846e-06
  9  27.6756
  10  15.2784
  11  64.4636
  12  1.32292e-05
  13  0.313464
  14  2.79822
  15  9.25151e-06
  16  2.11121e-05
  17  53.3548
  18  14.0314
  19  4.67978e-05
  20  1.46381e-05
  21  42.0443
  22  0.000188419
  23  2.83626
  24  11.4123
  25  5.62828
  26  37.695
  27  1.04097
  28  11.0622
  29  1.3242e-05
  30  2.49651e-06
  31  0.196224
  32  0.223907
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.421e+00  3.135e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  8.402e-01  2.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  9.448e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 135.22
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 3.25e-08
Energy Flux (Fixed Index): 2.00e-04 +/- 4.40e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6002.4182126
delta logL = 0.754820220142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6002.41531848
delta logL = 0.757714346559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4315       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5395       1.0000          .0000       5.0000    
     3 'Normalizat'    .96598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6002.415     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4315        .33145        .46535E-02   -.11014E-02
   2  alpha         1.5396        .15589        .11483       -.14595E-04
   3  Normalizat    .96603        .15637        .45739E-01    .21430E-04
   4  Prefactor     .83035        .18926        .66712E-01    .23067E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43146
  alpha      = 1.53958
  Normalizat = 0.966026
  Prefactor  = 0.830352
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.415     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4315        .33078        .20523E-04   -1.5469    
   2  alpha         1.5396        .15817        .49872E-03   -.39431    
   3  Normalizat    .96603        .18318        .22801E-03   -.94177    
   4  Prefactor     .83035        .22140        .29512E-03   -.98619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08815e-11
Minuit parameter uncertainties:
  1  0.330778
  2  0.158296
  3  0.1833
  4  0.221636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495450': 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) = 6002.41531827
delta logL = 0.757714551452

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.431e+00  3.308e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.540e+00  1.583e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  8.304e-01  2.216e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  9.660e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 136.39
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.54 +/- 0.16
Photon Flux (Free Index): 1.21e-07 +/- 3.46e-08
Energy Flux (Free Index): 3.00e-04 +/- 1.21e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/495450/cmap_HighResolution_464832001_465091201_4FGL_J1104.4+3812_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='3.00e-04', photon_flux_error='3.25e-08', dlogl='7.58e-01', energy_flux='2.00e-04', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-03 07:07:28.054023', photon_index_error2='0.16', photon_index2='1.54', ts='135.22', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.21e-04', EG='0.94', time_epoch_completed='1630678048.05', return_code='0', job_id='495450', GAL2='0.83', EG2='0.97', return_code2='0', energy_flux_error='4.40e-05', photon_flux_error2='3.46e-08', ts2='136.39', photon_index='1.74' WHERE bin_id='870' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:07:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 495450: <4FGL_J1104.4+3812_daily_bin870> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin870> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:51:26 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:51:58 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:51:58 2021
Terminated at Fri Sep  3 07:07:28 2021
Results reported at Fri Sep  3 07:07:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin870 166.119 38.207 464832001 465091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   862.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            962 sec.

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

