/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin956
RA = 166.119, Dec = 38.207
tmin = 487123201, tmax = 487382401
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='496736', job_status='RUN', time_executed='2021-09-03 06:57:26.268889', time_epoch_executed='1630677446.27' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='956'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496736/ft1_4FGL_J1104.4+3812_daily_bin956.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496736/ft2_4FGL_J1104.4+3812_daily_bin956.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496736/ft1_4FGL_J1104.4+3812_daily_bin956.fits outfile=/scratch/kocevski/496736/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin956.fits ra=166.119 dec=38.207 rad=12.0 tmin=487123201.0 tmax=487382401.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.63
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496736/ft2_4FGL_J1104.4+3812_daily_bin956.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/496736/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin956.fits evtable="EVENTS" outfile="/scratch/kocevski/496736/ft1_filtered_4FGL_J1104.4+3812_daily_bin956.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.85
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496736/ft1_filtered_4FGL_J1104.4+3812_daily_bin956.fits" evtable="EVENTS" scfile=/scratch/kocevski/496736/ft2_4FGL_J1104.4+3812_daily_bin956.fits sctable="SC_DATA" outfile=/scratch/kocevski/496736/ltcube_487123201_487382401_4FGL_J1104.4+3812_daily_bin956.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/496736/ft2_4FGL_J1104.4+3812_daily_bin956.fits
.....................!
real 12.72
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496736/ft1_filtered_4FGL_J1104.4+3812_daily_bin956.fits evtable="EVENTS" scfile=/scratch/kocevski/496736/ft2_4FGL_J1104.4+3812_daily_bin956.fits sctable="SC_DATA" expcube=/scratch/kocevski/496736/ltcube_487123201_487382401_4FGL_J1104.4+3812_daily_bin956.fits outfile=/scratch/kocevski/496736/expmap_487123201_487382401_4FGL_J1104.4+3812_daily_bin956.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/496736/ltcube_487123201_487382401_4FGL_J1104.4+3812_daily_bin956.fits
.....................!
real 191.62
user 186.62
sys 4.66

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/496736/ft1_filtered_4FGL_J1104.4+3812_daily_bin956.fits scfile=/scratch/kocevski/496736/ft2_4FGL_J1104.4+3812_daily_bin956.fits outfile=/scratch/kocevski/496736/cmap_487123201_487382401_4FGL_J1104.4+3812_daily_bin956.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.75
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496736/ft1_filtered_4FGL_J1104.4+3812_daily_bin956.fits scfile=/scratch/kocevski/496736/ft2_4FGL_J1104.4+3812_daily_bin956.fits outfile=/scratch/kocevski/496736/cmap_HighResolution_487123201_487382401_4FGL_J1104.4+3812_daily_bin956.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9114       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7911       1.0000         .10000E-03   10000.    
     4 'norm      '    18.143       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17353E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22998E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.242       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13922E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20844E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.998       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10370E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16691E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30302E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.190       1.0000         .10000E-03   10000.    
    19 'norm      '    .24615E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1519       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.748       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6074       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.679       1.0000         .10000E-03   10000.    
    27 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.1010       1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.223       1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.278       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96335       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97671       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=   6311.347     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     3834 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9394        7.0748       -.38456E-06    .14024E-04
   2  Prefactor     11.602        43.810        .50044E-05    .83102E-04
   3  Prefactor     2.7743        6.9253        .84405E-06   -.45298E-06
   4  norm          18.150        13.290       -.14036E-05   -.43544E-03
   5  Prefactor     .10000E-03    28.794       -.14779E-05** at limit **
   6  Prefactor     .10000E-03    29.081        .18756E-05** at limit **
   7  Prefactor     .49020        3.2115        .69829E-06   -.52080E-03
   8  Prefactor     10.215        5.9993        .10973E-06   -.75823E-04
   9  Prefactor     11.411        40.124       -.30991E-05   -.10147E-03
  10  Prefactor     .10000E-03    7.1362        .38328E-08** at limit **
  11  Prefactor     .10000E-03    50.895       -.68567E-07** at limit **
  12  Prefactor     11.019        11.630       -.24796E-06   -.14084E-04
  13  norm          2.8381        .47527       -.40282E-08   -.19203E-02
  14  Prefactor     .10000E-03    2.9894       -.76953E-07** at limit **
  15  Prefactor     .10000E-03    10.195       -.10670E-06** at limit **
  16  Prefactor     .10494E-03    19.331        .18923E-05** at limit **
  17  Prefactor     .10000E-03    19.420        .41603E-06** at limit **
  18  norm          13.228        12.091       -.20264E-06   -.39174E-04
  19  norm          .10000E-03    25.307       -.36522E-06** at limit **
  20  Prefactor     .10000E-03    1.3561        .16004E-06** at limit **
  21  Prefactor     4.1858        41.401        .45180E-05    .14147E-03
  22  Prefactor     13.688        24.678       -.10620E-05   -.82977E-04
  23  norm          .10000E-03    1.0659       -.76598E-06** at limit **
  24  Prefactor     2.6794        27.226        .60557E-06    .24578E-04
  25  Prefactor     .10000E-03    1.7723        .20037E-07** at limit **
  26  Prefactor     26.039        33.525        .18591E-05    .50732E-03
  27  norm          .10000E-03    .45160       -.17275E-05** at limit **
  28  norm          5.1009        5.1894       -.12094E-08    .17064E-03
  29  Prefactor     21.270        23.584        .10639E-05    .20573E-03
  30  Prefactor     27.984        27.248        .12734E-05    .30804E-03
  31  Normalizat    .96197        .17575        .11925E-05    .60670E-03
  32  Prefactor     .97732        .19729        .14530E-06    .46091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.93937
  Prefactor  = 11.6019
  Prefactor  = 2.77425
  norm       = 18.1502
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.490195
  Prefactor  = 10.2152
  Prefactor  = 11.4108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0192
  norm       = 2.83805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104941
  Prefactor  = 0.0001
  norm       = 13.2277
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18585
  Prefactor  = 13.6878
  norm       = 0.0001
  Prefactor  = 2.67939
  Prefactor  = 0.0001
  Prefactor  = 26.0391
  norm       = 0.0001
  norm       = 5.10091
  Prefactor  = 21.2696
  Prefactor  = 27.9837
  Normalizat = 0.961973
  Prefactor  = 0.977321
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.347     FROM HESSE     STATUS=OK           665 CALLS     4499 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9394        6.9115        .13734E-03   -1.5144    
   2  Prefactor     11.602        44.091        .12182E-03   -1.5027    
   3  Prefactor     2.7743        6.7406        .22592E-03   -1.5375    
   4  norm          18.150        13.347        .94030E-04   -1.4856    
   5  Prefactor     .10000E-03    28.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.217        .20099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .49020        12.376        .23709E-02   -1.5568    
   8  Prefactor     10.215        5.9867        .12520E-03   -1.5069    
   9  Prefactor     11.411        39.831        .12064E-03   -1.5032    
  10  Prefactor     .10000E-03    7.1387        .20528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.940        .18254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.019        11.599        .12081E-03   -1.5044    
  13  norm          2.8381        .48261        .20361E-04   -1.5371    
  14  Prefactor     .10000E-03    3.1051        .26703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.239        .20738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10494E-03    23.512        .90161E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.423        .21386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.228        12.089        .11029E-03   -1.4980    
  19  norm          .10000E-03    25.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.3876        .17917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1858        39.912        .19781E-03   -1.5299    
  22  Prefactor     13.688        23.674        .10802E-03   -1.4968    
  23  norm          .10000E-03    1.6020        .15502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.6794        24.804        .25263E-03   -1.5381    
  25  Prefactor     .10000E-03    1.7803        .10325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.039        34.758        .79052E-04   -1.4687    
  27  norm          .10000E-03    .51823        .89600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.1009        5.1937        .17802E-03   -1.5256    
  29  Prefactor     21.270        23.646        .86944E-04   -1.4785    
  30  Prefactor     27.984        27.400        .75339E-04   -1.4649    
  31  Normalizat    .96197        .21038        .24500E-03   -.94315    
  32  Prefactor     .97732        .23417        .29131E-03   -.93489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81436e-09
