/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 5 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin158
RA = 166.119, Dec = 38.207
tmin = 280281601, tmax = 280540801
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='491255', job_status='RUN', time_executed='2021-09-03 06:39:30.216592', time_epoch_executed='1630676370.22' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491255/ft1_4FGL_J1104.4+3812_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491255/ft2_4FGL_J1104.4+3812_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491255/ft1_4FGL_J1104.4+3812_daily_bin158.fits outfile=/scratch/kocevski/491255/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin158.fits ra=166.119 dec=38.207 rad=12.0 tmin=280281601.0 tmax=280540801.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 4.75
user 4.06
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491255/ft1_filtered_4FGL_J1104.4+3812_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/491255/ft2_4FGL_J1104.4+3812_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/491255/ltcube_280281601_280540801_4FGL_J1104.4+3812_daily_bin158.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/491255/ft2_4FGL_J1104.4+3812_daily_bin158.fits
.....................!
real 14.55
user 13.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491255/ft1_filtered_4FGL_J1104.4+3812_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/491255/ft2_4FGL_J1104.4+3812_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/491255/ltcube_280281601_280540801_4FGL_J1104.4+3812_daily_bin158.fits outfile=/scratch/kocevski/491255/expmap_280281601_280540801_4FGL_J1104.4+3812_daily_bin158.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/491255/ltcube_280281601_280540801_4FGL_J1104.4+3812_daily_bin158.fits
.....................!
real 192.35
user 185.50
sys 5.45

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/491255/ft1_filtered_4FGL_J1104.4+3812_daily_bin158.fits scfile=/scratch/kocevski/491255/ft2_4FGL_J1104.4+3812_daily_bin158.fits outfile=/scratch/kocevski/491255/cmap_280281601_280540801_4FGL_J1104.4+3812_daily_bin158.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.76
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491255/ft1_filtered_4FGL_J1104.4+3812_daily_bin158.fits scfile=/scratch/kocevski/491255/ft2_4FGL_J1104.4+3812_daily_bin158.fits outfile=/scratch/kocevski/491255/cmap_HighResolution_280281601_280540801_4FGL_J1104.4+3812_daily_bin158.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.61
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.621       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    44.084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4202       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    123.56       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9808       1.0000         .10000E-03   10000.    
    13 'norm      '    .80480       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .75891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0003       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.111       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.610       1.0000         .10000E-03   10000.    
    23 'norm      '    5.7890       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.516       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.4122       1.0000         .10000E-03   10000.    
    28 'norm      '    18.354       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1680       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84134       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=   5880.254     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     4353 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0872       -.16369E-06** at limit **
   2  Prefactor     20.624        33.560       -.17913E-06   -.74891E-05
   3  Prefactor     .10000E-03    2.2061       -.15555E-06** at limit **
   4  norm          44.085        15.399       -.56384E-07   -.89757E-05
   5  Prefactor     .10000E-03    117.35       -.78121E-06** at limit **
   6  Prefactor     .10000E-03    11.712       -.13217E-07** at limit **
   7  Prefactor     1.4206        5.0881        .20551E-05    .33275E-03
   8  Prefactor     .10000E-03    2.7779       -.90552E-07** at limit **
   9  Prefactor     .10000E-03    39.071        .14337E-05** at limit **
  10  Prefactor     .10000E-03    7.7086       -.85540E-07** at limit **
  11  Prefactor     123.48        115.97        .28211E-05    .75240E-04
  12  Prefactor     5.9695        10.633        .42651E-06    .10017E-03
  13  norm          .80475        .37135        .23057E-06    .28638E-02
  14  Prefactor     .10000E-03    2.6449       -.26908E-06** at limit **
  15  Prefactor     .73570        19.155       -.57490E-05    .43470E-03
  16  Prefactor     7.0389        28.848        .21679E-05    .27124E-03
  17  Prefactor     .10000E-03    41.975       -.12679E-06** at limit **
  18  norm          25.116        17.265        .14837E-05    .42538E-03
  19  norm          .10000E-03    43.393       -.79823E-06** at limit **
  20  Prefactor     .10000E-03    1.5807       -.22783E-06** at limit **
  21  Prefactor     .10000E-03    115.82       -.12157E-05** at limit **
  22  Prefactor     17.614        20.969        .34970E-06    .57546E-04
  23  norm          5.7890        3.2510        .43513E-07    .36721E-03
  24  Prefactor     .10000E-03    7.2138       -.45453E-07** at limit **
  25  Prefactor     10.516        7.0895        .12380E-06    .16990E-03
  26  Prefactor     .10000E-03    41.948       -.40779E-06** at limit **
  27  norm          2.4124        1.1557        .42604E-08    .13017E-03
  28  norm          18.353        11.510       -.26271E-07    .71965E-05
  29  Prefactor     .10000E-03    42.081       -.87699E-06** at limit **
  30  Prefactor     .10000E-03    18.622       -.11481E-06** at limit **
  31  Normalizat    1.1678        .19189       -.11744E-05    .64704E-03
  32  Prefactor     .84153        .21541        .19456E-05    .18848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.624
  Prefactor  = 0.0001
  norm       = 44.0853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.477
  Prefactor  = 5.96946
  norm       = 0.804751
  Prefactor  = 0.0001
  Prefactor  = 0.735702
  Prefactor  = 7.03889
  Prefactor  = 0.0001
  norm       = 25.1156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6143
  norm       = 5.78905
  Prefactor  = 0.0001
  Prefactor  = 10.516
  Prefactor  = 0.0001
  norm       = 2.41239
  norm       = 18.3531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1678
  Prefactor  = 0.841532
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.254     FROM HESSE     STATUS=OK           655 CALLS     5008 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1383        .21625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.624        33.598        .88204E-04   -1.4799    
   3  Prefactor     .10000E-03    2.2423        .11116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          44.085        15.416        .60382E-04   -1.4379    
   5  Prefactor     .10000E-03    118.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4206        5.2254        .15396E-02   -1.5470    
   8  Prefactor     .10000E-03    2.8207        .12478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     123.48        116.48        .18104E-03   -1.3481    
  12  Prefactor     5.9695        10.372        .16419E-03   -1.5219    
  13  norm          .80475        .37987        .25644E-04   -1.5529    
  14  Prefactor     .10000E-03    5.2689        .23331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .73570        129.31        .45532E-02   -1.5536    
  16  Prefactor     7.0389        35.849        .15163E-03   -1.5177    
  17  Prefactor     .10000E-03    41.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.116        17.387        .79940E-04   -1.4705    
  19  norm          .10000E-03    43.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6101        .93944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    116.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.614        20.970        .95442E-04   -1.4868    
  23  norm          5.7890        3.2363        .97085E-04   -1.5227    
  24  Prefactor     .10000E-03    7.2324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.516        7.1023        .12356E-03   -1.5059    
  26  Prefactor     .10000E-03    42.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.4124        1.1560        .54194E-04   -1.5397    
  28  norm          18.353        11.511        .93489E-04   -1.4851    
  29  Prefactor     .10000E-03    42.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1678        .22807        .23487E-03   -.87604    
  32  Prefactor     .84153        .25031        .32001E-03   -.98215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30297e-09
