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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin1156
RA = 166.119, Dec = 38.207
tmin = 538963201, tmax = 539222401
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='497058', job_status='RUN', time_executed='2021-09-03 07:00:38.889615', time_epoch_executed='1630677638.89' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497058/ft1_4FGL_J1104.4+3812_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497058/ft2_4FGL_J1104.4+3812_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497058/ft1_4FGL_J1104.4+3812_daily_bin1156.fits outfile=/scratch/kocevski/497058/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin1156.fits ra=166.119 dec=38.207 rad=12.0 tmin=538963201.0 tmax=539222401.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 4.33
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497058/ft1_filtered_4FGL_J1104.4+3812_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/497058/ft2_4FGL_J1104.4+3812_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/497058/ltcube_538963201_539222401_4FGL_J1104.4+3812_daily_bin1156.fits outfile=/scratch/kocevski/497058/expmap_538963201_539222401_4FGL_J1104.4+3812_daily_bin1156.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/497058/ltcube_538963201_539222401_4FGL_J1104.4+3812_daily_bin1156.fits
.....................!
real 194.21
user 185.34
sys 4.51

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/497058/ft1_filtered_4FGL_J1104.4+3812_daily_bin1156.fits scfile=/scratch/kocevski/497058/ft2_4FGL_J1104.4+3812_daily_bin1156.fits outfile=/scratch/kocevski/497058/cmap_538963201_539222401_4FGL_J1104.4+3812_daily_bin1156.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497058/ft1_filtered_4FGL_J1104.4+3812_daily_bin1156.fits scfile=/scratch/kocevski/497058/ft2_4FGL_J1104.4+3812_daily_bin1156.fits outfile=/scratch/kocevski/497058/cmap_HighResolution_538963201_539222401_4FGL_J1104.4+3812_daily_bin1156.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=166.119 yref=38.207 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0417       1.0000         .10000E-03   10000.    
     4 'norm      '    20.983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3525       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1154       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12807E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.883       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.023       1.0000         .10000E-03   10000.    
    19 'norm      '    120.48       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3734       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.247       1.0000         .10000E-03   10000.    
    23 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12496E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    14.884       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    170.18       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90890       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77712       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=   2900.790     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4343 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4675        .24635E-06** at limit **
   2  Prefactor     .10000E-03    134.60       -.10164E-05** at limit **
   3  Prefactor     8.0454        6.9245        .41983E-06    .44880E-04
   4  norm          20.988        15.217        .47552E-06    .60303E-04
   5  Prefactor     7.4754        187.72       -.39561E-06    .16069E-04
   6  Prefactor     .10000E-03    15.070       -.53324E-07** at limit **
   7  Prefactor     8.1133        6.1922        .12386E-06    .35802E-04
   8  Prefactor     .10000E-03    2.5402       -.59364E-07** at limit **
   9  Prefactor     22.512        37.021        .90339E-08    .33457E-05
  10  Prefactor     .10000E-03    11.224       -.49485E-07** at limit **
  11  Prefactor     .10000E-03    297.80       -.29858E-05** at limit **
  12  Prefactor     .10000E-03    9.5191       -.36793E-06** at limit **
  13  norm          3.9348        .77671        .20501E-07    .10327E-03
  14  Prefactor     .10000E-03    1.1374       -.10746E-06** at limit **
  15  Prefactor     .10000E-03    18.864       -.13927E-06** at limit **
  16  Prefactor     19.884        22.566        .20427E-07    .45566E-05
  17  Prefactor     .10000E-03    64.071       -.21738E-06** at limit **
  18  norm          20.026        23.706        .34011E-06    .23996E-04
  19  norm          120.55        137.32        .28291E-06    .16069E-04
  20  Prefactor     3.3758        3.3289        .16228E-06    .10598E-03
  21  Prefactor     .10000E-03    40.918       -.51873E-07** at limit **
  22  Prefactor     48.238        32.251        .94000E-06    .96875E-04
  23  norm          .10000E-03    3.2979       -.74515E-06** at limit **
  24  Prefactor     .10000E-03    16.943       -.49928E-06** at limit **
  25  Prefactor     .10000E-03    10.826       -.58600E-06** at limit **
  26  Prefactor     .10000E-03    25.059        .18159E-06** at limit **
  27  norm          .10000E-03    1.9071        .22137E-05** at limit **
  28  norm          14.881        14.663       -.75550E-06   -.24648E-03
  29  Prefactor     .10000E-03    19.640       -.17162E-06** at limit **
  30  Prefactor     170.26        104.44       -.47194E-05   -.34320E-03
  31  Normalizat    .90860        .25187       -.23086E-05   -.12722E-03
  32  Prefactor     .77720        .28805        .23974E-05   -.16221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.04537
  norm       = 20.9878
  Prefactor  = 7.4754
  Prefactor  = 0.0001
  Prefactor  = 8.11326
  Prefactor  = 0.0001
  Prefactor  = 22.5116
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.9348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8844
  Prefactor  = 0.0001
  norm       = 20.0264
  norm       = 120.545
  Prefactor  = 3.37578
  Prefactor  = 0.0001
  Prefactor  = 48.2383
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 14.8814
  Prefactor  = 0.0001
  Prefactor  = 170.259
  Normalizat = 0.908599
  Prefactor  = 0.7772
 **********
 **   18 **HESSE 
 **********

 FCN=   2900.790     FROM HESSE     STATUS=OK           649 CALLS     4992 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5241        .12211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    137.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0454        6.9089        .12205E-03   -1.5141    
   4  norm          20.988        15.213        .87440E-04   -1.4791    
   5  Prefactor     7.4754        182.95        .14792E-03   -1.5161    
   6  Prefactor     .10000E-03    15.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1133        6.1989        .11033E-03   -1.5138    
   8  Prefactor     .10000E-03    2.5515        .83818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.512        37.014        .84424E-04   -1.4759    
  10  Prefactor     .10000E-03    11.226        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    298.87        .20591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.6005        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9348        .77977        .19897E-04   -1.5311    
  14  Prefactor     .10000E-03    1.1421        .56087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.884        22.611        .89823E-04   -1.4816    
  17  Prefactor     .10000E-03    64.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.026        23.697        .89510E-04   -1.4813    
  19  norm          120.55        137.25        .18332E-03   -1.3508    
  20  Prefactor     3.3758        3.2817        .92261E-04   -1.5340    
  21  Prefactor     .10000E-03    40.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.238        30.966        .57729E-04   -1.4318    
  23  norm          .10000E-03    5.4979        .18337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    75.664        .41000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.999        .17285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    25.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.4658        .11807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          14.881        14.710        .51909E-03   -1.4936    
  29  Prefactor     .10000E-03    19.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     170.26        111.77        .15463E-03   -1.3091    
  31  Normalizat    .90860        .29387        .24001E-03   -.96159    
  32  Prefactor     .77720        .33246        .30722E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71541e-09
