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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin879
RA = 166.119, Dec = 38.207
tmin = 467164801, tmax = 467424001
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='495465', job_status='RUN', time_executed='2021-09-03 06:52:16.660767', time_epoch_executed='1630677136.66' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='879'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495465

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495465/ft1_4FGL_J1104.4+3812_daily_bin879.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495465/ft2_4FGL_J1104.4+3812_daily_bin879.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495465/ft1_4FGL_J1104.4+3812_daily_bin879.fits outfile=/scratch/kocevski/495465/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin879.fits ra=166.119 dec=38.207 rad=12.0 tmin=467164801.0 tmax=467424001.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.64
user 3.33
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495465/ft1_filtered_4FGL_J1104.4+3812_daily_bin879.fits evtable="EVENTS" scfile=/scratch/kocevski/495465/ft2_4FGL_J1104.4+3812_daily_bin879.fits sctable="SC_DATA" expcube=/scratch/kocevski/495465/ltcube_467164801_467424001_4FGL_J1104.4+3812_daily_bin879.fits outfile=/scratch/kocevski/495465/expmap_467164801_467424001_4FGL_J1104.4+3812_daily_bin879.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/495465/ltcube_467164801_467424001_4FGL_J1104.4+3812_daily_bin879.fits
.....................!
real 190.05
user 185.11
sys 4.55

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/495465/ft1_filtered_4FGL_J1104.4+3812_daily_bin879.fits scfile=/scratch/kocevski/495465/ft2_4FGL_J1104.4+3812_daily_bin879.fits outfile=/scratch/kocevski/495465/cmap_467164801_467424001_4FGL_J1104.4+3812_daily_bin879.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495465/ft1_filtered_4FGL_J1104.4+3812_daily_bin879.fits scfile=/scratch/kocevski/495465/ft2_4FGL_J1104.4+3812_daily_bin879.fits outfile=/scratch/kocevski/495465/cmap_HighResolution_467164801_467424001_4FGL_J1104.4+3812_daily_bin879.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.587       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.482       1.0000         .10000E-03   10000.    
     4 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4041       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59462       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9364       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4923       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11667       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.493       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.7122       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.444       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5997       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.842       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1163       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.0761       1.0000         .10000E-03   10000.    
    28 'norm      '    .11968E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    36.629       1.0000         .10000E-03   10000.    
    30 'Prefactor '    35.309       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .64818       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1306       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=   5544.981     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4374 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2461       -.70043E-09** at limit **
   2  Prefactor     18.542        30.557       -.55955E-05    .36832E-05
   3  Prefactor     11.479        5.3674       -.20067E-05    .50144E-04
   4  norm          .10000E-03    5.5463        .39885E-06** at limit **
   5  Prefactor     .10000E-03    26.075        .96641E-06** at limit **
   6  Prefactor     .10000E-03    27.316       -.33096E-05** at limit **
   7  Prefactor     4.4670        3.9317        .57784E-07   -.88468E-04
   8  Prefactor     6.4047        4.7591        .10898E-05    .19491E-03
   9  Prefactor     39.189        34.878       -.32809E-05    .28409E-04
  10  Prefactor     .11225        35.991       -.59337E-05    .33840E-05
  11  Prefactor     .10000E-03    23.756        .11207E-05** at limit **
  12  Prefactor     7.9340        9.5995        .16941E-05    .36355E-04
  13  norm          1.4922        .36245       -.14809E-06    .14545E-02
  14  Prefactor     .11987        1.5176        .21884E-06   -.13755E-02
  15  Prefactor     19.503        17.928        .87657E-05    .18495E-03
  16  Prefactor     .10000E-03    10.492       -.35656E-07** at limit **
  17  Prefactor     .10000E-03    30.499        .28941E-06** at limit **
  18  norm          7.7135        9.1164       -.25982E-05    .56646E-04
  19  norm          .10000E-03    25.402        .28081E-05** at limit **
  20  Prefactor     .10000E-03    1.3912        .10899E-06** at limit **
  21  Prefactor     32.447        47.477       -.58205E-05   -.15182E-04
  22  Prefactor     .10000E-03    7.1006       -.38689E-08** at limit **
  23  norm          1.5991        3.4521        .61462E-06   -.61619E-03
  24  Prefactor     11.838        11.412        .45917E-06    .47954E-05
  25  Prefactor     7.1133        6.4071       -.53639E-06   -.18157E-03
  26  Prefactor     .10000E-03    27.839       -.44238E-05** at limit **
  27  norm          1.0751        .92771        .35441E-06    .31343E-03
  28  norm          .10000E-03    7.3823       -.17205E-06** at limit **
  29  Prefactor     36.610        32.123       -.18237E-04    .14028E-06
  30  Prefactor     35.291        40.035       -.12941E-04    .29651E-05
  31  Normalizat    .64890        .17429        .23778E-05    .30979E-03
  32  Prefactor     1.1301        .19874        .68326E-06    .33209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.5421
  Prefactor  = 11.479
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.46697
  Prefactor  = 6.40473
  Prefactor  = 39.1894
  Prefactor  = 0.112251
  Prefactor  = 0.0001
  Prefactor  = 7.93402
  norm       = 1.49221
  Prefactor  = 0.119868
  Prefactor  = 19.5027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.71351
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4475
  Prefactor  = 0.0001
  norm       = 1.59907
  Prefactor  = 11.8382
  Prefactor  = 7.11333
  Prefactor  = 0.0001
  norm       = 1.07505
  norm       = 0.0001
  Prefactor  = 36.6104
  Prefactor  = 35.2908
  Normalizat = 0.648897
  Prefactor  = 1.13013
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.981     FROM HESSE     STATUS=OK           673 CALLS     5047 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2490        .81083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.542        30.813        .92902E-04   -1.4846    
   3  Prefactor     11.479        5.3754        .11191E-03   -1.5030    
   4  norm          .10000E-03    5.5819        .17115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4670        3.9284        .12867E-03   -1.5285    
   8  Prefactor     6.4047        4.7517        .13330E-03   -1.5202    
   9  Prefactor     39.189        34.860        .64014E-04   -1.4455    
  10  Prefactor     .11225        50.662        .10989       -1.5641    
  11  Prefactor     .10000E-03    23.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9340        9.7320        .14233E-03   -1.5145    
  13  norm          1.4922        .36314        .20782E-04   -1.5464    
  14  Prefactor     .11987        15.157        .17009E-02   -1.5639    
  15  Prefactor     19.503        17.988        .90718E-04   -1.4824    
  16  Prefactor     .10000E-03    10.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.7135        9.1020        .14440E-03   -1.5152    
  19  norm          .10000E-03    25.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4105        .17036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.447        45.697        .70348E-04   -1.4568    
  22  Prefactor     .10000E-03    7.1088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5991        3.3068        .15762E-03   -1.5455    
  24  Prefactor     11.838        11.407        .11641E-03   -1.5020    
  25  Prefactor     7.1133        6.4007        .15037E-03   -1.5174    
  26  Prefactor     .10000E-03    27.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.0751        .89854        .62043E-04   -1.5501    
  28  norm          .10000E-03    7.4308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     36.610        32.117        .66219E-04   -1.4497    
  30  Prefactor     35.291        39.946        .67442E-04   -1.4519    
  31  Normalizat    .64890        .20999        .26628E-03   -1.0595    
  32  Prefactor     1.1301        .23765        .25483E-03   -.88509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19105e-08