Minuit parameter uncertainties:
  1  3.49706e-06
  2  33.6292
  3  3.03102e-06
  4  15.417
  5  3.34453e-05
  6  4.17086e-07
  7  5.22704
  8  1.10551e-06
  9  0.000142253
  10  3.60975e-06
  11  116.694
  12  10.3749
  13  0.379871
  14  4.99048e-05
  15  19.5492
  16  31.8002
  17  1.49401e-05
  18  17.3909
  19  0.000126275
  20  3.28935e-06
  21  0.000207014
  22  20.9791
  23  3.23635
  24  2.37357e-06
  25  7.10291
  26  3.58666e-05
  27  1.15601
  28  11.5121
  29  5.04158e-05
  30  5.66846e-06
  31  0.228267
  32  0.250648
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  8.048e-01  3.799e-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:  8.415e-01  2.506e-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.168e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.02
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 8.36e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 1.13e-04 +/- 5.34e-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) = 5879.82168488
delta logL = 0.431866002767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5879.82109365
delta logL = 0.432457231311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75104       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0149       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85640       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=   5879.821     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75094        4.1149        .52193E-02   -.47079E-02
   2  alpha         2.0150        3.5043        .18267       -.53713E-04
   3  Normalizat    1.1397        .11618        .53619E-01   -.23132E-03
   4  Prefactor     .85647        .10432        .71681E-01   -.59546E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.750941
  alpha      = 2.01496
  Normalizat = 1.13967
  Prefactor  = 0.856473
 **********
 **   18 **HESSE 
 **********

 FCN=   5879.821     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75094        .31183        .23154E-04   -1.5535    
   2  alpha         2.0150        .31329        .73928E-02   -.19525    
   3  Normalizat    1.1397        .21183        .23708E-03   -.88488    
   4  Prefactor     .85647        .24730        .31718E-03   -.97679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07468e-10
Minuit parameter uncertainties:
  1  0.311827
  2  0.314153
  3  0.21199
  4  0.247623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491255': 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) = 5879.82109356
delta logL = 0.432457325443

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  7.509e-01  3.118e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  2.015e+00  3.142e-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:  8.565e-01  2.476e-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.140e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.85
Ra Dec: 166.119 38.207
Photon Index (Free Index): 2.01 +/- 0.31
Photon Flux (Free Index): 1.15e-07 +/- 5.23e-08
Energy Flux (Free Index): 7.47e-05 +/- 4.20e-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/491255/cmap_HighResolution_280281601_280540801_4FGL_J1104.4+3812_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.36e-08', energy_flux2='7.47e-05', photon_flux_error='3.94e-08', dlogl='4.32e-01', energy_flux='1.13e-04', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-03 06:53:52.219342', photon_index_error2='0.31', photon_index2='2.01', ts='17.02', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.20e-05', EG='1.17', time_epoch_completed='1630677232.22', return_code='0', job_id='491255', GAL2='0.86', EG2='1.14', return_code2='0', energy_flux_error='5.34e-05', photon_flux_error2='5.23e-08', ts2='17.85', photon_index='1.74' WHERE bin_id='158' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:53:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 491255: <4FGL_J1104.4+3812_daily_bin158> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin158> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 06:37:22 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:38:04 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:38:04 2021
Terminated at Fri Sep  3 06:53:54 2021
Results reported at Fri Sep  3 06:53:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin158 166.119 38.207 280281601 280540801 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 :                                   852.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            992 sec.

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

