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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin989
RA = 166.119, Dec = 38.207
tmin = 495676801, tmax = 495936001
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='496788', job_status='RUN', time_executed='2021-09-03 06:57:09.762330', time_epoch_executed='1630677429.76' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='989'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496788

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496788/ft1_4FGL_J1104.4+3812_daily_bin989.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496788/ft2_4FGL_J1104.4+3812_daily_bin989.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496788/ft1_4FGL_J1104.4+3812_daily_bin989.fits outfile=/scratch/kocevski/496788/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin989.fits ra=166.119 dec=38.207 rad=12.0 tmin=495676801.0 tmax=495936001.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.74
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496788/ft2_4FGL_J1104.4+3812_daily_bin989.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/496788/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin989.fits evtable="EVENTS" outfile="/scratch/kocevski/496788/ft1_filtered_4FGL_J1104.4+3812_daily_bin989.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.52
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496788/ft1_filtered_4FGL_J1104.4+3812_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/496788/ft2_4FGL_J1104.4+3812_daily_bin989.fits sctable="SC_DATA" expcube=/scratch/kocevski/496788/ltcube_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.fits outfile=/scratch/kocevski/496788/expmap_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.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/496788/ltcube_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.fits
.....................!
real 190.94
user 184.96
sys 4.67

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/496788/ft1_filtered_4FGL_J1104.4+3812_daily_bin989.fits scfile=/scratch/kocevski/496788/ft2_4FGL_J1104.4+3812_daily_bin989.fits outfile=/scratch/kocevski/496788/cmap_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.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 1.44
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496788/ft1_filtered_4FGL_J1104.4+3812_daily_bin989.fits scfile=/scratch/kocevski/496788/ft2_4FGL_J1104.4+3812_daily_bin989.fits outfile=/scratch/kocevski/496788/cmap_HighResolution_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.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.59
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496788/ft1_filtered_4FGL_J1104.4+3812_daily_bin989.fits', '/scratch/kocevski/496788/ft2_4FGL_J1104.4+3812_daily_bin989.fits', expMap='/scratch/kocevski/496788/expmap_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.fits', expCube='/scratch/kocevski/496788/ltcube_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496788/Model_4FGL_J1104.4+3812_daily_bin989.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/496788/ft1_filtered_4FGL_J1104.4+3812_daily_bin989.fits
Spacecraft file(s): /scratch/kocevski/496788/ft2_4FGL_J1104.4+3812_daily_bin989.fits
Exposure map: /scratch/kocevski/496788/expmap_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.fits
Exposure cube: /scratch/kocevski/496788/ltcube_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496788/Model_4FGL_J1104.4+3812_daily_bin989.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) = 5513.4030642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9111       1.0000         .10000E-03   10000.    
     4 'norm      '    16.811       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.663       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    71.795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.760       1.0000         .10000E-03   10000.    
    13 'norm      '    .41135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13300E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4447       1.0000         .10000E-03   10000.    
    19 'norm      '    64.726       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.293       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .60253E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.126       1.0000         .10000E-03   10000.    
    27 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.5161       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.1701       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.4410       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99822       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0103       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=   5513.367     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4423 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7729        5.2594       -.12846E-05   -.14514E-03
   2  Prefactor     .10000E-03    32.507       -.10900E-06** at limit **
   3  Prefactor     5.9105        5.7203        .26528E-05   -.13383E-02
   4  norm          16.807        11.962       -.17687E-06   -.49293E-04
   5  Prefactor     .10001E-03    126.12       -.41470E-05** at limit **
   6  Prefactor     .10000E-03    20.726       -.14159E-05** at limit **
   7  Prefactor     .10000E-03    4.1280       -.45290E-07** at limit **
   8  Prefactor     .10000E-03    2.9755       -.16758E-06** at limit **
   9  Prefactor     25.660        41.391       -.85288E-06   -.56773E-04
  10  Prefactor     6.9668        29.265        .45441E-06   -.50055E-05
  11  Prefactor     71.799        111.05        .10830E-05    .60037E-05
  12  Prefactor     11.755        10.988       -.78436E-07   -.18103E-03
  13  norm          .41140        .19976        .14733E-08   -.24894E-03
  14  Prefactor     .20066E-01    1.7526        .50523E-06   -.72613E-03
  15  Prefactor     .10000E-03    4.9191        .15163E-08** at limit **
  16  Prefactor     .10000E-03    19.513        .44635E-06** at limit **
  17  Prefactor     .10003E-03    252.63        .74286E-05** at limit **
  18  norm          4.4381        12.751        .49559E-06   -.44747E-04
  19  norm          64.730        68.646        .59954E-06    .27426E-04
  20  Prefactor     .10000E-03    .84630        .13330E-07** at limit **
  21  Prefactor     .10000E-03    21.443        .85736E-06** at limit **
  22  Prefactor     .10000E-03    11.668        .12334E-06** at limit **
  23  norm          .10000E-03    1.4076        .34798E-07** at limit **
  24  Prefactor     18.299        14.347        .65044E-06    .17535E-03
  25  Prefactor     .10640E-03    2.6811        .70325E-06** at limit **
  26  Prefactor     49.131        39.961        .13479E-05    .83923E-04
  27  norm          .10000E-03    .31752       -.45801E-07** at limit **
  28  norm          1.5348        19.208        .19167E-05   -.94873E-04
  29  Prefactor     6.0981        30.749        .27729E-05    .59754E-04
  30  Prefactor     8.3044        44.782       -.10244E-04   -.27526E-03
  31  Normalizat    .99820        .18065       -.10862E-05   -.18539E-03
  32  Prefactor     1.0103        .20474        .29198E-06   -.22767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77293
  Prefactor  = 0.0001
  Prefactor  = 5.9105
  norm       = 16.8071
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6599
  Prefactor  = 6.96684
  Prefactor  = 71.7993
  Prefactor  = 11.7555
  norm       = 0.411396
  Prefactor  = 0.0200656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 4.43812
  norm       = 64.7298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2987
  Prefactor  = 0.000106401
  Prefactor  = 49.1307
  norm       = 0.0001
  norm       = 1.53482
  Prefactor  = 6.09807
  Prefactor  = 8.30443
  Normalizat = 0.998198
  Prefactor  = 1.01028
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.367     FROM HESSE     STATUS=OK           667 CALLS     5090 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7729        5.2951        .17008E-03   -1.5319    
   2  Prefactor     .10000E-03    32.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9105        6.0985        .77367E-03   -1.5222    
   4  norm          16.807        11.970        .97685E-04   -1.4888    
   5  Prefactor     .10001E-03    127.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1920        .14688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9970        .12501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.660        41.352        .79076E-04   -1.4694    
  10  Prefactor     6.9668        29.375        .15191E-03   -1.5180    
  11  Prefactor     71.799        111.39        .47379E-04   -1.4011    
  12  Prefactor     11.755        11.094        .11682E-03   -1.5022    
  13  norm          .41140        .20024        .22411E-04   -1.5580    
  14  Prefactor     .20066E-01    4.4572        .31798E-01   -1.5680    
  15  Prefactor     .10000E-03    4.9248        .16078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    256.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4381        12.735        .19100E-03   -1.5287    
  19  norm          64.730        68.669        .49882E-04   -1.4097    
  20  Prefactor     .10000E-03    .85451        .66646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4582        .17181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.299        14.374        .93643E-04   -1.4852    
  25  Prefactor     .10640E-03    4.6958        .41428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.131        40.075        .57213E-04   -1.4305    
  27  norm          .10000E-03    .32206        .40697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.5348        18.554        .34717E-03   -1.5460    
  29  Prefactor     6.0981        30.901        .16162E-03   -1.5214    
  30  Prefactor     8.3044        49.323        .13798E-03   -1.5132    
  31  Normalizat    .99820        .21415        .23486E-03   -.93091    
  32  Prefactor     1.0103        .24313        .27513E-03   -.92388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04728e-09