Minuit parameter uncertainties:
  1  1.3581e-05
  2  30.8391
  3  5.37561
  4  3.34601e-05
  5  8.96968e-06
  6  9.36558e-05
  7  3.92861
  8  4.75203
  9  34.8779
  10  4.77137
  11  1.44513e-05
  12  9.73392
  13  0.363143
  14  2.69542
  15  17.9925
  16  0.000108141
  17  1.37416e-05
  18  9.10362
  19  3.919e-06
  20  1.89156e-05
  21  45.7463
  22  5.04623e-06
  23  3.30721
  24  11.4093
  25  6.40127
  26  1.0695e-05
  27  0.898553
  28  8.06836e-05
  29  32.1319
  30  39.9764
  31  0.21025
  32  0.237872
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.492e+00  3.631e-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.130e+00  2.379e-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:  6.489e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 89.00
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.55e-07 +/- 3.77e-08
Energy Flux (Fixed Index): 2.10e-04 +/- 5.10e-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) = 5544.97161038
delta logL = 0.00939543537879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5544.97102403
delta logL = 0.00998178443569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4851       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7610       1.0000          .0000       5.0000    
     3 'Normalizat'    .64539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1320       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=   5544.971     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4855        .45462        .46697E-02   -.87466E-04
   2  alpha         1.7606        .22276        .11810        .18077E-04
   3  Normalizat    .64552        .16044        .60326E-01    .18532E-04
   4  Prefactor     1.1319        .19681        .57579E-01    .95556E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48548
  alpha      = 1.76057
  Normalizat = 0.645516
  Prefactor  = 1.13188
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.971     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4855        .35490        .20620E-04   -1.5464    
   2  alpha         1.7606        .17787        .50926E-02   -.30026    
   3  Normalizat    .64552        .18907        .26686E-03   -1.0608    
   4  Prefactor     1.1319        .23273        .25461E-03   -.88454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9603e-11
Minuit parameter uncertainties:
  1  0.354905
  2  0.178031
  3  0.189258
  4  0.232944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495465': 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) = 5544.97102086
delta logL = 0.00998496282955

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.485e+00  3.549e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.761e+00  1.780e-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.132e+00  2.329e-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:  6.455e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 88.86
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.76 +/- 0.18
Photon Flux (Free Index): 1.59e-07 +/- 4.71e-08
Energy Flux (Free Index): 2.00e-04 +/- 8.18e-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/495465/cmap_HighResolution_467164801_467424001_4FGL_J1104.4+3812_daily_bin879.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.55e-07', energy_flux2='2.00e-04', photon_flux_error='3.77e-08', dlogl='9.98e-03', energy_flux='2.10e-04', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-03 07:06:02.539847', photon_index_error2='0.18', photon_index2='1.76', ts='89.00', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.65', time_epoch_completed='1630677962.54', return_code='0', job_id='495465', GAL2='1.13', EG2='0.65', return_code2='0', energy_flux_error='5.10e-05', photon_flux_error2='4.71e-08', ts2='88.86', photon_index='1.74' WHERE bin_id='879' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:06:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 495465: <4FGL_J1104.4+3812_daily_bin879> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin879 166.119 38.207 467164801 467424001 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 :                                   815.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            876 sec.

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

