/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 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7432
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin771
RA = 166.119, Dec = 38.207
tmin = 439171201, tmax = 439430401
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='495289', job_status='RUN', time_executed='2021-09-03 06:51:38.867320', time_epoch_executed='1630677098.87' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495289/ft1_4FGL_J1104.4+3812_daily_bin771.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495289/ft2_4FGL_J1104.4+3812_daily_bin771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495289/ft1_4FGL_J1104.4+3812_daily_bin771.fits outfile=/scratch/kocevski/495289/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin771.fits ra=166.119 dec=38.207 rad=12.0 tmin=439171201.0 tmax=439430401.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.64
user 5.32
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495289/ft1_filtered_4FGL_J1104.4+3812_daily_bin771.fits" evtable="EVENTS" scfile=/scratch/kocevski/495289/ft2_4FGL_J1104.4+3812_daily_bin771.fits sctable="SC_DATA" outfile=/scratch/kocevski/495289/ltcube_439171201_439430401_4FGL_J1104.4+3812_daily_bin771.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/495289/ft2_4FGL_J1104.4+3812_daily_bin771.fits
.....................!
real 16.65
user 16.15
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495289/ft1_filtered_4FGL_J1104.4+3812_daily_bin771.fits evtable="EVENTS" scfile=/scratch/kocevski/495289/ft2_4FGL_J1104.4+3812_daily_bin771.fits sctable="SC_DATA" expcube=/scratch/kocevski/495289/ltcube_439171201_439430401_4FGL_J1104.4+3812_daily_bin771.fits outfile=/scratch/kocevski/495289/expmap_439171201_439430401_4FGL_J1104.4+3812_daily_bin771.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/495289/ltcube_439171201_439430401_4FGL_J1104.4+3812_daily_bin771.fits
.....................!
real 193.09
user 186.81
sys 5.77

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/495289/ft1_filtered_4FGL_J1104.4+3812_daily_bin771.fits scfile=/scratch/kocevski/495289/ft2_4FGL_J1104.4+3812_daily_bin771.fits outfile=/scratch/kocevski/495289/cmap_439171201_439430401_4FGL_J1104.4+3812_daily_bin771.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495289/ft1_filtered_4FGL_J1104.4+3812_daily_bin771.fits scfile=/scratch/kocevski/495289/ft2_4FGL_J1104.4+3812_daily_bin771.fits outfile=/scratch/kocevski/495289/cmap_HighResolution_439171201_439430401_4FGL_J1104.4+3812_daily_bin771.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.69
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5748       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13458E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2733       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.181       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.804       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .90898       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8350       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4025       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.814       1.0000         .10000E-03   10000.    
    19 'norm      '    .30527E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.364       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.127       1.0000         .10000E-03   10000.    
    23 'norm      '    4.3548       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.800       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3511       1.0000         .10000E-03   10000.    
    26 'Prefactor '    167.99       1.0000         .10000E-03   10000.    
    27 'norm      '    6.9332       1.0000         .10000E-03   10000.    
    28 'norm      '    5.4062       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.2964       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .63978       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=   5741.034     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4392 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5762        3.8096        .33641E-06    .33069E-05
   2  Prefactor     .10000E-03    84.476        .21872E-05** at limit **
   3  Prefactor     .10000E-03    2.0665       -.72131E-07** at limit **
   4  norm          7.2728        6.9179       -.91912E-07   -.73775E-04
   5  Prefactor     .10000E-03    45.943       -.54392E-05** at limit **
   6  Prefactor     15.400        17.342        .97086E-07    .43918E-05
   7  Prefactor     4.1032        4.8946        .32325E-06   -.29027E-04
   8  Prefactor     .10000E-03    1.4616       -.10037E-07** at limit **
   9  Prefactor     14.606        32.668       -.44659E-06   -.19279E-04
  10  Prefactor     28.153        26.496        .10945E-05    .71721E-04
  11  Prefactor     33.840        63.274        .35889E-05    .52553E-04
  12  Prefactor     .91157        21.202        .52033E-05   -.54103E-04
  13  norm          3.8352        .55062       -.94871E-08   -.20384E-03
  14  Prefactor     2.4039        3.2370       -.30386E-06   -.24063E-03
  15  Prefactor     .10000E-03    8.1009        .10058E-08** at limit **
  16  Prefactor     .10000E-03    20.887        .11781E-06** at limit **
  17  Prefactor     .10000E-03    38.611        .47994E-05** at limit **
  18  norm          14.823        16.510       -.55791E-06   -.16869E-04
  19  norm          .10000E-03    385.54       -.38785E-05** at limit **
  20  Prefactor     3.1565        3.7724        .25935E-05   -.24701E-03
  21  Prefactor     23.481        52.461       -.75232E-06    .14297E-03
  22  Prefactor     26.131        18.582        .54854E-07   -.13157E-04
  23  norm          4.3560        3.2326       -.52601E-06   -.12498E-03
  24  Prefactor     16.799        14.265        .84016E-07   -.14053E-04
  25  Prefactor     4.3476        6.8465       -.12361E-05   -.16481E-03
  26  Prefactor     168.02        70.551        .14166E-05    .81439E-04
  27  norm          6.9332        1.9506       -.89083E-07   -.90322E-05
  28  norm          5.4067        5.6350        .33217E-07    .27837E-04
  29  Prefactor     7.3791        40.522       -.23012E-05   -.42233E-04
  30  Prefactor     .10000E-03    28.716       -.99795E-06** at limit **
  31  Normalizat    1.0701        .19481       -.68903E-06   -.55496E-04
  32  Prefactor     .63955        .21714       -.78802E-06   -.56279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5762
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.27277
  Prefactor  = 0.000100003
  Prefactor  = 15.3998
  Prefactor  = 4.10316
  Prefactor  = 0.0001
  Prefactor  = 14.6062
  Prefactor  = 28.153
  Prefactor  = 33.8399
  Prefactor  = 0.911569
  norm       = 3.83516
  Prefactor  = 2.4039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 14.8233
  norm       = 0.000100001
  Prefactor  = 3.1565
  Prefactor  = 23.4808
  Prefactor  = 26.131
  norm       = 4.35602
  Prefactor  = 16.7987
  Prefactor  = 4.34759
  Prefactor  = 168.021
  norm       = 6.93317
  norm       = 5.40672
  Prefactor  = 7.37907
  Prefactor  = 0.0001
  Normalizat = 1.07015
  Prefactor  = 0.639551
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.034     FROM HESSE     STATUS=OK           667 CALLS     5059 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5762        3.7233        .16878E-03   -1.5387    
   2  Prefactor     .10000E-03    85.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5612        .20701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2728        6.9215        .14873E-03   -1.5169    
   5  Prefactor     .10000E-03    46.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.400        17.339        .10207E-03   -1.4923    
   7  Prefactor     4.1032        4.8867        .17084E-03   -1.5303    
   8  Prefactor     .10000E-03    1.4643        .89446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.606        32.623        .10488E-03   -1.4943    
  10  Prefactor     28.153        26.528        .75469E-04   -1.4646    
  11  Prefactor     33.840        63.512        .68922E-04   -1.4544    
  12  Prefactor     .91157        21.230        .51360E-03   -1.5517    
  13  norm          3.8352        .55125        .20512E-04   -1.5316    
  14  Prefactor     2.4039        3.1741        .14475E-03   -1.5398    
  15  Prefactor     .10000E-03    8.1206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.823        16.501        .10406E-03   -1.4938    
  19  norm          .10000E-03    389.11        .19809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1565        3.8663        .61899E-03   -1.5353    
  21  Prefactor     23.481        54.597        .82869E-04   -1.4738    
  22  Prefactor     26.131        18.579        .78373E-04   -1.4685    
  23  norm          4.3560        3.2323        .10464E-03   -1.5291    
  24  Prefactor     16.799        14.256        .97715E-04   -1.4888    
  25  Prefactor     4.3476        6.7944        .19310E-03   -1.5291    
  26  Prefactor     168.02        70.972        .15562E-03   -1.3108    
  27  norm          6.9332        1.9561        .48260E-04   -1.5181    
  28  norm          5.4067        5.6387        .17283E-03   -1.5243    
  29  Prefactor     7.3791        40.611        .14849E-03   -1.5165    
  30  Prefactor     .10000E-03    28.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0701        .23314        .24872E-03   -.90716    
  32  Prefactor     .63955        .25521        .36303E-03   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66031e-10
