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


Performing analysis on: 4FGL_J1104.9+5748_daily_bin770
RA = 166.24, Dec = 57.8079
tmin = 438912001, tmax = 439171201
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='504677', job_status='RUN', time_executed='2021-09-03 07:25:20.279527', time_epoch_executed='1630679120.28' WHERE source_name='4FGL J1104.9+5748' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504677

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504677/ft1_4FGL_J1104.9+5748_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504677/ft1_4FGL_J1104.9+5748_daily_bin770.fits outfile=/scratch/kocevski/504677/ft1_filteredMKT_4FGL_J1104.9+5748_daily_bin770.fits ra=166.24 dec=57.8079 rad=12.0 tmin=438912001.0 tmax=439171201.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.57
user 5.91
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.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/504677/ft1_filteredMKT_4FGL_J1104.9+5748_daily_bin770.fits evtable="EVENTS" outfile="/scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.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.69
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/504677/ltcube_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.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/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits
.....................!
real 17.73
user 17.09
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/504677/ltcube_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.fits outfile=/scratch/kocevski/504677/expmap_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.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/504677/ltcube_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.fits
.....................!
real 191.81
user 187.03
sys 4.03

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 233 point sources and 0 extended sources

Setting source of interest to:
4FGL J1104.9+5748 @ 166.24 57.8079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits scfile=/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits outfile=/scratch/kocevski/504677/cmap_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.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.24 yref=57.8079 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits scfile=/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits outfile=/scratch/kocevski/504677/cmap_HighResolution_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.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.24 yref=57.8079 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504677/Model_4FGL_J1104.9+5748_daily_bin770.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/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits.....................!
real 43.00
user 41.62
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits', '/scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits', expMap='/scratch/kocevski/504677/expmap_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.fits', expCube='/scratch/kocevski/504677/ltcube_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504677/Model_4FGL_J1104.9+5748_daily_bin770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.9+5748'

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  2.714e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/504677/ft1_filtered_4FGL_J1104.9+5748_daily_bin770.fits
Spacecraft file(s): /scratch/kocevski/504677/ft2_4FGL_J1104.9+5748_daily_bin770.fits
Exposure map: /scratch/kocevski/504677/expmap_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.fits
Exposure cube: /scratch/kocevski/504677/ltcube_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504677/Model_4FGL_J1104.9+5748_daily_bin770.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) = 3720.42032345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5780       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0108       1.0000         .10000E-03   10000.    
     8 'norm      '    7.9379       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.031       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12777E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0829       1.0000         .10000E-03   10000.    
    27 'norm      '    .14598E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.1784       1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.7086       1.0000         .10000E-03   10000.    
    32 'Prefactor '    22.132       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2594       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .76395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3720.340     FROM MIGRAD    STATUS=CONVERGED    923 CALLS     4099 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.766       -.37285E-07** at limit **
   2  Prefactor     3.5810        12.168        .87035E-06   -.79584E-05
   3  norm          .10000E-03    6.5625        .74113E-07** at limit **
   4  Prefactor     .10000E-03    16.497        .69834E-07** at limit **
   5  norm          1.6285        .88853       -.26105E-08   -.12550E-04
   6  Prefactor     .10000E-03    4.9045        .13457E-06** at limit **
   7  norm          1.0107        1.7612       -.10548E-07    .18650E-04
   8  norm          7.9379        4.9860        .45955E-07   -.89194E-05
   9  Prefactor     .10000E-03    27.956        .34507E-06** at limit **
  10  norm          .10000E-03    22.334       -.21796E-08** at limit **
  11  Prefactor     .10000E-03    26.212       -.15279E-06** at limit **
  12  norm          12.030        5.1681        .91948E-07   -.32423E-04
  13  norm          .10000E-03    1.0603        .12511E-06** at limit **
  14  Prefactor     49.361        739.88       -.11034E-04    .41941E-06
  15  Prefactor     .10000E-03    129.53        .86995E-06** at limit **
  16  Prefactor     .10000E-03    78.422        .17067E-06** at limit **
  17  norm          .10000E-03    1.0249       -.22055E-07** at limit **
  18  Prefactor     .10000E-03    32.439        .28419E-06** at limit **
  19  Prefactor     9.2746        30.742        .73498E-06   -.11449E-04
  20  Prefactor     .10000E-03    48.697        .24853E-06** at limit **
  21  norm          .10000E-03    20.788        .87625E-07** at limit **
  22  Prefactor     .10000E-03    8.1248        .32735E-06** at limit **
  23  Prefactor     .10000E-03    49.272        .36991E-06** at limit **
  24  Prefactor     .10000E-03    14.253       -.85819E-07** at limit **
  25  norm          .10000E-03    7.8253        .21867E-06** at limit **
  26  Prefactor     1.0804        2.7244        .66237E-06   -.10908E-04
  27  norm          .10000E-03    5.2840        .21896E-06** at limit **
  28  Prefactor     .10000E-03    4.4705       -.45839E-07** at limit **
  29  Prefactor     .10000E-03    11.356       -.20644E-06** at limit **
  30  norm          1.1774        2.8050        .94772E-06   -.38242E-04
  31  Prefactor     8.6846        30.514        .25582E-06   -.72455E-05
  32  Prefactor     22.060        40.160       -.35629E-06   -.93162E-05
  33  Normalizat    1.2595        .22846       -.19573E-05   -.31473E-04
  34  Prefactor     .76391        .25402        .21958E-06   -.89223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.58101
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62855
  Prefactor  = 0.0001
  norm       = 1.01068
  norm       = 7.9379
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0299
  norm       = 0.0001
  Prefactor  = 49.3606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.27461
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.08037
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17738
  Prefactor  = 8.6846
  Prefactor  = 22.0599
  Normalizat = 1.25952
  Prefactor  = 0.763912
 **********
 **   18 **HESSE 
 **********

 FCN=   3720.340     FROM HESSE     STATUS=OK           726 CALLS     4825 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5810        12.126        .21365E-03   -1.5329    
   3  norm          .10000E-03    6.5644        .15262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6285        .89056        .41217E-04   -1.5453    
   6  Prefactor     .10000E-03    4.9136        .13195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0107        1.6236        .10181E-02   -1.5507    
   8  norm          7.9379        4.9876        .10505E-03   -1.5144    
   9  Prefactor     .10000E-03    28.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    22.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.030        5.1653        .87474E-04   -1.5014    
  13  norm          .10000E-03    1.0708        .61370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.361        744.23        .28301E-03   -1.4302    
  15  Prefactor     .10000E-03    129.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    78.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0261        .60262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2746        30.936        .13132E-03   -1.5099    
  20  Prefactor     .10000E-03    48.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    20.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.2206        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    49.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.8393        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0804        2.6760        .15430E-03   -1.5500    
  27  norm          .10000E-03    11.142        .26884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.4911        .12581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    11.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.1774        2.7848        .14262E-03   -1.5491    
  31  Prefactor     8.6846        30.619        .13583E-03   -1.5118    
  32  Prefactor     22.060        40.153        .85142E-04   -1.4768    
  33  Normalizat    1.2595        .26458        .21628E-03   -.84783    
  34  Prefactor     .76391        .30004        .32134E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1683e-10
