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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin695
RA = 166.119, Dec = 38.207
tmin = 419472001, tmax = 419731201
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='493993', job_status='RUN', time_executed='2021-09-03 06:48:02.067470', time_epoch_executed='1630676882.07' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493993/ft1_4FGL_J1104.4+3812_daily_bin695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493993/ft2_4FGL_J1104.4+3812_daily_bin695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493993/ft1_4FGL_J1104.4+3812_daily_bin695.fits outfile=/scratch/kocevski/493993/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin695.fits ra=166.119 dec=38.207 rad=12.0 tmin=419472001.0 tmax=419731201.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 5.95
user 5.69
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/493993/ft2_4FGL_J1104.4+3812_daily_bin695.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/493993/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin695.fits evtable="EVENTS" outfile="/scratch/kocevski/493993/ft1_filtered_4FGL_J1104.4+3812_daily_bin695.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.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493993/ft1_filtered_4FGL_J1104.4+3812_daily_bin695.fits" evtable="EVENTS" scfile=/scratch/kocevski/493993/ft2_4FGL_J1104.4+3812_daily_bin695.fits sctable="SC_DATA" outfile=/scratch/kocevski/493993/ltcube_419472001_419731201_4FGL_J1104.4+3812_daily_bin695.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/493993/ft2_4FGL_J1104.4+3812_daily_bin695.fits
.....................!
real 17.77
user 17.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493993/ft1_filtered_4FGL_J1104.4+3812_daily_bin695.fits evtable="EVENTS" scfile=/scratch/kocevski/493993/ft2_4FGL_J1104.4+3812_daily_bin695.fits sctable="SC_DATA" expcube=/scratch/kocevski/493993/ltcube_419472001_419731201_4FGL_J1104.4+3812_daily_bin695.fits outfile=/scratch/kocevski/493993/expmap_419472001_419731201_4FGL_J1104.4+3812_daily_bin695.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/493993/ltcube_419472001_419731201_4FGL_J1104.4+3812_daily_bin695.fits
.....................!
real 190.50
user 185.40
sys 4.71

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/493993/ft1_filtered_4FGL_J1104.4+3812_daily_bin695.fits scfile=/scratch/kocevski/493993/ft2_4FGL_J1104.4+3812_daily_bin695.fits outfile=/scratch/kocevski/493993/cmap_419472001_419731201_4FGL_J1104.4+3812_daily_bin695.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493993/ft1_filtered_4FGL_J1104.4+3812_daily_bin695.fits scfile=/scratch/kocevski/493993/ft2_4FGL_J1104.4+3812_daily_bin695.fits outfile=/scratch/kocevski/493993/cmap_HighResolution_419472001_419731201_4FGL_J1104.4+3812_daily_bin695.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6571       1.0000         .10000E-03   10000.    
     4 'norm      '    21.967       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0053       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60403       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.082       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8500       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6292       1.0000         .10000E-03   10000.    
    23 'norm      '    7.0694       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6898       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.5458       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    71.471       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .79946       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97111       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=   5067.878     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4346 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7409        5.6535        .58401E-06   -.18876E-04
   2  Prefactor     .10000E-03    23.604        .16832E-05** at limit **
   3  Prefactor     6.6595        6.8790       -.10267E-06   -.11776E-03
   4  norm          21.968        11.389       -.43860E-07   -.12437E-03
   5  Prefactor     .10000E-03    20.958        .15001E-05** at limit **
   6  Prefactor     .10000E-03    18.787        .41461E-06** at limit **
   7  Prefactor     4.0395        3.4584       -.13613E-06   -.17154E-03
   8  Prefactor     .10000E-03    4.1677       -.16988E-07** at limit **
   9  Prefactor     .10000E-03    17.996       -.10990E-06** at limit **
  10  Prefactor     .10000E-03    51.864        .33566E-05** at limit **
  11  Prefactor     .10000E-03    29.051       -.31761E-06** at limit **
  12  Prefactor     .10000E-03    6.2271        .34544E-07** at limit **
  13  norm          3.0053        .51075        .56333E-10   -.58836E-03
  14  Prefactor     .60370        3.2765        .53987E-06   -.59637E-04
  15  Prefactor     5.8718        18.230       -.28063E-06   -.43491E-04
  16  Prefactor     .10000E-03    12.386        .51876E-06** at limit **
  17  Prefactor     .10000E-03    36.138       -.26396E-05** at limit **
  18  norm          12.081        15.267       -.31842E-07   -.28259E-04
  19  norm          .10000E-03    29.296       -.43762E-06** at limit **
  20  Prefactor     3.8500        2.9400        .38314E-06   -.26900E-04
  21  Prefactor     .10000E-03    30.613       -.10366E-05** at limit **
  22  Prefactor     5.6277        15.823       -.19600E-05    .55378E-05
  23  norm          7.0696        3.3000        .11425E-07    .17778E-03
  24  Prefactor     2.6904        9.7028        .50958E-05   -.10117E-03
  25  Prefactor     .10000E-03    3.4198        .16414E-07** at limit **
  26  Prefactor     .10000E-03    15.840       -.18355E-05** at limit **
  27  norm          2.5459        1.3755        .69635E-07    .14451E-03
  28  norm          .10000E-03    4.6357        .13621E-06** at limit **
  29  Prefactor     .10000E-03    45.366       -.57518E-06** at limit **
  30  Prefactor     71.479        68.755       -.96899E-06   -.16019E-04
  31  Normalizat    .79940        .18752       -.26576E-06   -.13193E-03
  32  Prefactor     .97111        .22152       -.56992E-06   -.11621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74091
  Prefactor  = 0.0001
  Prefactor  = 6.65947
  norm       = 21.9677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00533
  Prefactor  = 0.603698
  Prefactor  = 5.87176
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.0811
  norm       = 0.0001
  Prefactor  = 3.85002
  Prefactor  = 0.0001
  Prefactor  = 5.62773
  norm       = 7.06965
  Prefactor  = 2.69044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54594
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.479
  Normalizat = 0.799399
  Prefactor  = 0.971107
 **********
 **   18 **HESSE 
 **********

 FCN=   5067.878     FROM HESSE     STATUS=OK           657 CALLS     5003 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7409        5.3457        .21603E-03   -1.5444    
   2  Prefactor     .10000E-03    23.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6595        6.5338        .13320E-03   -1.5192    
   4  norm          21.968        11.391        .85461E-04   -1.4770    
   5  Prefactor     .10000E-03    20.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0395        3.4599        .11669E-03   -1.5306    
   8  Prefactor     .10000E-03    4.2504        .14174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2432        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0053        .51207        .19502E-04   -1.5361    
  14  Prefactor     .60370        3.3847        .24249E-02   -1.5553    
  15  Prefactor     5.8718        18.217        .16574E-03   -1.5223    
  16  Prefactor     .10000E-03    12.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.081        15.204        .11525E-03   -1.5013    
  19  norm          .10000E-03    29.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8500        2.9294        .49361E-03   -1.5316    
  21  Prefactor     .10000E-03    30.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6277        15.842        .16932E-03   -1.5233    
  23  norm          7.0696        3.2970        .82135E-04   -1.5176    
  24  Prefactor     2.6904        9.7290        .12421E-02   -1.5380    
  25  Prefactor     .10000E-03    3.4846        .12847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.5459        1.3797        .54977E-04   -1.5389    
  28  norm          .10000E-03    4.6408        .14971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    45.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     71.479        68.977        .47486E-04   -1.4015    
  31  Normalizat    .79940        .22029        .24670E-03   -1.0009    
  32  Prefactor     .97111        .25996        .27886E-03   -.93699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64306e-08
