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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin993
RA = 166.119, Dec = 38.207
tmin = 496713601, tmax = 496972801
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='496795', job_status='RUN', time_executed='2021-09-03 06:58:31.725440', time_epoch_executed='1630677511.73' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496795/ft1_4FGL_J1104.4+3812_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496795/ft2_4FGL_J1104.4+3812_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496795/ft1_4FGL_J1104.4+3812_daily_bin993.fits outfile=/scratch/kocevski/496795/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin993.fits ra=166.119 dec=38.207 rad=12.0 tmin=496713601.0 tmax=496972801.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.26
user 4.70
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496795/ft2_4FGL_J1104.4+3812_daily_bin993.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/496795/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/496795/ft1_filtered_4FGL_J1104.4+3812_daily_bin993.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.58
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496795/ft1_filtered_4FGL_J1104.4+3812_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/496795/ft2_4FGL_J1104.4+3812_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/496795/ltcube_496713601_496972801_4FGL_J1104.4+3812_daily_bin993.fits outfile=/scratch/kocevski/496795/expmap_496713601_496972801_4FGL_J1104.4+3812_daily_bin993.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/496795/ltcube_496713601_496972801_4FGL_J1104.4+3812_daily_bin993.fits
.....................!
real 193.05
user 186.25
sys 5.57

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/496795/ft1_filtered_4FGL_J1104.4+3812_daily_bin993.fits scfile=/scratch/kocevski/496795/ft2_4FGL_J1104.4+3812_daily_bin993.fits outfile=/scratch/kocevski/496795/cmap_496713601_496972801_4FGL_J1104.4+3812_daily_bin993.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.86
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496795/ft1_filtered_4FGL_J1104.4+3812_daily_bin993.fits scfile=/scratch/kocevski/496795/ft2_4FGL_J1104.4+3812_daily_bin993.fits outfile=/scratch/kocevski/496795/cmap_HighResolution_496713601_496972801_4FGL_J1104.4+3812_daily_bin993.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.74
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.4914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.146       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.366       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11395E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    103.03       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98256E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9715       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.3037       1.0000         .10000E-03   10000.    
    28 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.2209       1.0000         .10000E-03   10000.    
    30 'Prefactor '    54.318       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .99293       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0206       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=   4357.334     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4393 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5811        .12542E-06** at limit **
   2  Prefactor     .10000E-03    12.717       -.15703E-07** at limit **
   3  Prefactor     .10000E-03    3.0130        .24962E-06** at limit **
   4  norm          9.4941        9.5780        .59513E-07   -.72311E-04
   5  Prefactor     12.147        44.459        .11575E-06   -.24805E-05
   6  Prefactor     18.399        44.468       -.22510E-05   -.53759E-04
   7  Prefactor     9.8950        5.4309        .10088E-07   -.12726E-03
   8  Prefactor     .10000E-03    12.181        .43223E-05** at limit **
   9  Prefactor     .10000E-03    37.444        .10000E-05** at limit **
  10  Prefactor     .10000E-03    13.958        .69478E-07** at limit **
  11  Prefactor     103.01        104.71        .17152E-07   -.26139E-04
  12  Prefactor     .10000E-03    3.3465        .11395E-08** at limit **
  13  norm          .28216        .27534        .25083E-07   -.57273E-04
  14  Prefactor     .11906E-01    1.6223       -.15268E-06    .28536E-03
  15  Prefactor     28.973        15.627       -.35214E-08   -.32249E-04
  16  Prefactor     .10000E-03    10.798       -.26507E-07** at limit **
  17  Prefactor     .10000E-03    39.622        .11097E-06** at limit **
  18  norm          .10000E-03    3.7864       -.51248E-08** at limit **
  19  norm          .10000E-03    36.685       -.11522E-06** at limit **
  20  Prefactor     .10000E-03    1.1653       -.41607E-07** at limit **
  21  Prefactor     .10000E-03    21.268       -.34757E-07** at limit **
  22  Prefactor     .10000E-03    8.4718        .25386E-08** at limit **
  23  norm          1.9662        3.2833        .31828E-06   -.26960E-04
  24  Prefactor     .10000E-03    5.6579        .11356E-07** at limit **
  25  Prefactor     .10000E-03    4.3543        .17188E-07** at limit **
  26  Prefactor     .10000E-03    120.58       -.95457E-06** at limit **
  27  norm          1.3024        1.0717        .11978E-07   -.38674E-04
  28  norm          .10000E-03    4.2780       -.21521E-06** at limit **
  29  Prefactor     8.2339        29.310        .38288E-06    .59679E-05
  30  Prefactor     54.287        59.918       -.28495E-06   -.51177E-04
  31  Normalizat    .99196        .19509       -.83951E-06   -.72393E-04
  32  Prefactor     1.0216        .22550        .62487E-06   -.90559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49407
  Prefactor  = 12.1475
  Prefactor  = 18.3987
  Prefactor  = 9.89498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.01
  Prefactor  = 0.0001
  norm       = 0.282161
  Prefactor  = 0.0119055
  Prefactor  = 28.9729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30238
  norm       = 0.0001
  Prefactor  = 8.23387
  Prefactor  = 54.287
  Normalizat = 0.991961
  Prefactor  = 1.02163
 **********
 **   18 **HESSE 
 **********

 FCN=   4357.334     FROM HESSE     STATUS=OK           659 CALLS     5052 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6208        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0599        .11184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.4941        9.5705        .13008E-03   -1.5092    
   5  Prefactor     12.147        44.462        .11494E-03   -1.5011    
   6  Prefactor     18.399        45.797        .93459E-04   -1.4850    
   7  Prefactor     9.8950        5.4317        .10762E-03   -1.5079    
   8  Prefactor     .10000E-03    12.424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     103.01        105.31        .39613E-04   -1.3675    
  12  Prefactor     .10000E-03    3.3477        .11793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .28216        .26350        .32428E-03   -1.5602    
  14  Prefactor     .11906E-01    2.8670        .30557E-01   -1.5686    
  15  Prefactor     28.973        15.599        .74437E-04   -1.4631    
  16  Prefactor     .10000E-03    10.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7915        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    36.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1753        .69470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9662        3.2509        .14332E-03   -1.5428    
  24  Prefactor     .10000E-03    5.6654        .15335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.4027        .13441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    121.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.3024        1.0752        .57163E-04   -1.5480    
  28  norm          .10000E-03    4.2765        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.2339        29.347        .13983E-03   -1.5134    
  30  Prefactor     54.287        59.715        .54424E-04   -1.4233    
  31  Normalizat    .99196        .23156        .22623E-03   -.93300    
  32  Prefactor     1.0216        .26703        .27336E-03   -.92012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40184e-10