Minuit parameter uncertainties:
  1  5.29579
  2  9.27116e-06
  3  6.09913
  4  11.9717
  5  0.00200029
  6  0.000263826
  7  1.17686e-05
  8  6.03813e-06
  9  41.3987
  10  28.6351
  11  111.716
  12  11.0962
  13  0.200237
  14  0.596669
  15  1.87132e-06
  16  7.46714e-05
  17  0.00518695
  18  12.7427
  19  68.7527
  20  1.49024e-06
  21  0.000164138
  22  2.29984e-05
  23  2.22713e-06
  24  14.3765
  25  0.0109661
  26  40.0974
  27  2.10252e-06
  28  10.6766
  29  27.4767
  30  40.5273
  31  0.214336
  32  0.243397
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  4.114e-01  2.002e-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:  1.010e+00  2.434e-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.982e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.35
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 5.78e-05 +/- 2.81e-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) = 5513.23930155
delta logL = 0.128049397463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.22802194
delta logL = 0.139329015698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39684       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5446       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0063       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=   5513.228     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      201 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39684        .20327        .50726E-02    .99286E-04
   2  alpha         1.5446        .33037        .23967       -.28851E-04
   3  Normalizat    1.0065        .17290        .46248E-01   -.27397E-06
   4  Prefactor     1.0063        .20388        .43932E-01    .21680E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.396836
  alpha      = 1.54458
  Normalizat = 1.00648
  Prefactor  = 1.0063
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.228     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39684        .20245        .22310E-04   -1.5582    
   2  alpha         1.5446        .35028        .98839E-02   -.39214    
   3  Normalizat    1.0065        .20016        .23404E-03   -.92814    
   4  Prefactor     1.0063        .23633        .27545E-03   -.92520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06547e-12
Minuit parameter uncertainties:
  1  0.20245
  2  0.351635
  3  0.200312
  4  0.236576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496788': 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) = 5513.22802193
delta logL = 0.139329017417

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.968e-01  2.024e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.545e+00  3.516e-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:  1.006e+00  2.366e-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:  1.006e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.62
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.54 +/- 0.35
Photon Flux (Free Index): 3.38e-08 +/- 2.22e-08
Energy Flux (Free Index): 8.22e-05 +/- 6.90e-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/496788/cmap_HighResolution_495676801_495936001_4FGL_J1104.4+3812_daily_bin989.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='8.22e-05', photon_flux_error='2.08e-08', dlogl='1.39e-01', energy_flux='5.78e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-03 07:10:47.123836', photon_index_error2='0.35', photon_index2='1.54', ts='15.35', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='6.90e-05', EG='1.00', time_epoch_completed='1630678247.12', return_code='0', job_id='496788', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='2.81e-05', photon_flux_error2='2.22e-08', ts2='15.62', photon_index='1.74' WHERE bin_id='989' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:10:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 496788: <4FGL_J1104.4+3812_daily_bin989> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin989 166.119 38.207 495676801 495936001 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 :                                   802.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            859 sec.

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

