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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin887
RA = 166.119, Dec = 38.207
tmin = 469238401, tmax = 469497601
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='495477', job_status='RUN', time_executed='2021-09-03 06:52:12.650273', time_epoch_executed='1630677132.65' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495477

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495477/ft1_4FGL_J1104.4+3812_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495477/ft2_4FGL_J1104.4+3812_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495477/ft1_4FGL_J1104.4+3812_daily_bin887.fits outfile=/scratch/kocevski/495477/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin887.fits ra=166.119 dec=38.207 rad=12.0 tmin=469238401.0 tmax=469497601.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.47
user 3.23
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495477/ft1_filtered_4FGL_J1104.4+3812_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/495477/ft2_4FGL_J1104.4+3812_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/495477/ltcube_469238401_469497601_4FGL_J1104.4+3812_daily_bin887.fits outfile=/scratch/kocevski/495477/expmap_469238401_469497601_4FGL_J1104.4+3812_daily_bin887.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/495477/ltcube_469238401_469497601_4FGL_J1104.4+3812_daily_bin887.fits
.....................!
real 190.66
user 185.27
sys 5.03

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/495477/ft1_filtered_4FGL_J1104.4+3812_daily_bin887.fits scfile=/scratch/kocevski/495477/ft2_4FGL_J1104.4+3812_daily_bin887.fits outfile=/scratch/kocevski/495477/cmap_469238401_469497601_4FGL_J1104.4+3812_daily_bin887.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.56
user 0.39
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14551E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8456       1.0000         .10000E-03   10000.    
     4 'norm      '    20.010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5140       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.703       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3324       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5374       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    41.217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.855       1.0000         .10000E-03   10000.    
    23 'norm      '    2.2128       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7278       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8642       1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.840       1.0000         .10000E-03   10000.    
    27 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.6667       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .80309       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0894       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=   6890.551     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4354 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    2.5862        .18471E-05** at limit **
   2  Prefactor     41.963        30.356        .20638E-06   -.86724E-05
   3  Prefactor     6.8561        4.8120        .42683E-06   -.70016E-04
   4  norm          20.010        10.822        .58278E-07    .60123E-04
   5  Prefactor     .10000E-03    17.040       -.88658E-06** at limit **
   6  Prefactor     .10000E-03    36.802       -.22143E-05** at limit **
   7  Prefactor     2.5149        3.9737        .21098E-06   -.27734E-04
   8  Prefactor     20.781        6.7944        .40006E-06    .82689E-03
   9  Prefactor     .10000E-03    19.459        .54893E-06** at limit **
  10  Prefactor     15.704        22.111        .24241E-06   -.84591E-05
  11  Prefactor     .10000E-03    25.261        .12369E-05** at limit **
  12  Prefactor     .10000E-03    8.5462       -.16591E-07** at limit **
  13  norm          1.3324        .30363        .23325E-08   -.48071E-03
  14  Prefactor     1.3436        2.5778        .30746E-06    .16603E-04
  15  Prefactor     .10000E-03    4.0440       -.42784E-07** at limit **
  16  Prefactor     4.5377        8.2087        .56204E-07   -.23038E-04
  17  Prefactor     .10000E-03    17.754       -.40969E-06** at limit **
  18  norm          .10000E-03    18.711        .12853E-06** at limit **
  19  norm          41.219        48.977       -.48154E-07    .18291E-04
  20  Prefactor     .10000E-03    .68130       -.13887E-07** at limit **
  21  Prefactor     .10000E-03    11.494       -.78843E-07** at limit **
  22  Prefactor     26.845        17.310       -.27272E-05   -.20727E-03
  23  norm          2.2128        2.2634        .29670E-07    .31111E-03
  24  Prefactor     1.7310        20.129        .17271E-04   -.29813E-04
  25  Prefactor     5.8622        4.4506       -.48981E-06   -.58201E-03
  26  Prefactor     49.830        35.096        .26143E-05    .54186E-03
  27  norm          .10000E-03    .46345       -.88170E-06** at limit **
  28  norm          5.6664        5.5943       -.32069E-06    .15600E-03
  29  Prefactor     .10002E-03    64.563        .16643E-05** at limit **
  30  Prefactor     .10000E-03    11.368        .13331E-06** at limit **
  31  Normalizat    .80295        .15841       -.10254E-05    .26777E-04
  32  Prefactor     1.0896        .18376       -.19607E-06   -.94731E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101323
  Prefactor  = 41.9629
  Prefactor  = 6.85612
  norm       = 20.0101
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 2.5149
  Prefactor  = 20.781
  Prefactor  = 0.000100001
  Prefactor  = 15.7039
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.33239
  Prefactor  = 1.34364
  Prefactor  = 0.0001
  Prefactor  = 4.53774
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 41.2191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8447
  norm       = 2.21281
  Prefactor  = 1.73103
  Prefactor  = 5.86223
  Prefactor  = 49.8303
  norm       = 0.0001
  norm       = 5.66636
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Normalizat = 0.802954
  Prefactor  = 1.08955
 **********
 **   18 **HESSE 
 **********

 FCN=   6890.551     FROM HESSE     STATUS=OK           659 CALLS     5013 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10132E-03    50.607        .21301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.963        30.376        .61883E-04   -1.4411    
   3  Prefactor     6.8561        4.3571        .12989E-03   -1.5184    
   4  norm          20.010        10.802        .89539E-04   -1.4813    
   5  Prefactor     .10000E-03    17.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5149        3.9475        .19356E-03   -1.5391    
   8  Prefactor     20.781        6.8055        .87865E-04   -1.4796    
   9  Prefactor     .10000E-03    19.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.704        22.113        .10107E-03   -1.4915    
  11  Prefactor     .10000E-03    25.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3324        .30450        .20870E-04   -1.5477    
  14  Prefactor     1.3436        2.5534        .17470E-03   -1.5476    
  15  Prefactor     .10000E-03    4.0519        .16300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5377        8.2045        .18899E-03   -1.5282    
  17  Prefactor     .10000E-03    17.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          41.219        48.978        .62438E-04   -1.4423    
  20  Prefactor     .10000E-03    .69107        .66808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.845        17.445        .77305E-04   -1.4671    
  23  norm          2.2128        2.2421        .11694E-03   -1.5410    
  24  Prefactor     1.7310        20.589        .15972E-02   -1.5445    
  25  Prefactor     5.8622        4.4550        .14532E-03   -1.5224    
  26  Prefactor     49.830        34.516        .56804E-04   -1.4295    
  27  norm          .10000E-03    .84466        .10443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.6664        5.5919        .84373E-03   -1.5232    
  29  Prefactor     .10002E-03    65.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .80295        .18459        .25263E-03   -.99959    
  32  Prefactor     1.0896        .21525        .26994E-03   -.89801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6349e-08