Minuit parameter uncertainties:
  1  1.27419e-07
  2  8.73168e-06
  3  4.4088e-07
  4  9.57205
  5  44.5833
  6  45.8844
  7  5.43201
  8  4.19647e-05
  9  3.55954e-05
  10  1.21035e-05
  11  105.501
  12  8.40413e-07
  13  0.263499
  14  0.367966
  15  15.601
  16  8.38902e-06
  17  7.92342e-05
  18  3.94311e-07
  19  6.74877e-05
  20  1.27432e-06
  21  2.51176e-06
  22  1.51193e-06
  23  3.25115
  24  1.29549e-06
  25  1.20195e-06
  26  4.94786e-05
  27  1.07526
  28  4.27231e-06
  29  29.3988
  30  59.7809
  31  0.231798
  32  0.267374
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.822e-01  2.635e-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.022e+00  2.674e-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.920e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.93e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 3.96e-05 +/- 3.70e-05

TS (Fixed Index): 1.87
Ra Dec: 166.119 38.207
Photon Flux Upper Limit: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496795/likelihoodResults_496713601_496972801_4FGL_J1104.4+3812_daily_bin993.txt

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) = 4357.26246688
delta logL = 0.0717057310185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4357.26119704
delta logL = 0.0729755788552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27110       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9754       1.0000          .0000       5.0000    
     3 'Normalizat'    .98241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0273       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=   4357.261     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27109        6.2028        .64980E-02    .87391E-03
   2  alpha         1.9754        3.0550        .26213        .20033E-04
   3  Normalizat    .98239        .67588E-01    .45946E-01    .70481E-05
   4  Prefactor     1.0274        .74677E-01    .61641E-01    .74450E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.271085
  alpha      = 1.97541
  Normalizat = 0.982394
  Prefactor  = 1.02739
 **********
 **   18 **HESSE 
 **********

 FCN=   4357.261     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27109        .26419        .29708E-03   -1.5604    
   2  alpha         1.9754        .67245        .13203E-01   -.21141    
   3  Normalizat    .98239        .21624        .22711E-03   -.93623    
   4  Prefactor     1.0274        .26451        .27260E-03   -.91822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54514e-10
Minuit parameter uncertainties:
  1  0.264195
  2  0.68124
  3  0.216436
  4  0.264843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496795': 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) = 4357.26119701
delta logL = 0.0729756087239

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.711e-01  2.642e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.975e+00  6.812e-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.027e+00  2.648e-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.824e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.98 +/- 0.68
Photon Flux (Free Index): 3.90e-08 +/- 4.06e-08
Energy Flux (Free Index): 2.78e-05 +/- 3.76e-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/496795/cmap_HighResolution_496713601_496972801_4FGL_J1104.4+3812_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-04', comment='SUCCESS', photon_flux='2.93e-08', energy_flux2='2.78e-05', photon_flux_error='2.74e-08', dlogl='7.30e-02', energy_flux='3.96e-05', photon_flux2='3.90e-08', job_status='DONE', time_completed='2021-09-03 07:12:43.241763', photon_index_error2='0.68', photon_index2='1.98', ts='1.87', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='3.76e-05', EG='0.99', time_epoch_completed='1630678363.24', return_code='0', job_id='496795', GAL2='1.03', EG2='0.98', return_code2='0', energy_flux_error='3.70e-05', photon_flux_error2='4.06e-08', ts2='2.01', photon_index='1.74' WHERE bin_id='993' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:12:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 496795: <4FGL_J1104.4+3812_daily_bin993> in cluster <slac> Done

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

Your job looked like:

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

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