Minuit parameter uncertainties:
  1  5.98061e-06
  2  12.1339
  3  3.45557e-08
  4  1.71701e-06
  5  0.890567
  6  1.60588e-06
  7  1.62371
  8  4.98782
  9  1.02967e-05
  10  8.79041e-06
  11  2.56095e-05
  12  5.16546
  13  6.03145e-07
  14  389.268
  15  2.47368e-05
  16  4.09084e-05
  17  9.76279e-07
  18  6.98001e-06
  19  30.9892
  20  8.18692e-06
  21  2.5112e-06
  22  9.75217e-06
  23  4.22723e-05
  24  1.19943e-05
  25  3.59627e-07
  26  2.67632
  27  0.000140012
  28  5.0655e-06
  29  1.1388e-05
  30  2.78508
  31  30.674
  32  40.2021
  33  0.264863
  34  0.300678
Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  9.275e+00  3.099e+01  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  7.639e-01  3.007e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.260e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504677/likelihoodResults_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.txt

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) = 3719.87217721
delta logL = 0.467451574859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3719.83350749
delta logL = 0.506121295081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4669       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0415       1.0000          .0000       10.000    
     3 'Normalizat'    1.1948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3719.834     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      259 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4607        142.16        .47629E-02    .33728E-03
   2  Index         4.0425        6.9268        .12158        .10981E-03
   3  Normalizat    1.1948        .73483E-01    .35020E-01   -.11361E-03
   4  Prefactor     .81257        .86043E-01    .70614E-01   -.43697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.46074
  Index      = 4.04251
  Normalizat = 1.19484
  Prefactor  = 0.812572
 **********
 **   18 **HESSE 
 **********

 FCN=   3719.834     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4607        29.617        .12890E-03   -1.5286    
   2  Index         4.0425        2.7442        .59361E-02   -.19269    
   3  Normalizat    1.1948        .25806        .22094E-03   -.86762    
   4  Prefactor     .81257        .30018        .31246E-03   -.99267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61278e-10
Minuit parameter uncertainties:
  1  23.0044
  2  2.91212
  3  0.258332
  4  0.300784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504677': 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) = 3719.83350724
delta logL = 0.506121548018

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  4.461e+00  2.300e+01  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  4.043e+00  2.912e+00  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  8.126e-01  3.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.195e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 166.240 57.808
Photon Index (Free Index): 4.04 +/- 2.91
Photon Flux (Free Index): 7.51e-08 +/- 8.17e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.26e-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/504677/cmap_HighResolution_438912001_439171201_4FGL_J1104.9+5748_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='5.06e-01', photon_flux2='7.51e-08', job_status='DONE', time_completed='2021-09-03 07:38:52.795615', photon_index_error2='2.91', photon_index2='4.04', ts='0.11', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.26e-05', EG='1.26', time_epoch_completed='1630679932.8', return_code='0', job_id='504677', GAL2='0.81', EG2='1.19', return_code2='0', photon_flux_error2='8.17e-08', ts2='1.19', photon_index='2.60' WHERE bin_id='770' AND source_name='4FGL J1104.9+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 504677: <4FGL_J1104.9+5748_daily_bin770> in cluster <slac> Done

Job <4FGL_J1104.9+5748_daily_bin770> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 07:22:32 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:23:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 07:23:46 2021
Terminated at Fri Sep  3 07:38:53 2021
Results reported at Fri Sep  3 07:38:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.9+5748_daily_bin770 166.24 57.8079 438912001 439171201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.9+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   806.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             307.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            981 sec.

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

