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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin827
RA = 166.119, Dec = 38.207
tmin = 453686401, tmax = 453945601
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='495375', job_status='RUN', time_executed='2021-09-03 06:52:58.539304', time_epoch_executed='1630677178.54' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495375/ft1_4FGL_J1104.4+3812_daily_bin827.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495375/ft2_4FGL_J1104.4+3812_daily_bin827.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495375/ft1_4FGL_J1104.4+3812_daily_bin827.fits outfile=/scratch/kocevski/495375/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin827.fits ra=166.119 dec=38.207 rad=12.0 tmin=453686401.0 tmax=453945601.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.59
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495375/ft1_filtered_4FGL_J1104.4+3812_daily_bin827.fits" evtable="EVENTS" scfile=/scratch/kocevski/495375/ft2_4FGL_J1104.4+3812_daily_bin827.fits sctable="SC_DATA" outfile=/scratch/kocevski/495375/ltcube_453686401_453945601_4FGL_J1104.4+3812_daily_bin827.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/495375/ft2_4FGL_J1104.4+3812_daily_bin827.fits
.....................!
real 12.65
user 12.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495375/ft1_filtered_4FGL_J1104.4+3812_daily_bin827.fits evtable="EVENTS" scfile=/scratch/kocevski/495375/ft2_4FGL_J1104.4+3812_daily_bin827.fits sctable="SC_DATA" expcube=/scratch/kocevski/495375/ltcube_453686401_453945601_4FGL_J1104.4+3812_daily_bin827.fits outfile=/scratch/kocevski/495375/expmap_453686401_453945601_4FGL_J1104.4+3812_daily_bin827.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/495375/ltcube_453686401_453945601_4FGL_J1104.4+3812_daily_bin827.fits
.....................!
real 192.20
user 187.13
sys 4.57

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/495375/ft1_filtered_4FGL_J1104.4+3812_daily_bin827.fits scfile=/scratch/kocevski/495375/ft2_4FGL_J1104.4+3812_daily_bin827.fits outfile=/scratch/kocevski/495375/cmap_453686401_453945601_4FGL_J1104.4+3812_daily_bin827.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=166.119 yref=38.207 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495375/ft1_filtered_4FGL_J1104.4+3812_daily_bin827.fits scfile=/scratch/kocevski/495375/ft2_4FGL_J1104.4+3812_daily_bin827.fits outfile=/scratch/kocevski/495375/cmap_HighResolution_453686401_453945601_4FGL_J1104.4+3812_daily_bin827.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .63440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8330       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4023       1.0000         .10000E-03   10000.    
    17 'Prefactor '    161.17       1.0000         .10000E-03   10000.    
    18 'norm      '    43.956       1.0000         .10000E-03   10000.    
    19 'norm      '    .10798E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12087E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.994       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .41051       1.0000         .10000E-03   10000.    
    23 'norm      '    .24586E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.357       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    56.702       1.0000         .10000E-03   10000.    
    27 'norm      '    .12011E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.0225       1.0000         .10000E-03   10000.    
    30 'Prefactor '    75.935       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86220       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92931       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=   5579.339     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4444 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5421        .19897E-06** at limit **
   2  Prefactor     .10000E-03    9.4268        .99038E-07** at limit **
   3  Prefactor     .10000E-03    1.9872        .77466E-07** at limit **
   4  norm          .63660        5.7317        .31634E-05    .28080E-03
   5  Prefactor     43.843        61.740       -.29914E-06    .83716E-05
   6  Prefactor     .10000E-03    14.413        .14005E-06** at limit **
   7  Prefactor     8.8321        5.6496       -.17791E-06    .59568E-04
   8  Prefactor     5.4758        5.1273       -.13178E-06    .27661E-04
   9  Prefactor     11.857        38.873       -.20834E-06    .15299E-04
  10  Prefactor     26.616        31.204       -.41903E-07    .20090E-04
  11  Prefactor     .10000E-03    38.165        .72003E-08** at limit **
  12  Prefactor     .10000E-03    4.6689        .92032E-07** at limit **
  13  norm          1.5484        .37651        .76806E-08    .92697E-03
  14  Prefactor     .10000E-03    1.1913        .65326E-07** at limit **
  15  Prefactor     .10000E-03    23.610       -.24329E-05** at limit **
  16  Prefactor     3.4046        10.466        .29427E-06    .69217E-04
  17  Prefactor     161.28        125.51       -.38187E-06   -.93749E-04
  18  norm          43.962        19.795        .59284E-06    .75241E-04
  19  norm          .10000E-03    104.43       -.18213E-05** at limit **
  20  Prefactor     .10000E-03    1.5310       -.92174E-06** at limit **
  21  Prefactor     25.141        44.212        .73590E-05    .17826E-03
  22  Prefactor     .48206        69.127       -.11330E-04    .15389E-03
  23  norm          .10000E-03    1.7690       -.76345E-06** at limit **
  24  Prefactor     14.343        14.137        .37444E-06    .18473E-03
  25  Prefactor     .10000E-03    1.3957       -.31343E-07** at limit **
  26  Prefactor     56.563        48.584       -.53271E-05   -.40915E-03
  27  norm          .10000E-03    .85380        .12672E-05** at limit **
  28  norm          .10000E-03    6.4348       -.10391E-06** at limit **
  29  Prefactor     9.0211        24.698        .92436E-07    .64056E-05
  30  Prefactor     75.894        56.681       -.19520E-05   -.31180E-03
  31  Normalizat    .86244        .17987        .14695E-05   -.28565E-03
  32  Prefactor     .92884        .20457       -.15746E-05    .96754E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.636597
  Prefactor  = 43.8434
  Prefactor  = 0.0001
  Prefactor  = 8.83208
  Prefactor  = 5.47585
  Prefactor  = 11.8567
  Prefactor  = 26.6164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54839
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.40464
  Prefactor  = 161.283
  norm       = 43.9621
  norm       = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 25.1412
  Prefactor  = 0.482063
  norm       = 0.0001
  Prefactor  = 14.343
  Prefactor  = 0.0001
  Prefactor  = 56.5631
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.02108
  Prefactor  = 75.8938
  Normalizat = 0.862442
  Prefactor  = 0.928842
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.339     FROM HESSE     STATUS=OK           659 CALLS     5103 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6029        .23206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1799        .20338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .63660        9.4596        .21777E-02   -1.5548    
   5  Prefactor     43.843        61.797        .60547E-04   -1.4383    
   6  Prefactor     .10000E-03    14.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8321        5.6639        .12476E-03   -1.5114    
   8  Prefactor     5.4758        5.1108        .15431E-03   -1.5240    
   9  Prefactor     11.857        38.766        .11638E-03   -1.5019    
  10  Prefactor     26.616        31.230        .77651E-04   -1.4676    
  11  Prefactor     .10000E-03    38.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6864        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5484        .37709        .21395E-04   -1.5459    
  14  Prefactor     .10000E-03    1.2075        .79575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4046        10.471        .10967E-02   -1.5339    
  17  Prefactor     161.28        125.29        .15883E-03   -1.3161    
  18  norm          43.962        19.768        .60469E-04   -1.4381    
  19  norm          .10000E-03    104.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.825        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.141        45.600        .80126E-04   -1.4705    
  22  Prefactor     .48206        156.60        .50596E-02   -1.5569    
  23  norm          .10000E-03    7.7614        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.343        14.362        .10571E-03   -1.4950    
  25  Prefactor     .10000E-03    1.3983        .86152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     56.563        51.129        .53274E-04   -1.4202    
  27  norm          .10000E-03    1.3804        .12192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.4565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.0211        24.700        .13343E-03   -1.5107    
  30  Prefactor     75.894        57.073        .46079E-04   -1.3963    
  31  Normalizat    .86244        .20585        .24248E-03   -.97793    
  32  Prefactor     .92884        .23331        .27979E-03   -.95140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4647e-09
