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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin873
RA = 166.119, Dec = 38.207
tmin = 465609601, tmax = 465868801
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='495455', job_status='RUN', time_executed='2021-09-03 06:53:04.370961', time_epoch_executed='1630677184.37' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495455

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495455/ft1_4FGL_J1104.4+3812_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495455/ft2_4FGL_J1104.4+3812_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495455/ft1_4FGL_J1104.4+3812_daily_bin873.fits outfile=/scratch/kocevski/495455/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin873.fits ra=166.119 dec=38.207 rad=12.0 tmin=465609601.0 tmax=465868801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495455/ft1_filtered_4FGL_J1104.4+3812_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/495455/ft2_4FGL_J1104.4+3812_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/495455/ltcube_465609601_465868801_4FGL_J1104.4+3812_daily_bin873.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/495455/ft2_4FGL_J1104.4+3812_daily_bin873.fits
.....................!
real 12.36
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495455/ft1_filtered_4FGL_J1104.4+3812_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/495455/ft2_4FGL_J1104.4+3812_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/495455/ltcube_465609601_465868801_4FGL_J1104.4+3812_daily_bin873.fits outfile=/scratch/kocevski/495455/expmap_465609601_465868801_4FGL_J1104.4+3812_daily_bin873.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/495455/ltcube_465609601_465868801_4FGL_J1104.4+3812_daily_bin873.fits
.....................!
real 192.49
user 187.09
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/495455/ft1_filtered_4FGL_J1104.4+3812_daily_bin873.fits scfile=/scratch/kocevski/495455/ft2_4FGL_J1104.4+3812_daily_bin873.fits outfile=/scratch/kocevski/495455/cmap_465609601_465868801_4FGL_J1104.4+3812_daily_bin873.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495455/ft1_filtered_4FGL_J1104.4+3812_daily_bin873.fits scfile=/scratch/kocevski/495455/ft2_4FGL_J1104.4+3812_daily_bin873.fits outfile=/scratch/kocevski/495455/cmap_HighResolution_465609601_465868801_4FGL_J1104.4+3812_daily_bin873.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4857       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17705E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7903       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9683       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1672       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.622       1.0000         .10000E-03   10000.    
    23 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.3032       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9660       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .39046       1.0000         .10000E-03   10000.    
    28 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    20.139       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.5196       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73106       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=   4947.190     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4405 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4880        3.8002        .71663E-06    .66913E-03
   2  Prefactor     .10000E-03    16.271        .54255E-06** at limit **
   3  Prefactor     .10000E-03    4.1851        .11698E-06** at limit **
   4  norm          5.4854        6.9326        .49659E-07    .55615E-04
   5  Prefactor     .10000E-03    33.713        .13593E-06** at limit **
   6  Prefactor     .10000E-03    14.198       -.69539E-06** at limit **
   7  Prefactor     4.5151        3.8908        .35409E-06   -.13938E-04
   8  Prefactor     .10000E-03    2.7053       -.42638E-07** at limit **
   9  Prefactor     .10000E-03    14.596       -.39485E-06** at limit **
  10  Prefactor     29.898        27.347       -.31701E-06    .28291E-04
  11  Prefactor     .10000E-03    30.275       -.71785E-06** at limit **
  12  Prefactor     1.7843        52.010        .32723E-05    .11501E-03
  13  norm          1.9683        .39651       -.77787E-07    .23489E-03
  14  Prefactor     .44373        5.6750       -.77754E-06   -.11080E-03
  15  Prefactor     1.6976        16.493        .12491E-04   -.17802E-03
  16  Prefactor     .10000E-03    4.2049       -.29615E-08** at limit **
  17  Prefactor     .10000E-03    26.363       -.56592E-06** at limit **
  18  norm          .10000E-03    7.4336        .32530E-06** at limit **
  19  norm          .10000E-03    25.491       -.38055E-06** at limit **
  20  Prefactor     2.1673        1.8952       -.57077E-07    .46110E-04
  21  Prefactor     .10000E-03    23.408        .12158E-06** at limit **
  22  Prefactor     16.624        13.278        .22177E-07    .29445E-04
  23  norm          .10000E-03    1.4675       -.15428E-06** at limit **
  24  Prefactor     6.3016        7.6770        .12185E-07    .11958E-04
  25  Prefactor     5.9689        3.6878        .40552E-07    .41737E-04
  26  Prefactor     .10000E-03    19.004        .11803E-05** at limit **
  27  norm          .39002        .57614        .29192E-06    .18918E-02
  28  norm          .10000E-03    4.4065        .55526E-06** at limit **
  29  Prefactor     20.141        22.975       -.18726E-07    .86446E-06
  30  Prefactor     4.5519        47.397       -.10701E-04   -.69930E-04
  31  Normalizat    1.0481        .16751       -.58871E-06    .32218E-03
  32  Prefactor     .73104        .19157        .47414E-06    .19341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.48805
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.4854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8983
  Prefactor  = 0.0001
  Prefactor  = 1.78432
  norm       = 1.96825
  Prefactor  = 0.44373
  Prefactor  = 1.69761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.16731
  Prefactor  = 0.0001
  Prefactor  = 16.6239
  norm       = 0.0001
  Prefactor  = 6.30165
  Prefactor  = 5.96889
  Prefactor  = 0.0001
  norm       = 0.39002
  norm       = 0.0001
  Prefactor  = 20.1406
  Prefactor  = 4.55187
  Normalizat = 1.04812
  Prefactor  = 0.731037
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.190     FROM HESSE     STATUS=OK           665 CALLS     5070 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4880        3.4192        .14609E-03   -1.5392    
   2  Prefactor     .10000E-03    16.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.9776        .24657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4854        6.9221        .17158E-03   -1.5240    
   5  Prefactor     .10000E-03    33.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5151        3.8899        .61490E-03   -1.5283    
   8  Prefactor     .10000E-03    2.7404        .11291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.898        27.345        .73275E-04   -1.4614    
  11  Prefactor     .10000E-03    30.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7843        39.495        .31261E-03   -1.5441    
  13  norm          1.9683        .39759        .18914E-04   -1.5427    
  14  Prefactor     .44373        8.6040        .22129E-02   -1.5575    
  15  Prefactor     1.6976        16.540        .16146E-02   -1.5447    
  16  Prefactor     .10000E-03    4.2063        .14086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.4968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    25.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1673        1.8719        .86346E-04   -1.5414    
  21  Prefactor     .10000E-03    23.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.624        13.266        .98238E-04   -1.4892    
  23  norm          .10000E-03    2.6748        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.3016        7.6717        .15988E-03   -1.5206    
  25  Prefactor     5.9689        3.6863        .10283E-03   -1.5219    
  26  Prefactor     .10000E-03    19.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .39002        .53174        .63064E-03   -1.5583    
  28  norm          .10000E-03    4.4217        .14437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     20.141        22.989        .89251E-04   -1.4810    
  30  Prefactor     4.5519        47.347        .18937E-03   -1.5281    
  31  Normalizat    1.0481        .19172        .20840E-03   -.91435    
  32  Prefactor     .73104        .21968        .29333E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10562e-08
