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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin38
RA = 166.119, Dec = 38.207
tmin = 249177601, tmax = 249436801
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='491056', job_status='RUN', time_executed='2021-09-03 06:39:29.220977', time_epoch_executed='1630676369.22' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491056/ft1_4FGL_J1104.4+3812_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491056/ft2_4FGL_J1104.4+3812_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491056/ft1_4FGL_J1104.4+3812_daily_bin38.fits outfile=/scratch/kocevski/491056/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin38.fits ra=166.119 dec=38.207 rad=12.0 tmin=249177601.0 tmax=249436801.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.49
user 1.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491056/ft1_filtered_4FGL_J1104.4+3812_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/491056/ft2_4FGL_J1104.4+3812_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/491056/ltcube_249177601_249436801_4FGL_J1104.4+3812_daily_bin38.fits outfile=/scratch/kocevski/491056/expmap_249177601_249436801_4FGL_J1104.4+3812_daily_bin38.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/491056/ltcube_249177601_249436801_4FGL_J1104.4+3812_daily_bin38.fits
.....................!
real 202.74
user 185.75
sys 5.22

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/491056/ft1_filtered_4FGL_J1104.4+3812_daily_bin38.fits scfile=/scratch/kocevski/491056/ft2_4FGL_J1104.4+3812_daily_bin38.fits outfile=/scratch/kocevski/491056/cmap_249177601_249436801_4FGL_J1104.4+3812_daily_bin38.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.63
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491056/ft1_filtered_4FGL_J1104.4+3812_daily_bin38.fits scfile=/scratch/kocevski/491056/ft2_4FGL_J1104.4+3812_daily_bin38.fits outfile=/scratch/kocevski/491056/cmap_HighResolution_249177601_249436801_4FGL_J1104.4+3812_daily_bin38.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53700E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0153       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.118       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6720       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6463       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8946       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11882E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .64203E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9099       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8401       1.0000         .10000E-03   10000.    
    23 'norm      '    .49963       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.827       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4188       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.887       1.0000         .10000E-03   10000.    
    30 'Prefactor '    131.34       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88139       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0734       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=   5191.033     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4466 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1426       -.23678E-06** at limit **
   2  Prefactor     3.1554        87.679        .19832E-05    .11592E-04
   3  Prefactor     1.0175        3.5016        .12441E-06   -.27932E-03
   4  norm          .10000E-03    11.204        .20959E-07** at limit **
   5  Prefactor     36.123        50.062        .54406E-06    .32365E-04
   6  Prefactor     .10000E-03    21.332       -.21799E-05** at limit **
   7  Prefactor     .10000E-03    2.6058       -.43284E-09** at limit **
   8  Prefactor     2.2645        3.9783       -.25458E-07   -.78697E-04
   9  Prefactor     82.407        45.836        .42868E-06    .78896E-04
  10  Prefactor     4.7017        50.751       -.22923E-04   -.16973E-03
  11  Prefactor     .10000E-03    61.268       -.38714E-06** at limit **
  12  Prefactor     3.6559        8.8580        .46015E-05   -.10087E-02
  13  norm          1.8945        .40049       -.97022E-09    .97457E-03
  14  Prefactor     .10000E-03    2.2836       -.14626E-05** at limit **
  15  Prefactor     .10000E-03    30.663       -.14563E-05** at limit **
  16  Prefactor     .10000E-03    10.090       -.18765E-08** at limit **
  17  Prefactor     .10000E-03    26.530        .13842E-05** at limit **
  18  norm          .10334E-03    10.169       -.40493E-06** at limit **
  19  norm          .10000E-03    28.008        .24286E-05** at limit **
  20  Prefactor     2.9097        2.2433       -.53780E-07    .37306E-04
  21  Prefactor     .10000E-03    20.292        .20891E-05** at limit **
  22  Prefactor     9.8405        14.818        .17034E-06    .10777E-03
  23  norm          .49985        1.4015        .12735E-06   -.49169E-03
  24  Prefactor     .10000E-03    23.855       -.20715E-05** at limit **
  25  Prefactor     .10000E-03    2.5228        .80818E-08** at limit **
  26  Prefactor     21.827        22.570        .25922E-06    .31331E-04
  27  norm          1.4188        .94976        .25248E-07    .24492E-05
  28  norm          .10000E-03    6.3982        .12613E-07** at limit **
  29  Prefactor     21.887        31.519        .53874E-06    .52855E-04
  30  Prefactor     131.33        71.769       -.18366E-05   -.66200E-04
  31  Normalizat    .88141        .18394        .68627E-06    .34352E-03
  32  Prefactor     1.0734        .21282        .70294E-06    .28564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 3.15543
  Prefactor  = 1.01746
  norm       = 0.0001
  Prefactor  = 36.1232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26447
  Prefactor  = 82.4069
  Prefactor  = 4.70171
  Prefactor  = 0.0001
  Prefactor  = 3.65587
  norm       = 1.89453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000103341
  norm       = 0.0001
  Prefactor  = 2.90972
  Prefactor  = 0.0001
  Prefactor  = 9.84055
  norm       = 0.499852
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.8268
  norm       = 1.41883
  norm       = 0.0001
  Prefactor  = 21.8866
  Prefactor  = 131.333
  Normalizat = 0.881412
  Prefactor  = 1.07337
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.033     FROM HESSE     STATUS=OK           665 CALLS     5131 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.214        .18904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1554        87.947        .22810E-03   -1.5353    
   3  Prefactor     1.0175        3.2594        .22303E-03   -1.5506    
   4  norm          .10000E-03    11.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.123        50.093        .66685E-04   -1.4505    
   6  Prefactor     .10000E-03    21.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6393        .11338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2645        3.9470        .18140E-03   -1.5407    
   9  Prefactor     82.407        45.723        .44249E-04   -1.3890    
  10  Prefactor     4.7017        54.753        .18618E-03   -1.5274    
  11  Prefactor     .10000E-03    61.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6559        11.957        .10578E-02   -1.5326    
  13  norm          1.8945        .40052        .20150E-04   -1.5433    
  14  Prefactor     .10000E-03    3.9843        .20606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10334E-03    15.967        .68762E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    28.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9097        2.2222        .89997E-04   -1.5367    
  21  Prefactor     .10000E-03    20.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.8405        14.769        .12774E-03   -1.5080    
  23  norm          .49985        1.2084        .13709E-02   -1.5567    
  24  Prefactor     .10000E-03    24.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.5479        .11167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.827        22.544        .85733E-04   -1.4773    
  27  norm          1.4188        .94588        .53492E-04   -1.5470    
  28  norm          .10000E-03    6.4138        .17794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     21.887        31.537        .85617E-04   -1.4772    
  30  Prefactor     131.33        71.852        .35134E-04   -1.3411    
  31  Normalizat    .88141        .21770        .24260E-03   -.97116    
  32  Prefactor     1.0734        .25213        .27279E-03   -.90322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87641e-09