Minuit parameter uncertainties:
  1  3.72362
  2  0.000499508
  3  4.10775e-06
  4  6.92229
  5  0.000694889
  6  17.3442
  7  4.88713
  8  3.63013e-07
  9  32.6632
  10  26.5395
  11  63.6393
  12  8.80127
  13  0.551247
  14  3.17432
  15  4.02823e-06
  16  2.96448e-06
  17  0.000593694
  18  16.506
  19  0.00100922
  20  3.8666
  21  54.7133
  22  18.5836
  23  3.23244
  24  14.2591
  25  6.79565
  26  71.0082
  27  1.95613
  28  5.63926
  29  34.658
  30  9.92522e-05
  31  0.233366
  32  0.255675
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.835e+00  5.512e-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:  6.396e-01  2.557e-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:  1.070e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 360.71
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 3.98e-07 +/- 5.72e-08
Energy Flux (Fixed Index): 5.39e-04 +/- 7.74e-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) = 5739.21768959
delta logL = 1.81655868993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5739.2129154
delta logL = 1.82133288008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9183       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5356       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61396       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=   5739.213     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9183        .58344        .48750E-02    .31796E-02
   2  alpha         1.5356        .10288        .73713E-01   -.38167E-05
   3  Normalizat    1.1217        .18723        .55345E-01    .22944E-04
   4  Prefactor     .61396        .21561        .83818E-01   -.10334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9183
  alpha      = 1.53558
  Normalizat = 1.12172
  Prefactor  = 0.61396
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.213     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9183        .58449        .21526E-04   -1.5312    
   2  alpha         1.5356        .10375        .32408E-03   -.39604    
   3  Normalizat    1.1217        .21940        .24472E-03   -.89058    
   4  Prefactor     .61396        .25154        .37131E-03   -1.0700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17796e-10
