/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 55 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin110
RA = 166.119, Dec = 38.207
tmin = 267840001, tmax = 268099201
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='491179', job_status='RUN', time_executed='2021-09-03 06:40:47.550240', time_epoch_executed='1630676447.55' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491179/ft1_4FGL_J1104.4+3812_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491179/ft2_4FGL_J1104.4+3812_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491179/ft1_4FGL_J1104.4+3812_daily_bin110.fits outfile=/scratch/kocevski/491179/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin110.fits ra=166.119 dec=38.207 rad=12.0 tmin=267840001.0 tmax=268099201.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.16
user 1.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491179/ft2_4FGL_J1104.4+3812_daily_bin110.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/491179/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin110.fits evtable="EVENTS" outfile="/scratch/kocevski/491179/ft1_filtered_4FGL_J1104.4+3812_daily_bin110.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 1.36
user 0.34
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491179/ft1_filtered_4FGL_J1104.4+3812_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/491179/ft2_4FGL_J1104.4+3812_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/491179/ltcube_267840001_268099201_4FGL_J1104.4+3812_daily_bin110.fits outfile=/scratch/kocevski/491179/expmap_267840001_268099201_4FGL_J1104.4+3812_daily_bin110.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/491179/ltcube_267840001_268099201_4FGL_J1104.4+3812_daily_bin110.fits
.....................!
real 197.04
user 187.21
sys 5.54

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/491179/ft1_filtered_4FGL_J1104.4+3812_daily_bin110.fits scfile=/scratch/kocevski/491179/ft2_4FGL_J1104.4+3812_daily_bin110.fits outfile=/scratch/kocevski/491179/cmap_267840001_268099201_4FGL_J1104.4+3812_daily_bin110.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491179/ft1_filtered_4FGL_J1104.4+3812_daily_bin110.fits scfile=/scratch/kocevski/491179/ft2_4FGL_J1104.4+3812_daily_bin110.fits outfile=/scratch/kocevski/491179/cmap_HighResolution_267840001_268099201_4FGL_J1104.4+3812_daily_bin110.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/491179/ft1_filtered_4FGL_J1104.4+3812_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/491179/ft2_4FGL_J1104.4+3812_daily_bin110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491179/Model_4FGL_J1104.4+3812_daily_bin110.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/491179/ft1_filtered_4FGL_J1104.4+3812_daily_bin110.fits.....................!
real 44.46
user 43.13
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5733       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11703E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3052       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.774       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3363       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .48808       1.0000         .10000E-03   10000.    
    28 'norm      '    6.6151       1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.424       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1106       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0047       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=   4755.661     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4319 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2374       -.25622E-07** at limit **
   2  Prefactor     .10000E-03    11.887        .58797E-06** at limit **
   3  Prefactor     1.5748        4.0429        .34802E-06   -.22965E-03
   4  norm          .10000E-03    6.2046        .16341E-05** at limit **
   5  Prefactor     .10000E-03    27.054       -.95178E-06** at limit **
   6  Prefactor     .10001E-03    95.995       -.38721E-05** at limit **
   7  Prefactor     .10000E-03    2.3330        .39105E-07** at limit **
   8  Prefactor     2.3697        6.9826        .56257E-06   -.15055E-03
   9  Prefactor     .10000E-03    15.524       -.50219E-06** at limit **
  10  Prefactor     .10000E-03    17.110        .25650E-05** at limit **
  11  Prefactor     66.329        81.057        .39013E-05    .17436E-03
  12  Prefactor     .10000E-03    13.848       -.19209E-05** at limit **
  13  norm          1.3052        .35794       -.22416E-08    .99485E-05
  14  Prefactor     .28412        1.9421        .96802E-08    .67530E-04
  15  Prefactor     .10000E-03    5.5637        .13551E-07** at limit **
  16  Prefactor     .10000E-03    7.5391       -.30341E-06** at limit **
  17  Prefactor     .10000E-03    31.185       -.28061E-05** at limit **
  18  norm          19.775        13.873       -.10034E-06   -.53316E-05
  19  norm          .10001E-03    39.369        .30704E-05** at limit **
  20  Prefactor     .10000E-03    1.1537       -.19334E-06** at limit **
  21  Prefactor     .10000E-03    16.078        .30853E-06** at limit **
  22  Prefactor     .10000E-03    9.2195        .11104E-06** at limit **
  23  norm          .10000E-03    .80119       -.38639E-07** at limit **
  24  Prefactor     .10000E-03    6.1852       -.14824E-05** at limit **
  25  Prefactor     6.3390        6.3361        .29009E-05   -.18857E-02
  26  Prefactor     .10000E-03    91.184        .24572E-05** at limit **
  27  norm          .48907        1.0624        .13747E-06   -.41918E-03
  28  norm          6.6135        9.4671        .52203E-06   -.25645E-03
  29  Prefactor     17.403        34.381       -.72117E-05   -.39029E-03
  30  Prefactor     .10000E-03    37.436        .49141E-06** at limit **
  31  Normalizat    1.1103        .19793       -.51140E-06   -.25308E-05
  32  Prefactor     1.0049        .22552       -.48133E-06    .13263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57485
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.36973
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 66.3289
  Prefactor  = 0.000100002
  norm       = 1.30522
  Prefactor  = 0.284121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 19.7749
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.339
  Prefactor  = 0.000100003
  norm       = 0.489066
  norm       = 6.61352
  Prefactor  = 17.4031
  Prefactor  = 0.0001
  Normalizat = 1.11035
  Prefactor  = 1.00492
 **********
 **   18 **HESSE 
 **********

 FCN=   4755.661     FROM HESSE     STATUS=OK           649 CALLS     4968 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2384        .74806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5748        4.0032        .20927E-03   -1.5457    
   4  norm          .10000E-03    6.3622        .16916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    96.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3717        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3697        6.9512        .26529E-03   -1.5400    
   9  Prefactor     .10000E-03    15.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     66.329        81.859        .49284E-04   -1.4077    
  12  Prefactor     .10000E-03    14.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3052        .35840        .20889E-04   -1.5479    
  14  Prefactor     .28412        9.9288        .18058E-02   -1.5601    
  15  Prefactor     .10000E-03    5.5724        .15884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.775        13.872        .90070E-04   -1.4818    
  19  norm          .10001E-03    39.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1841        .14470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .80974        .60260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.2885        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.3390        7.0311        .79729E-03   -1.5204    
  26  Prefactor     .10000E-03    92.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .48907        .99942        .97620E-03   -1.5568    
  28  norm          6.6135        9.4649        .78012E-03   -1.5194    
  29  Prefactor     17.403        35.039        .95950E-04   -1.4873    
  30  Prefactor     .10000E-03    37.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1103        .23393        .22660E-03   -.89420    
  32  Prefactor     1.0049        .26486        .28586E-03   -.92566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75734e-09