Minuit parameter uncertainties:
  1  0.016376
  2  30.3875
  3  4.3573
  4  10.8033
  5  0.000260574
  6  0.000744691
  7  3.94792
  8  6.80578
  9  0.00020367
  10  22.1241
  11  0.000430433
  12  1.01578e-05
  13  0.304505
  14  2.55363
  15  4.7129e-07
  16  8.20649
  17  0.000122947
  18  0.000218977
  19  49.0255
  20  7.26794e-07
  21  1.24201e-05
  22  17.4479
  23  2.24223
  24  11.9447
  25  4.45525
  26  34.5296
  27  2.49382e-05
  28  5.59246
  29  0.00237215
  30  4.85002e-05
  31  0.184737
  32  0.215423
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.332e+00  3.045e-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.090e+00  2.154e-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.030e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 112.29
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 3.16e-08
Energy Flux (Fixed Index): 1.87e-04 +/- 4.28e-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) = 6890.26538737
delta logL = 0.285456896204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6890.26421553
delta logL = 0.286628739899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3308       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6099       1.0000          .0000       5.0000    
     3 'Normalizat'    .81763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0839       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=   6890.264     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      206 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3308        .32453        .48830E-02    .12119E-02
   2  alpha         1.6099        .16885        .12745        .18913E-04
   3  Normalizat    .81763        .14926        .43840E-01    .16229E-04
   4  Prefactor     1.0839        .18278        .61239E-01    .56434E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33081
  alpha      = 1.60988
  Normalizat = 0.817633
  Prefactor  = 1.08387
 **********
 **   18 **HESSE 
 **********

 FCN=   6890.264     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3308        .31173        .21535E-04   -1.5477    
   2  alpha         1.6099        .16590        .54923E-02   -.36403    
   3  Normalizat    .81763        .17454        .25081E-03   -.99418    
   4  Prefactor     1.0839        .21370        .27083E-03   -.89984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66248e-11
Minuit parameter uncertainties:
  1  0.311726
  2  0.166037
  3  0.174658
  4  0.213866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495477': 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) = 6890.26421553
delta logL = 0.286628739941

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.331e+00  3.117e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.610e+00  1.660e-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.084e+00  2.139e-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.176e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 112.59
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.61 +/- 0.17
Photon Flux (Free Index): 1.20e-07 +/- 3.63e-08
Energy Flux (Free Index): 2.38e-04 +/- 9.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/495477/cmap_HighResolution_469238401_469497601_4FGL_J1104.4+3812_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='2.38e-04', photon_flux_error='3.16e-08', dlogl='2.87e-01', energy_flux='1.87e-04', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-03 07:08:04.121549', photon_index_error2='0.17', photon_index2='1.61', ts='112.29', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='9.55e-05', EG='0.80', time_epoch_completed='1630678084.12', return_code='0', job_id='495477', GAL2='1.08', EG2='0.82', return_code2='0', energy_flux_error='4.28e-05', photon_flux_error2='3.63e-08', ts2='112.59', photon_index='1.74' WHERE bin_id='887' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:08:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 495477: <4FGL_J1104.4+3812_daily_bin887> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin887 166.119 38.207 469238401 469497601 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 :                                   947.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             306.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            997 sec.

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

