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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin910
RA = 166.119, Dec = 38.207
tmin = 475200001, tmax = 475459201
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='495514', job_status='RUN', time_executed='2021-09-03 06:52:57.646052', time_epoch_executed='1630677177.65' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495514/ft1_4FGL_J1104.4+3812_daily_bin910.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495514/ft2_4FGL_J1104.4+3812_daily_bin910.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495514/ft1_4FGL_J1104.4+3812_daily_bin910.fits outfile=/scratch/kocevski/495514/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin910.fits ra=166.119 dec=38.207 rad=12.0 tmin=475200001.0 tmax=475459201.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.56
user 3.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495514/ft1_filtered_4FGL_J1104.4+3812_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/495514/ft2_4FGL_J1104.4+3812_daily_bin910.fits sctable="SC_DATA" expcube=/scratch/kocevski/495514/ltcube_475200001_475459201_4FGL_J1104.4+3812_daily_bin910.fits outfile=/scratch/kocevski/495514/expmap_475200001_475459201_4FGL_J1104.4+3812_daily_bin910.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/495514/ltcube_475200001_475459201_4FGL_J1104.4+3812_daily_bin910.fits
.....................!
real 192.48
user 187.81
sys 4.27

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/495514/ft1_filtered_4FGL_J1104.4+3812_daily_bin910.fits scfile=/scratch/kocevski/495514/ft2_4FGL_J1104.4+3812_daily_bin910.fits outfile=/scratch/kocevski/495514/cmap_475200001_475459201_4FGL_J1104.4+3812_daily_bin910.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495514/ft1_filtered_4FGL_J1104.4+3812_daily_bin910.fits scfile=/scratch/kocevski/495514/ft2_4FGL_J1104.4+3812_daily_bin910.fits outfile=/scratch/kocevski/495514/cmap_HighResolution_475200001_475459201_4FGL_J1104.4+3812_daily_bin910.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44578E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6955       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1839       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11434E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.814       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5284       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0428       1.0000         .10000E-03   10000.    
    19 'norm      '    52.606       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.225       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .83492E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.8897       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    88.706       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85675       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0475       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=   6020.625     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     3783 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37505E-02    3.1092       -.14790E-05    .12181E-02
   2  Prefactor     29.292        33.421        .40597E-06    .89689E-04
   3  Prefactor     3.6964        4.3002       -.44011E-08    .50742E-03
   4  norm          4.1893        11.278        .23943E-06    .18466E-03
   5  Prefactor     .10000E-03    27.644        .11082E-06** at limit **
   6  Prefactor     .10000E-03    9.4408        .72537E-07** at limit **
   7  Prefactor     1.7516        4.0951        .84204E-06    .71107E-03
   8  Prefactor     .10000E-03    1.1120        .41290E-07** at limit **
   9  Prefactor     .10000E-03    18.197       -.26527E-06** at limit **
  10  Prefactor     .10000E-03    7.2431       -.61468E-07** at limit **
  11  Prefactor     .10000E-03    59.146       -.22550E-05** at limit **
  12  Prefactor     34.817        12.867        .32939E-07   -.40761E-04
  13  norm          2.5284        .41092       -.51705E-08   -.11492E-02
  14  Prefactor     .10000E-03    1.1402        .40877E-07** at limit **
  15  Prefactor     .10000E-03    5.2428        .14459E-06** at limit **
  16  Prefactor     .10000E-03    4.2797        .37120E-07** at limit **
  17  Prefactor     .10000E-03    68.272        .16007E-05** at limit **
  18  norm          6.0432        7.9944       -.20714E-06   -.14681E-03
  19  norm          52.604        51.931        .17260E-06    .11873E-04
  20  Prefactor     .10000E-03    .90574        .58630E-06** at limit **
  21  Prefactor     30.189        31.191       -.17335E-05   -.29202E-03
  22  Prefactor     .10021E-03    8.4685        .21572E-05** at limit **
  23  norm          7.8857        3.1180       -.17497E-06   -.14717E-02
  24  Prefactor     .10000E-03    4.8698       -.63893E-07** at limit **
  25  Prefactor     .10001E-03    2.5483       -.23999E-06** at limit **
  26  Prefactor     88.740        40.072       -.13482E-05   -.46669E-03
  27  norm          .10000E-03    .33201       -.22796E-06** at limit **
  28  norm          .10000E-03    3.3073       -.58743E-07** at limit **
  29  Prefactor     .10000E-03    9.3917        .72128E-07** at limit **
  30  Prefactor     .10000E-03    26.093        .38575E-06** at limit **
  31  Normalizat    .85669        .16883       -.89113E-06   -.30566E-03
  32  Prefactor     1.0474        .19822        .14656E-06   -.26469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00375047
  Prefactor  = 29.2922
  Prefactor  = 3.69641
  norm       = 4.18925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 34.8168
  norm       = 2.52837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.04317
  norm       = 52.6041
  Prefactor  = 0.0001
  Prefactor  = 30.1886
  Prefactor  = 0.000100213
  norm       = 7.88572
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 88.7398
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.856689
  Prefactor  = 1.04741
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.625     FROM HESSE     STATUS=OK           655 CALLS     4438 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37505E-02    5.0527        .35077E-01   -1.5696    
   2  Prefactor     29.292        33.416        .74016E-04   -1.4625    
   3  Prefactor     3.6964        4.4666        .15293E-03   -1.5323    
   4  norm          4.1893        11.108        .98516E-03   -1.5299    
   5  Prefactor     .10000E-03    27.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7516        4.1672        .11277E-02   -1.5443    
   8  Prefactor     .10000E-03    1.1138        .79903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.817        12.853        .67918E-04   -1.4527    
  13  norm          2.5284        .41130        .19382E-04   -1.5390    
  14  Prefactor     .10000E-03    1.1635        .80798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2596        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2816        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    68.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0432        7.9935        .16333E-03   -1.5216    
  19  norm          52.604        51.933        .55298E-04   -1.4256    
  20  Prefactor     .10000E-03    1.3183        .13483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.189        32.246        .72878E-04   -1.4609    
  22  Prefactor     .10021E-03    65.500        .37434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8857        3.1260        .78893E-04   -1.5146    
  24  Prefactor     .10000E-03    4.8854        .16716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    27.077        .23324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     88.740        40.138        .21330E-03   -1.3821    
  27  norm          .10000E-03    .33017        .85686E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.3183        .13780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.4099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    26.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .85669        .19817        .24502E-03   -.97999    
  32  Prefactor     1.0474        .23495        .27541E-03   -.91165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07751e-09