Minuit parameter uncertainties:
  1  6.50198e-06
  2  4.09879e-05
  3  6.90957
  4  15.2161
  5  74.218
  6  4.39217e-06
  7  6.19943
  8  2.18281e-06
  9  37.0513
  10  1.06503e-05
  11  0.00117672
  12  1.35169e-05
  13  0.779776
  14  1.01279e-06
  15  4.72897e-06
  16  22.6204
  17  0.000105017
  18  23.7083
  19  137.614
  20  3.28189
  21  3.09842e-05
  22  30.9761
  23  3.79273e-05
  24  0.000460328
  25  2.53697e-05
  26  9.85885e-06
  27  0.000130911
  28  14.714
  29  1.42247e-05
  30  111.909
  31  0.294388
  32  0.333325
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.935e+00  7.798e-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.772e-01  3.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  9.086e-01  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 166.47
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 4.09e-07 +/- 8.10e-08
Energy Flux (Fixed Index): 5.53e-04 +/- 1.10e-04

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) = 2900.28598838
delta logL = 0.504451778038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2900.26518251
delta logL = 0.525257644962

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0131        .82007        .47216E-02   -.10476E-02
   2  alpha         1.5838        .14854        .73301E-01    .32903E-05
   3  Normalizat    .95913        .23777        .45653E-01    .43493E-05
   4  Prefactor     .74551        .28041        .70918E-01    .10196E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01306
  alpha      = 1.5838
  Normalizat = 0.959127
  Prefactor  = 0.745513
 **********
 **   18 **HESSE 
 **********

 FCN=   2900.265     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0131        .80692        .20859E-04   -1.5307    
   2  alpha         1.5838        .14762        .32175E-03   -.37523    
   3  Normalizat    .95913        .28194        .23531E-03   -.94413    
   4  Prefactor     .74551        .33088        .31384E-03   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66759e-11
Minuit parameter uncertainties:
  1  0.806924
  2  0.147717
  3  0.282375
  4  0.331765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497058': 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) = 2900.26518251
delta logL = 0.525257647793

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  4.013e+00  8.069e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.584e+00  1.477e-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.455e-01  3.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  9.591e-01  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 167.75
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.58 +/- 0.15
Photon Flux (Free Index): 3.54e-07 +/- 8.91e-08
Energy Flux (Free Index): 7.61e-04 +/- 2.83e-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/497058/cmap_HighResolution_538963201_539222401_4FGL_J1104.4+3812_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.09e-07', energy_flux2='7.61e-04', photon_flux_error='8.10e-08', dlogl='5.25e-01', energy_flux='5.53e-04', photon_flux2='3.54e-07', job_status='DONE', time_completed='2021-09-03 07:11:18.532540', photon_index_error2='0.15', photon_index2='1.58', ts='166.47', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.83e-04', EG='0.91', time_epoch_completed='1630678278.53', return_code='0', job_id='497058', GAL2='0.75', EG2='0.96', return_code2='0', energy_flux_error='1.10e-04', photon_flux_error2='8.91e-08', ts2='167.75', photon_index='1.74' WHERE bin_id='1156' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:11:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 497058: <4FGL_J1104.4+3812_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin1156> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 06:56:48 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:58:42 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:58:42 2021
Terminated at Fri Sep  3 07:11:19 2021
Results reported at Fri Sep  3 07:11:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin1156 166.119 38.207 538963201 539222401 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 :                                   598.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            871 sec.

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