Minuit parameter uncertainties:
  1  3.41943
  2  1.70488e-06
  3  0.000120418
  4  6.92307
  5  3.09446e-05
  6  3.13633e-05
  7  3.89012
  8  6.57972e-06
  9  2.13436e-05
  10  27.3565
  11  4.74212e-05
  12  16.8016
  13  0.397595
  14  3.90806
  15  10.6013
  16  2.14138e-06
  17  2.86715e-05
  18  1.08309e-05
  19  1.72755e-05
  20  1.87195
  21  7.03512e-06
  22  13.2685
  23  1.4308e-05
  24  7.67287
  25  3.68645
  26  4.49065e-05
  27  0.531745
  28  6.04076e-05
  29  22.9992
  30  29.3908
  31  0.191843
  32  0.219941
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.968e+00  3.976e-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:  7.310e-01  2.199e-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.048e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 138.83
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.04e-07 +/- 4.13e-08
Energy Flux (Fixed Index): 2.76e-04 +/- 5.58e-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) = 4947.17292968
delta logL = 0.0172116510394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4947.17080097
delta logL = 0.0193403620769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9496       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7666       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73467       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=   4947.171     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9496        .50377        .42389E-02   -.50307E-03
   2  alpha         1.7666        .19713        .96751E-01    .13026E-04
   3  Normalizat    1.0424        .16074        .41100E-01   -.13795E-04
   4  Prefactor     .73465        .19044        .66138E-01    .15721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94962
  alpha      = 1.76662
  Normalizat = 1.04236
  Prefactor  = 0.734651
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.171     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9496        .39887        .18713E-04   -1.5429    
   2  alpha         1.7666        .15862        .42082E-03   -.29773    
   3  Normalizat    1.0424        .18479        .20883E-03   -.91624    
   4  Prefactor     .73465        .21886        .29261E-03   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17656e-12
Minuit parameter uncertainties:
  1  0.398873
  2  0.15874
  3  0.184904
  4  0.219113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495455': 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) = 4947.17080095
delta logL = 0.0193403830599

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.950e+00  3.989e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.767e+00  1.587e-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:  7.347e-01  2.191e-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.042e+00  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 138.43
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.77 +/- 0.16
Photon Flux (Free Index): 2.10e-07 +/- 5.13e-08
Energy Flux (Free Index): 2.60e-04 +/- 9.61e-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/495455/cmap_HighResolution_465609601_465868801_4FGL_J1104.4+3812_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-07', energy_flux2='2.60e-04', photon_flux_error='4.13e-08', dlogl='1.93e-02', energy_flux='2.76e-04', photon_flux2='2.10e-07', job_status='DONE', time_completed='2021-09-03 07:06:00.305201', photon_index_error2='0.16', photon_index2='1.77', ts='138.83', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='9.61e-05', EG='1.05', time_epoch_completed='1630677960.31', return_code='0', job_id='495455', GAL2='0.73', EG2='1.04', return_code2='0', energy_flux_error='5.58e-05', photon_flux_error2='5.13e-08', ts2='138.43', photon_index='1.74' WHERE bin_id='873' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 495455: <4FGL_J1104.4+3812_daily_bin873> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin873> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:51:27 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:51:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:51:59 2021
Terminated at Fri Sep  3 07:06:01 2021
Results reported at Fri Sep  3 07:06:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin873 166.119 38.207 465609601 465868801 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 :                                   771.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            874 sec.

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