Minuit parameter uncertainties:
  1  8.34944e-07
  2  9.11639e-05
  3  4.00384
  4  0.00018788
  5  0.000242295
  6  0.00166979
  7  1.99382e-06
  8  6.9536
  9  9.62846e-05
  10  0.000503215
  11  81.9985
  12  0.000311695
  13  0.358403
  14  3.35917
  15  6.03453e-07
  16  4.05708e-05
  17  0.000756197
  18  13.8747
  19  0.000923788
  20  7.5168e-06
  21  6.37855e-05
  22  2.83828e-05
  23  1.24664e-06
  24  0.000166157
  25  7.03199
  26  0.0010936
  27  0.999459
  28  9.46705
  29  35.0807
  30  0.000147062
  31  0.234153
  32  0.265208
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.305e+00  3.584e-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.005e+00  2.652e-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.110e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.80
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 3.72e-08
Energy Flux (Fixed Index): 1.83e-04 +/- 5.03e-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) = 4755.58503728
delta logL = 0.0758495364498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4755.57665183
delta logL = 0.0842349937702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3166       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6517       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99972       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=   4755.577     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3166        .41046        .48297E-02   -.82319E-04
   2  alpha         1.6516        .22160        .12968        .30560E-05
   3  Normalizat    1.1203        .19073        .37227E-01    .47763E-05
   4  Prefactor     .99978        .22961        .46264E-01    .96386E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3166
  alpha      = 1.65164
  Normalizat = 1.12029
  Prefactor  = 0.99978
 **********
 **   18 **HESSE 
 **********

 FCN=   4755.577     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .31E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3166        .36641        .21318E-04   -1.5478    
   2  alpha         1.6516        .20290        .55802E-02   -.34622    
   3  Normalizat    1.1203        .21907        .22584E-03   -.89103    
   4  Prefactor     .99978        .26368        .28643E-03   -.92737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07749e-15
Minuit parameter uncertainties:
  1  0.366406
  2  0.203156
  3  0.219252
  4  0.264026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491179': 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) = 4755.57665178
delta logL = 0.0842350434659

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.317e+00  3.664e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.652e+00  2.032e-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.998e-01  2.640e-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.120e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.93
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.65 +/- 0.20
Photon Flux (Free Index): 1.24e-07 +/- 4.36e-08
Energy Flux (Free Index): 2.16e-04 +/- 1.07e-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/491179/cmap_HighResolution_267840001_268099201_4FGL_J1104.4+3812_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='2.16e-04', photon_flux_error='3.72e-08', dlogl='8.42e-02', energy_flux='1.83e-04', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-03 06:53:26.919799', photon_index_error2='0.20', photon_index2='1.65', ts='64.80', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.07e-04', EG='1.11', time_epoch_completed='1630677206.92', return_code='0', job_id='491179', GAL2='1.00', EG2='1.12', return_code2='0', energy_flux_error='5.03e-05', photon_flux_error2='4.36e-08', ts2='64.93', photon_index='1.74' WHERE bin_id='110' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:53:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 491179: <4FGL_J1104.4+3812_daily_bin110> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin110> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 06:37:17 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:37:52 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:37:52 2021
Terminated at Fri Sep  3 06:53:27 2021
Results reported at Fri Sep  3 06:53:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin110 166.119 38.207 267840001 268099201 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            970 sec.

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