Minuit parameter uncertainties:
  1  0.271646
  2  33.4376
  3  4.46705
  4  11.1131
  5  3.05794e-05
  6  1.12133e-05
  7  4.16786
  8  2.29955e-06
  9  5.04936e-05
  10  7.33626e-06
  11  0.00079081
  12  12.8543
  13  0.411305
  14  1.77799e-06
  15  1.65764e-05
  16  4.07953e-06
  17  0.000611717
  18  7.99492
  19  51.9779
  20  4.61293e-06
  21  32.2646
  22  0.00748456
  23  3.12606
  24  1.13154e-05
  25  0.000976736
  26  40.1505
  27  1.02955e-06
  28  2.40026e-06
  29  1.24516e-05
  30  0.000131475
  31  0.198335
  32  0.23518
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.528e+00  4.113e-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.047e+00  2.352e-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.567e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 233.09
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.63e-07 +/- 4.27e-08
Energy Flux (Fixed Index): 3.55e-04 +/- 5.78e-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) = 6019.84988835
delta logL = 0.775536422741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6019.83341808
delta logL = 0.792006692089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6091       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5884       1.0000          .0000       5.0000    
     3 'Normalizat'    .88383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0319       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=   6019.833     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6091        .45188        .45765E-02   -.56738E-03
   2  alpha         1.5884        .11913        .83910E-01    .11121E-03
   3  Normalizat    .88383        .16042        .44695E-01    .64258E-04
   4  Prefactor     1.0319        .19709        .62768E-01   -.27324E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60912
  alpha      = 1.58839
  Normalizat = 0.883833
  Prefactor  = 1.03187
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.833     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6091        .43457        .20207E-04   -1.5385    
   2  alpha         1.5884        .11568        .36768E-03   -.37325    
   3  Normalizat    .88383        .19050        .24211E-03   -.97031    
   4  Prefactor     1.0319        .23386        .27760E-03   -.91674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29113e-11
Minuit parameter uncertainties:
  1  0.434575
  2  0.115727
  3  0.190646
  4  0.234092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495514': 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) = 6019.83341808
delta logL = 0.792006692348

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.609e+00  4.346e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.588e+00  1.157e-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.032e+00  2.341e-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.838e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 233.86
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.59 +/- 0.12
Photon Flux (Free Index): 2.31e-07 +/- 4.58e-08
Energy Flux (Free Index): 4.90e-04 +/- 1.50e-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/495514/cmap_HighResolution_475200001_475459201_4FGL_J1104.4+3812_daily_bin910.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-07', energy_flux2='4.90e-04', photon_flux_error='4.27e-08', dlogl='7.92e-01', energy_flux='3.55e-04', photon_flux2='2.31e-07', job_status='DONE', time_completed='2021-09-03 07:06:46.599977', photon_index_error2='0.12', photon_index2='1.59', ts='233.09', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.50e-04', EG='0.86', time_epoch_completed='1630678006.6', return_code='0', job_id='495514', GAL2='1.03', EG2='0.88', return_code2='0', energy_flux_error='5.78e-05', photon_flux_error2='4.58e-08', ts2='233.86', photon_index='1.74' WHERE bin_id='910' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 495514: <4FGL_J1104.4+3812_daily_bin910> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin910> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:51:31 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:52:12 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:52:12 2021
Terminated at Fri Sep  3 07:06:47 2021
Results reported at Fri Sep  3 07:06:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin910 166.119 38.207 475200001 475459201 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 :                                   821.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            916 sec.

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

