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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin906
RA = 166.119, Dec = 38.207
tmin = 474163201, tmax = 474422401
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='495508', job_status='RUN', time_executed='2021-09-03 06:52:29.733122', time_epoch_executed='1630677149.73' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495508/ft1_4FGL_J1104.4+3812_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495508/ft2_4FGL_J1104.4+3812_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495508/ft1_4FGL_J1104.4+3812_daily_bin906.fits outfile=/scratch/kocevski/495508/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin906.fits ra=166.119 dec=38.207 rad=12.0 tmin=474163201.0 tmax=474422401.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 6.46
user 5.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/495508/ft2_4FGL_J1104.4+3812_daily_bin906.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/495508/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/495508/ft1_filtered_4FGL_J1104.4+3812_daily_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495508/ft1_filtered_4FGL_J1104.4+3812_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/495508/ft2_4FGL_J1104.4+3812_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/495508/ltcube_474163201_474422401_4FGL_J1104.4+3812_daily_bin906.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/495508/ft2_4FGL_J1104.4+3812_daily_bin906.fits
.....................!
real 12.34
user 11.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495508/ft1_filtered_4FGL_J1104.4+3812_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/495508/ft2_4FGL_J1104.4+3812_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/495508/ltcube_474163201_474422401_4FGL_J1104.4+3812_daily_bin906.fits outfile=/scratch/kocevski/495508/expmap_474163201_474422401_4FGL_J1104.4+3812_daily_bin906.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/495508/ltcube_474163201_474422401_4FGL_J1104.4+3812_daily_bin906.fits
.....................!
real 190.56
user 185.79
sys 4.43

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/495508/ft1_filtered_4FGL_J1104.4+3812_daily_bin906.fits scfile=/scratch/kocevski/495508/ft2_4FGL_J1104.4+3812_daily_bin906.fits outfile=/scratch/kocevski/495508/cmap_474163201_474422401_4FGL_J1104.4+3812_daily_bin906.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.39
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7893       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8469       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.357       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.887       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5727       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    48.928       1.0000         .10000E-03   10000.    
    19 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .72521E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .98509E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .81664E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2097       1.0000         .10000E-03   10000.    
    26 'Prefactor '    88.354       1.0000         .10000E-03   10000.    
    27 'norm      '    2.3256       1.0000         .10000E-03   10000.    
    28 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.982       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86495       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92387       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3416.192     FROM MIGRAD    STATUS=CONVERGED   1516 CALLS     6644 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7398        .74930E-03** at limit **
   2  Prefactor     49.061        41.244        .57243E-04   -.22367E-03
   3  Prefactor     2.7892        5.9624        .18272E-03   -.33284E-03
   4  norm          .10000E-03    14.366        .36285E-03** at limit **
   5  Prefactor     .10000E-03    50.010        .18142E-02** at limit **
   6  Prefactor     .10000E-03    99.006        .18142E-02** at limit **
   7  Prefactor     .10000E-03    3.6668        .10865E-02** at limit **
   8  Prefactor     2.8493        8.5463        .12049E-02    .35252E-03
   9  Prefactor     .10000E-03    30.266        .18142E-02** at limit **
  10  Prefactor     .10000E-03    48.056        .18142E-02** at limit **
  11  Prefactor     18.202        363.18        .93480E-04   -.80996E-05
  12  Prefactor     34.874        23.430        .67848E-04    .87132E-05
  13  norm          2.5728        .60709        .20420E-04    .41478E-03
  14  Prefactor     .10000E-03    1.5591        .71195E-03** at limit **
  15  Prefactor     18.883        39.305        .92129E-04    .36896E-04
  16  Prefactor     .10000E-03    17.251        .18142E-02** at limit **
  17  Prefactor     .10000E-03    72.446        .18142E-02** at limit **
  18  norm          48.923        33.861        .57328E-04    .49676E-04
  19  norm          .10000E-03    51.222        .18142E-02** at limit **
  20  Prefactor     .10000E-03    34.880        .18474E-02** at limit **
  21  Prefactor     .10000E-03    584.13        .41545E-03** at limit **
  22  Prefactor     .10000E-03    20.128        .18142E-02** at limit **
  23  norm          .16363E-02    7.6279        .30989E-01** at limit **
  24  Prefactor     .10000E-03    8.1217        .16266E-02** at limit **
  25  Prefactor     6.2075        7.7638        .16110E-03    .10649E-03
  26  Prefactor     88.393        93.928        .42745E-04    .69710E-04
  27  norm          2.3253        2.1385        .71886E-04    .21295E-03
  28  norm          .10000E-03    6.8993        .14995E-02** at limit **
  29  Prefactor     14.976        41.595        .10348E-03    .82949E-05
  30  Prefactor     .10000E-03    52.437        .18142E-02** at limit **
  31  Normalizat    .86488        .30230        .25397E-03   -.27316E-03
  32  Prefactor     .92400        .31797        .29021E-03   -.11713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.0609
  Prefactor  = 2.78919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.84932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2017
  Prefactor  = 34.8744
  norm       = 2.57276
  Prefactor  = 0.0001
  Prefactor  = 18.8828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 48.9229
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.00163632
  Prefactor  = 0.0001
  Prefactor  = 6.2075
  Prefactor  = 88.3934
  norm       = 2.32528
  norm       = 0.0001
  Prefactor  = 14.9762
  Prefactor  = 0.0001
  Normalizat = 0.864879
  Prefactor  = 0.924003
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.192     FROM HESSE     STATUS=OK           637 CALLS     7281 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7399        .14986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.061        41.243        .11449E-04   -1.4306    
   3  Prefactor     2.7892        5.9552        .73088E-05   -1.5374    
   4  norm          .10000E-03    14.366        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    99.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6673        .21730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8493        8.5216        .24098E-03   -1.5370    
   9  Prefactor     .10000E-03    30.268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.202        363.07        .18696E-04   -1.4854    
  12  Prefactor     34.874        23.429        .27139E-05   -1.4526    
  13  norm          2.5728        .60709        .81679E-06   -1.5387    
  14  Prefactor     .10000E-03    1.5591        .14239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.883        39.302        .36852E-05   -1.4839    
  16  Prefactor     .10000E-03    17.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          48.923        33.855        .11466E-04   -1.4308    
  19  norm          .10000E-03    51.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.326        .36949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    584.14        .83089E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .16363E-02    5.3589        .38507E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.1218        .32533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.2075        7.7626        .64438E-05   -1.5210    
  26  Prefactor     88.393        93.810        .85489E-05   -1.3825    
  27  norm          2.3253        2.1383        .28754E-05   -1.5403    
  28  norm          .10000E-03    6.8993        .29990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.976        41.601        .41391E-05   -1.4934    
  30  Prefactor     .10000E-03    52.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .86488        .30248        .50794E-04   -.97705    
  32  Prefactor     .92400        .31826        .11609E-04   -.95307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75511e-10