Minuit parameter uncertainties:
  1  6.91222
  2  44.2152
  3  6.74244
  4  13.3492
  5  0.000265951
  6  0.000321455
  7  4.92668
  8  5.98707
  9  39.9245
  10  3.01318e-06
  11  5.01353e-05
  12  11.6018
  13  0.482611
  14  7.19568e-06
  15  2.80536e-05
  16  0.0215656
  17  5.48051e-05
  18  12.0911
  19  6.03789e-05
  20  9.91693e-06
  21  25.8732
  22  23.6904
  23  8.00191e-07
  24  16.313
  25  2.68177e-06
  26  34.7847
  27  3.17572e-05
  28  5.19412
  29  23.6562
  30  27.4127
  31  0.210564
  32  0.234414
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.838e+00  4.826e-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.773e-01  2.344e-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.620e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 213.62
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.95e-07 +/- 5.01e-08
Energy Flux (Fixed Index): 3.99e-04 +/- 6.78e-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) = 6310.89531709
delta logL = 0.451333997737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6310.88477109
delta logL = 0.461879997799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8949       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6244       1.0000          .0000       5.0000    
     3 'Normalizat'    .98568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96514       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=   6310.885     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .72E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8953        .48923        .47569E-02   -.88192E-04
   2  alpha         1.6244        .11895        .84214E-01    .98329E-05
   3  Normalizat    .98580        .16369        .45987E-01    .12026E-04
   4  Prefactor     .96503        .19546        .66317E-01    .14913E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89527
  alpha      = 1.62445
  Normalizat = 0.985802
  Prefactor  = 0.965027
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8953        .46673        .21012E-04   -1.5368    
   2  alpha         1.6244        .11458        .36883E-03   -.35781    
   3  Normalizat    .98580        .19283        .24272E-03   -.93508    
   4  Prefactor     .96503        .22995        .29332E-03   -.93905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03426e-14