Minuit parameter uncertainties:
  1  5.34717
  2  0.000151338
  3  6.53451
  4  11.3926
  5  0.000115967
  6  2.97274e-05
  7  3.46012
  8  3.29638e-06
  9  1.6774e-06
  10  0.000351811
  11  2.71928e-05
  12  7.0511e-08
  13  0.512072
  14  2.8589
  15  18.2344
  16  3.49488e-05
  17  0.000280729
  18  15.2089
  19  4.17746e-05
  20  2.92947
  21  0.000109803
  22  15.8534
  23  3.29706
  24  9.73469
  25  6.68854e-08
  26  0.000126915
  27  1.3797
  28  1.48802e-05
  29  5.13351e-05
  30  69.0542
  31  0.220538
  32  0.260294
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.005e+00  5.121e-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:  9.711e-01  2.603e-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:  7.994e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 206.82
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 3.12e-07 +/- 5.32e-08
Energy Flux (Fixed Index): 4.22e-04 +/- 7.19e-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) = 5067.73163872
delta logL = 0.146734432771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5067.73112878
delta logL = 0.147244374827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0560       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6697       1.0000          .0000       5.0000    
     3 'Normalizat'    .81613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96089       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=   5067.731     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0561        .55673        .45174E-02   -.77327E-04
   2  alpha         1.6697        .13013        .77919E-01    .18151E-04
   3  Normalizat    .81616        .17916        .43820E-01    .12839E-04
   4  Prefactor     .96086        .22005        .45776E-01    .95513E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05614
  alpha      = 1.66968
  Normalizat = 0.816159
  Prefactor  = 0.960859
 **********
 **   18 **HESSE 
 **********

 FCN=   5067.731     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .11E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0561        .51217        .19954E-04   -1.5358    
   2  alpha         1.6697        .12079        .34164E-03   -.33856    
   3  Normalizat    .81616        .20965        .24471E-03   -.99472    
   4  Prefactor     .96086        .25742        .28043E-03   -.94046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14978e-15
Minuit parameter uncertainties:
  1  0.512176
  2  0.120847
  3  0.209857
  4  0.257745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493993': 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) = 5067.73112873
delta logL = 0.147244419295

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.056e+00  5.122e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.670e+00  1.208e-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:  9.609e-01  2.577e-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:  8.162e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 206.15
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.67 +/- 0.12
Photon Flux (Free Index): 2.94e-07 +/- 5.90e-08
Energy Flux (Free Index): 4.85e-04 +/- 1.48e-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/493993/cmap_HighResolution_419472001_419731201_4FGL_J1104.4+3812_daily_bin695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-07', energy_flux2='4.85e-04', photon_flux_error='5.32e-08', dlogl='1.47e-01', energy_flux='4.22e-04', photon_flux2='2.94e-07', job_status='DONE', time_completed='2021-09-03 07:01:30.888112', photon_index_error2='0.12', photon_index2='1.67', ts='206.82', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.48e-04', EG='0.80', time_epoch_completed='1630677690.89', return_code='0', job_id='493993', GAL2='0.96', EG2='0.82', return_code2='0', energy_flux_error='7.19e-05', photon_flux_error2='5.90e-08', ts2='206.15', photon_index='1.74' WHERE bin_id='695' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:01:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 493993: <4FGL_J1104.4+3812_daily_bin695> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin695> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:46:17 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:46:22 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:46:22 2021
Terminated at Fri Sep  3 07:01:31 2021
Results reported at Fri Sep  3 07:01:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin695 166.119 38.207 419472001 419731201 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 :                                   806.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            914 sec.

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