Minuit parameter uncertainties:
  1  0.000364128
  2  33.371
  3  3.25995
  4  4.96597e-05
  5  50.1517
  6  0.000180938
  7  1.19316e-05
  8  3.94746
  9  45.7422
  10  32.1259
  11  0.000106482
  12  11.9647
  13  0.400519
  14  3.34268e-05
  15  3.5464e-05
  16  4.79228e-07
  17  0.000121836
  18  0.0146107
  19  0.000225296
  20  2.22225
  21  0.000159665
  22  14.7746
  23  1.20843
  24  0.000231439
  25  5.49159e-06
  26  22.5523
  27  0.945887
  28  8.54399e-06
  29  31.5605
  30  71.8996
  31  0.217914
  32  0.252414
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.895e+00  4.005e-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.073e+00  2.524e-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.814e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 102.88
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.97e-07 +/- 4.16e-08
Energy Flux (Fixed Index): 2.66e-04 +/- 5.63e-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) = 5190.67351975
delta logL = 0.359269578752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5190.66459187
delta logL = 0.368197453949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7999       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8755       1.0000          .0000       5.0000    
     3 'Normalizat'    .85531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0890       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=   5190.665     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7999        .70141        .42938E-02   -.41440E-02
   2  alpha         1.8755        .28422        .96569E-01    .57246E-04
   3  Normalizat    .85524        .17514        .44328E-01   -.69115E-06
   4  Prefactor     1.0890        .21261        .61211E-01    .31316E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.79989
  alpha      = 1.87552
  Normalizat = 0.855236
  Prefactor  = 1.08899
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.665     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7999        .39894        .18969E-04   -1.5440    
   2  alpha         1.8755        .16473        .41965E-03   -.25247    
   3  Normalizat    .85524        .20539        .24542E-03   -.98051    
   4  Prefactor     1.0890        .25069        .27071E-03   -.89819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67659e-10
Minuit parameter uncertainties:
  1  0.398943
  2  0.164854
  3  0.20558
  4  0.250961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491056': 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) = 5190.66459148
delta logL = 0.368197846357

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.800e+00  3.989e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.876e+00  1.649e-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.089e+00  2.510e-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.552e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 103.15
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.88 +/- 0.16
Photon Flux (Free Index): 2.24e-07 +/- 5.55e-08
Energy Flux (Free Index): 2.05e-04 +/- 7.30e-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/491056/cmap_HighResolution_249177601_249436801_4FGL_J1104.4+3812_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.97e-07', energy_flux2='2.05e-04', photon_flux_error='4.16e-08', dlogl='3.68e-01', energy_flux='2.66e-04', photon_flux2='2.24e-07', job_status='DONE', time_completed='2021-09-03 06:53:01.243048', photon_index_error2='0.16', photon_index2='1.88', ts='102.88', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='7.30e-05', EG='0.88', time_epoch_completed='1630677181.24', return_code='0', job_id='491056', GAL2='1.09', EG2='0.86', return_code2='0', energy_flux_error='5.63e-05', photon_flux_error2='5.55e-08', ts2='103.15', photon_index='1.74' WHERE bin_id='38' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:53:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 491056: <4FGL_J1104.4+3812_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin38 166.119 38.207 249177601 249436801 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 :                                   782.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            955 sec.

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