Minuit parameter uncertainties:
  1  2.48812e-06
  2  41.2665
  3  5.95642
  4  5.42316e-05
  5  0.000132456
  6  0.000466204
  7  7.51617e-06
  8  8.52524
  9  3.12637e-05
  10  0.000163566
  11  163.739
  12  23.4354
  13  0.60709
  14  2.01698e-06
  15  39.3561
  16  1.93992e-05
  17  5.45741e-05
  18  33.8681
  19  6.41734e-06
  20  0.000289416
  21  0.00137309
  22  3.90803e-05
  23  0.181488
  24  6.5715e-06
  25  7.76383
  26  93.9681
  27  2.13838
  28  4.65535e-06
  29  41.6818
  30  7.37369e-06
  31  0.303071
  32  0.318908
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.573e+00  6.071e-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:  9.240e-01  3.189e-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.649e-01  3.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 154.20
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.67e-07 +/- 6.30e-08
Energy Flux (Fixed Index): 3.61e-04 +/- 8.53e-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) = 3414.49895577
delta logL = 1.69299900612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3414.49872127
delta logL = 1.69323351182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2941       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4017       1.0000          .0000       5.0000    
     3 'Normalizat'    .92445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90566       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=   3414.499     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2931        .59346        .47539E-02   -.10553E-03
   2  alpha         1.4015        .16608        .90239E-01   -.18941E-04
   3  Normalizat    .92444        .22519        .45213E-01    .47407E-05
   4  Prefactor     .90571        .26512        .66555E-01    .63879E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29313
  alpha      = 1.40152
  Normalizat = 0.924438
  Prefactor  = 0.905711
 **********
 **   18 **HESSE 
 **********

 FCN=   3414.499     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2931        .65693        .20977E-04   -1.5405    
   2  alpha         1.4015        .18523        .39574E-03   -.45492    
   3  Normalizat    .92444        .26808        .24801E-03   -.95607    
   4  Prefactor     .90571        .31516        .29440E-03   -.95942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96748e-15
Minuit parameter uncertainties:
  1  0.656933
  2  0.185438
  3  0.268469
  4  0.315794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495508': 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) = 3414.49872027
delta logL = 1.69323451041

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.293e+00  6.569e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.402e+00  1.854e-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:  9.057e-01  3.158e-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.244e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 157.44
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.40 +/- 0.19
Photon Flux (Free Index): 1.76e-07 +/- 6.14e-08
Energy Flux (Free Index): 6.78e-04 +/- 2.86e-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/495508/cmap_HighResolution_474163201_474422401_4FGL_J1104.4+3812_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.67e-07', energy_flux2='6.78e-04', photon_flux_error='6.30e-08', dlogl='1.69e+00', energy_flux='3.61e-04', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-03 07:05:00.877829', photon_index_error2='0.19', photon_index2='1.40', ts='154.20', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.86e-04', EG='0.86', time_epoch_completed='1630677900.88', return_code='0', job_id='495508', GAL2='0.91', EG2='0.92', return_code2='0', energy_flux_error='8.53e-05', photon_flux_error2='6.14e-08', ts2='157.44', photon_index='1.74' WHERE bin_id='906' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:05:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 495508: <4FGL_J1104.4+3812_daily_bin906> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin906 166.119 38.207 474163201 474422401 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 :                                   743.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            811 sec.

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