Minuit parameter uncertainties:
  1  1.64548e-05
  2  1.34031e-05
  3  0.000120895
  4  4.90847
  5  61.8878
  6  1.53307e-05
  7  5.66422
  8  5.11123
  9  38.8482
  10  31.2493
  11  1.20081e-05
  12  6.97838e-06
  13  0.377091
  14  3.32921e-06
  15  0.000316551
  16  10.4771
  17  125.493
  18  19.7709
  19  0.000898359
  20  0.000445811
  21  45.6629
  22  17.4212
  23  7.50976e-06
  24  14.3651
  25  3.83513e-07
  26  51.1685
  27  8.74272e-05
  28  2.84173e-05
  29  24.7275
  30  57.1143
  31  0.206036
  32  0.233558
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.548e+00  3.771e-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.288e-01  2.336e-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.624e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 83.23
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.61e-07 +/- 3.91e-08
Energy Flux (Fixed Index): 2.17e-04 +/- 5.30e-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) = 5579.09499373
delta logL = 0.243850037984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5579.08138083
delta logL = 0.25746293586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5072       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8705       1.0000          .0000       5.0000    
     3 'Normalizat'    .83886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94239       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=   5579.081     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5072        .69298        .46191E-02   -.16446E-04
   2  alpha         1.8704        .35068        .11960        .34429E-04
   3  Normalizat    .83889        .17414        .44115E-01    .13379E-04
   4  Prefactor     .94238        .20351        .45543E-01    .10995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50721
  alpha      = 1.87042
  Normalizat = 0.838888
  Prefactor  = 0.94238
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.081     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5072        .36538        .20407E-04   -1.5462    
   2  alpha         1.8704        .19034        .51295E-02   -.25457    
   3  Normalizat    .83889        .19533        .24513E-03   -.98642    
   4  Prefactor     .94238        .23119        .27769E-03   -.94676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18221e-10
Minuit parameter uncertainties:
  1  0.365382
  2  0.190537
  3  0.195496
  4  0.231428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495375': 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) = 5579.08138071
delta logL = 0.257463061869

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.507e+00  3.654e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.870e+00  1.905e-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.424e-01  2.314e-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.389e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.50
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.87 +/- 0.19
Photon Flux (Free Index): 1.86e-07 +/- 5.60e-08
Energy Flux (Free Index): 1.73e-04 +/- 6.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/495375/cmap_HighResolution_453686401_453945601_4FGL_J1104.4+3812_daily_bin827.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.61e-07', energy_flux2='1.73e-04', photon_flux_error='3.91e-08', dlogl='2.57e-01', energy_flux='2.17e-04', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-03 07:06:51.730019', photon_index_error2='0.19', photon_index2='1.87', ts='83.23', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='6.71e-05', EG='0.86', time_epoch_completed='1630678011.73', return_code='0', job_id='495375', GAL2='0.94', EG2='0.84', return_code2='0', energy_flux_error='5.30e-05', photon_flux_error2='5.60e-08', ts2='83.50', photon_index='1.74' WHERE bin_id='827' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:06:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 495375: <4FGL_J1104.4+3812_daily_bin827> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin827 166.119 38.207 453686401 453945601 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 :                                   827.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            931 sec.

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

