/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 62 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin127
RA = 166.119, Dec = 38.207
tmin = 272246401, tmax = 272505601
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='491205', job_status='RUN', time_executed='2021-09-03 06:40:23.769304', time_epoch_executed='1630676423.77' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491205/ft1_4FGL_J1104.4+3812_daily_bin127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491205/ft2_4FGL_J1104.4+3812_daily_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491205/ft1_4FGL_J1104.4+3812_daily_bin127.fits outfile=/scratch/kocevski/491205/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin127.fits ra=166.119 dec=38.207 rad=12.0 tmin=272246401.0 tmax=272505601.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.34
user 2.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491205/ft1_filtered_4FGL_J1104.4+3812_daily_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/491205/ft2_4FGL_J1104.4+3812_daily_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/491205/ltcube_272246401_272505601_4FGL_J1104.4+3812_daily_bin127.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/491205/ft2_4FGL_J1104.4+3812_daily_bin127.fits
.....................!
real 16.98
user 16.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491205/ft1_filtered_4FGL_J1104.4+3812_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/491205/ft2_4FGL_J1104.4+3812_daily_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/491205/ltcube_272246401_272505601_4FGL_J1104.4+3812_daily_bin127.fits outfile=/scratch/kocevski/491205/expmap_272246401_272505601_4FGL_J1104.4+3812_daily_bin127.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/491205/ltcube_272246401_272505601_4FGL_J1104.4+3812_daily_bin127.fits
.....................!
real 192.06
user 187.28
sys 4.00

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/491205/ft1_filtered_4FGL_J1104.4+3812_daily_bin127.fits scfile=/scratch/kocevski/491205/ft2_4FGL_J1104.4+3812_daily_bin127.fits outfile=/scratch/kocevski/491205/cmap_272246401_272505601_4FGL_J1104.4+3812_daily_bin127.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=166.119 yref=38.207 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491205/ft1_filtered_4FGL_J1104.4+3812_daily_bin127.fits scfile=/scratch/kocevski/491205/ft2_4FGL_J1104.4+3812_daily_bin127.fits outfile=/scratch/kocevski/491205/cmap_HighResolution_272246401_272505601_4FGL_J1104.4+3812_daily_bin127.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7016       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5422       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    119.83       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5296       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1431       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3956       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39179E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    41.606       1.0000         .10000E-03   10000.    
    19 'norm      '    80.393       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11779E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2623       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.3347       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    38.944       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88575       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0121       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=   4803.393     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4316 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7019        5.0645       -.13271E-05   -.80832E-03
   2  Prefactor     6.8153        21.560        .32989E-05   -.37103E-04
   3  Prefactor     2.5428        4.3835        .39841E-06   -.29947E-03
   4  norm          .10000E-03    3.6555       -.64795E-08** at limit **
   5  Prefactor     119.85        82.336        .16316E-04    .44338E-05
   6  Prefactor     21.738        20.782        .66303E-06   -.42565E-05
   7  Prefactor     1.5297        3.6527        .22052E-05   -.63230E-03
   8  Prefactor     .10000E-03    2.6026       -.86029E-08** at limit **
   9  Prefactor     .10000E-03    27.555        .12042E-05** at limit **
  10  Prefactor     .10000E-03    18.481       -.47077E-05** at limit **
  11  Prefactor     .10000E-03    39.933        .71743E-06** at limit **
  12  Prefactor     .10000E-03    5.5390       -.25484E-05** at limit **
  13  norm          1.1432        .35878        .23805E-07    .22693E-03
  14  Prefactor     1.3971        3.4406        .78489E-06   -.70267E-03
  15  Prefactor     .10000E-03    20.985       -.78555E-05** at limit **
  16  Prefactor     22.541        20.103       -.89996E-06    .29492E-04
  17  Prefactor     .10001E-03    200.78       -.12898E-03** at limit **
  18  norm          41.608        20.177        .10877E-05    .41331E-05
  19  norm          80.351        78.301       -.43089E-04    .37467E-04
  20  Prefactor     .10001E-03    1.3492        .60444E-06** at limit **
  21  Prefactor     .10000E-03    32.992        .84050E-05** at limit **
  22  Prefactor     .10000E-03    7.7652       -.51179E-06** at limit **
  23  norm          3.2634        2.8834        .11724E-06   -.78915E-03
  24  Prefactor     .10000E-03    7.4335        .10316E-05** at limit **
  25  Prefactor     .10000E-03    4.8535        .75669E-06** at limit **
  26  Prefactor     .10000E-03    14.903        .72532E-05** at limit **
  27  norm          3.3347        1.2795        .39745E-08   -.31867E-03
  28  norm          .10000E-03    3.1395       -.14129E-07** at limit **
  29  Prefactor     .10000E-03    8.3789       -.24365E-05** at limit **
  30  Prefactor     38.945        41.780        .15141E-05   -.89304E-05
  31  Normalizat    .88561        .18662       -.23447E-05    .63640E-04
  32  Prefactor     1.0121        .21597        .68275E-07   -.36818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70193
  Prefactor  = 6.81527
  Prefactor  = 2.54276
  norm       = 0.0001
  Prefactor  = 119.851
  Prefactor  = 21.7379
  Prefactor  = 1.52965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14316
  Prefactor  = 1.39714
  Prefactor  = 0.0001
  Prefactor  = 22.5405
  Prefactor  = 0.000100008
  norm       = 41.6078
  norm       = 80.3506
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.33474
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.9453
  Normalizat = 0.885612
  Prefactor  = 1.01208
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.393     FROM HESSE     STATUS=OK           655 CALLS     4971 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7019        4.8973        .21336E-03   -1.5447    
   2  Prefactor     6.8153        21.543        .15374E-03   -1.5186    
   3  Prefactor     2.5428        4.2316        .15300E-03   -1.5389    
   4  norm          .10000E-03    3.6659        .12938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     119.85        82.325        .36762E-04   -1.3514    
   6  Prefactor     21.738        20.776        .85911E-04   -1.4775    
   7  Prefactor     1.5297        3.6132        .19330E-03   -1.5461    
   8  Prefactor     .10000E-03    2.6286        .10909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5483        .15920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1432        .36029        .21681E-04   -1.5494    
  14  Prefactor     1.3971        3.4252        .18786E-03   -1.5472    
  15  Prefactor     .10000E-03    21.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.541        20.169        .84362E-04   -1.4758    
  17  Prefactor     .10001E-03    200.37        .21273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          41.608        20.142        .62147E-04   -1.4417    
  19  norm          80.351        78.243        .22397E-03   -1.3913    
  20  Prefactor     .10001E-03    6.2251        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2634        2.8302        .10365E-03   -1.5347    
  24  Prefactor     .10000E-03    7.4645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.9531        .14895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.3347        1.2796        .46181E-04   -1.5343    
  28  norm          .10000E-03    3.1397        .11993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.3857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     38.945        41.810        .64228E-04   -1.4459    
  31  Normalizat    .88561        .21898        .23757E-03   -.96968    
  32  Prefactor     1.0121        .25472        .27527E-03   -.92328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04373e-09