Minuit parameter uncertainties:
  1  0.466728
  2  0.114627
  3  0.192963
  4  0.230187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496736': 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) = 6310.88477041
delta logL = 0.461880676958

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.895e+00  4.667e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.624e+00  1.146e-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.650e-01  2.302e-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.858e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 213.58
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.62 +/- 0.11
Photon Flux (Free Index): 2.66e-07 +/- 5.22e-08
Energy Flux (Free Index): 5.03e-04 +/- 1.47e-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/496736/cmap_HighResolution_487123201_487382401_4FGL_J1104.4+3812_daily_bin956.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-07', energy_flux2='5.03e-04', photon_flux_error='5.01e-08', dlogl='4.62e-01', energy_flux='3.99e-04', photon_flux2='2.66e-07', job_status='DONE', time_completed='2021-09-03 07:11:39.841446', photon_index_error2='0.11', photon_index2='1.62', ts='213.62', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.47e-04', EG='0.96', time_epoch_completed='1630678299.84', return_code='0', job_id='496736', GAL2='0.97', EG2='0.99', return_code2='0', energy_flux_error='6.78e-05', photon_flux_error2='5.22e-08', ts2='213.58', photon_index='1.74' WHERE bin_id='956' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:11:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 496736: <4FGL_J1104.4+3812_daily_bin956> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin956> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 06:56:24 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:56:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:56:31 2021
Terminated at Fri Sep  3 07:11:40 2021
Results reported at Fri Sep  3 07:11:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin956 166.119 38.207 487123201 487382401 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 :                                   846.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            916 sec.

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