Minuit parameter uncertainties:
  1  0.584488
  2  0.10378
  3  0.219583
  4  0.252004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495289': 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) = 5739.2129154
delta logL = 1.82133288124

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  3.918e+00  5.845e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.536e+00  1.038e-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:  6.140e-01  2.520e-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:  1.122e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 360.88
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.54 +/- 0.10
Photon Flux (Free Index): 3.31e-07 +/- 5.98e-08
Energy Flux (Free Index): 8.29e-04 +/- 2.25e-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/495289/cmap_HighResolution_439171201_439430401_4FGL_J1104.4+3812_daily_bin771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.98e-07', energy_flux2='8.29e-04', photon_flux_error='5.72e-08', dlogl='1.82e+00', energy_flux='5.39e-04', photon_flux2='3.31e-07', job_status='DONE', time_completed='2021-09-03 07:06:04.989900', photon_index_error2='0.10', photon_index2='1.54', ts='360.71', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='2.25e-04', EG='1.07', time_epoch_completed='1630677964.99', return_code='0', job_id='495289', GAL2='0.61', EG2='1.12', return_code2='0', energy_flux_error='7.74e-05', photon_flux_error2='5.98e-08', ts2='360.88', photon_index='1.74' WHERE bin_id='771' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:06:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 495289: <4FGL_J1104.4+3812_daily_bin771> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin771 166.119 38.207 439171201 439430401 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 :                                   862.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            890 sec.

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