Minuit parameter uncertainties:
  1  4.89846
  2  21.5676
  3  4.23205
  4  9.10408e-06
  5  82.4034
  6  20.7825
  7  3.61369
  8  5.21775e-06
  9  6.93221e-05
  10  8.14508e-06
  11  2.08934e-05
  12  6.26141e-06
  13  0.360291
  14  3.42567
  15  2.04087e-05
  16  20.1747
  17  0.00248189
  18  20.1453
  19  78.343
  20  0.000553761
  21  3.84711e-05
  22  4.99746e-06
  23  2.83034
  24  8.57453e-06
  25  2.56184e-06
  26  4.26103e-06
  27  1.27964
  28  2.29978e-07
  29  4.18755e-06
  30  41.8411
  31  0.219202
  32  0.255027
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.143e+00  3.603e-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.012e+00  2.550e-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.856e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.10
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 3.74e-08
Energy Flux (Fixed Index): 1.61e-04 +/- 5.06e-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) = 4802.98551406
delta logL = 0.4078757304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4802.95257354
delta logL = 0.440816243575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0571       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9388       1.0000          .0000       5.0000    
     3 'Normalizat'    .86598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0223       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=   4802.953     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0571        4.7285        .45324E-02   -.14809E-04
   2  alpha         1.9389        3.4481        .12286        .36133E-04
   3  Normalizat    .86588        .22601        .44465E-01    .10504E-04
   4  Prefactor     1.0221        .22806        .61901E-01    .78424E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05712
  alpha      = 1.93886
  Normalizat = 0.865882
  Prefactor  = 1.02215
 **********
 **   18 **HESSE 
 **********

 FCN=   4802.953     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0571        .34291        .20021E-04   -1.5502    
   2  alpha         1.9389        .22206        .52844E-02   -.22639    
   3  Normalizat    .86588        .20512        .23967E-03   -.97670    
   4  Prefactor     1.0221        .25205        .27375E-03   -.91995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7907e-13
Minuit parameter uncertainties:
  1  0.342912
  2  0.222369
  3  0.2053
  4  0.252345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491205': 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) = 4802.95257085
delta logL = 0.440818942793

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.057e+00  3.429e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.939e+00  2.224e-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.022e+00  2.523e-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.659e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.13
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.94 +/- 0.22
Photon Flux (Free Index): 1.44e-07 +/- 4.94e-08
Energy Flux (Free Index): 1.12e-04 +/- 5.26e-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/491205/cmap_HighResolution_272246401_272505601_4FGL_J1104.4+3812_daily_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='1.12e-04', photon_flux_error='3.74e-08', dlogl='4.41e-01', energy_flux='1.61e-04', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-03 06:53:09.041024', photon_index_error2='0.22', photon_index2='1.94', ts='41.10', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='5.26e-05', EG='0.89', time_epoch_completed='1630677189.04', return_code='0', job_id='491205', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='5.06e-05', photon_flux_error2='4.94e-08', ts2='42.13', photon_index='1.74' WHERE bin_id='127' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:53:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 491205: <4FGL_J1104.4+3812_daily_bin127> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin127 166.119 38.207 272246401 272505601 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 :                                   757.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            951 sec.

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

