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


Performing analysis on: 4FGL_J1104.9+5748_daily_bin654
RA = 166.24, Dec = 57.8079
tmin = 408844801, tmax = 409104001
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='503261', job_status='RUN', time_executed='2021-09-03 07:21:19.600298', time_epoch_executed='1630678879.6' WHERE source_name='4FGL J1104.9+5748' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503261/ft1_4FGL_J1104.9+5748_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503261/ft1_4FGL_J1104.9+5748_daily_bin654.fits outfile=/scratch/kocevski/503261/ft1_filteredMKT_4FGL_J1104.9+5748_daily_bin654.fits ra=166.24 dec=57.8079 rad=12.0 tmin=408844801.0 tmax=409104001.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.51
user 4.12
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503261/ft1_filtered_4FGL_J1104.9+5748_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/503261/ltcube_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.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/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits
.....................!
real 16.43
user 16.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503261/ft1_filtered_4FGL_J1104.9+5748_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/503261/ltcube_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.fits outfile=/scratch/kocevski/503261/expmap_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.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/503261/ltcube_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.fits
.....................!
real 192.97
user 186.70
sys 4.95

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/503261/ft1_filtered_4FGL_J1104.9+5748_daily_bin654.fits scfile=/scratch/kocevski/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits outfile=/scratch/kocevski/503261/cmap_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.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.62
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503261/ft1_filtered_4FGL_J1104.9+5748_daily_bin654.fits scfile=/scratch/kocevski/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits outfile=/scratch/kocevski/503261/cmap_HighResolution_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.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.64
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/503261/ft1_filtered_4FGL_J1104.9+5748_daily_bin654.fits', '/scratch/kocevski/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits', expMap='/scratch/kocevski/503261/expmap_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.fits', expCube='/scratch/kocevski/503261/ltcube_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/503261/Model_4FGL_J1104.9+5748_daily_bin654.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/503261/ft1_filtered_4FGL_J1104.9+5748_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/503261/ft2_4FGL_J1104.9+5748_daily_bin654.fits
Exposure map: /scratch/kocevski/503261/expmap_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.fits
Exposure cube: /scratch/kocevski/503261/ltcube_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/503261/Model_4FGL_J1104.9+5748_daily_bin654.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) = 577.950929642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    199.92       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.709       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0391       1.0000         .10000E-03   10000.    
     8 'norm      '    10.266       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    52.021       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11352E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    269.48       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    505.21       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.302       1.0000         .10000E-03   10000.    
    20 'Prefactor '    522.63       1.0000         .10000E-03   10000.    
    21 'norm      '    .10520E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    31.496       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    214.42       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .30718       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .97272       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   577.9114     FROM MIGRAD    STATUS=CONVERGED   1634 CALLS     6293 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.626        .12350E-02** at limit **
   2  Prefactor     .10000E-03    16.789        .96221E-03** at limit **
   3  norm          .10000E-03    27.309        .12278E-02** at limit **
   4  Prefactor     199.91        140.61        .14289E-03   -.31134E-04
   5  norm          2.3668        1.9116        .29051E-04   -.71762E-04
   6  Prefactor     34.694        33.861        .68020E-04   -.59726E-04
   7  norm          3.0382        3.1135        .40815E-04   -.32942E-03
   8  norm          10.267        10.223        .74622E-04   -.60845E-04
   9  Prefactor     .10000E-03    64.183        .18142E-02** at limit **
  10  norm          52.026        82.497        .55606E-04   -.35191E-04
  11  Prefactor     .10001E-03    1555.5        .57318E-02** at limit **
  12  norm          .10000E-03    6.1822        .58280E-03** at limit **
  13  norm          13.045        11.373        .71833E-04   -.11864E-03
  14  Prefactor     .10000E-03    677.58        .18142E-02** at limit **
  15  Prefactor     267.76        577.44        .12351E-03    .11621E-04
  16  Prefactor     .10000E-03    422.57        .18142E-02** at limit **
  17  norm          .10000E-03    5.4579        .54859E-03** at limit **
  18  Prefactor     505.16        365.11        .91317E-04   -.25568E-04
  19  Prefactor     53.320        101.68        .54938E-04   -.51636E-04
  20  Prefactor     522.27        567.53        .89865E-04   -.19096E-04
  21  norm          .10000E-03    445.99        .18142E-02** at limit **
  22  Prefactor     .10000E-03    10.023        .74361E-03** at limit **
  23  Prefactor     .10000E-03    47.901        .16268E-02** at limit **
  24  Prefactor     .10001E-03    212.98        .18142E-02** at limit **
  25  norm          .10000E-03    77.484        .18142E-02** at limit **
  26  Prefactor     .10000E-03    6.5450        .60083E-03** at limit **
  27  norm          31.485        22.426        .71396E-04   -.14367E-03
  28  Prefactor     .10000E-03    41.893        .15179E-02** at limit **
  29  Prefactor     .10000E-03    62.169        .18142E-02** at limit **
  30  norm          .10000E-03    2.6448        .38197E-03** at limit **
  31  Prefactor     .10000E-03    81.738        .18142E-02** at limit **
  32  Prefactor     214.22        251.45        .13807E-03   -.15823E-04
  33  Normalizat    .30809        .64144        .36776E-03    .22323E-04
  34  Prefactor     .97253        .77744        .26486E-03    .67312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 199.911
  norm       = 2.36679
  Prefactor  = 34.6939
  norm       = 3.03816
  norm       = 10.2669
  Prefactor  = 0.0001
  norm       = 52.0261
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 13.0449
  Prefactor  = 0.000100001
  Prefactor  = 267.763
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 505.158
  Prefactor  = 53.3199
  Prefactor  = 522.273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.4854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 214.224
  Normalizat = 0.308091
  Prefactor  = 0.972534
 **********
 **   18 **HESSE 
 **********

 FCN=   577.9114     FROM HESSE     STATUS=OK           698 CALLS     6991 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.626        .24700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.789        .19244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.309        .24557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     199.91        140.61        .28577E-04   -1.2871    
   5  norm          2.3668        1.9116        .11620E-05   -1.5400    
   6  Prefactor     34.694        33.860        .13604E-04   -1.4529    
   7  norm          3.0382        3.1135        .81630E-05   -1.5359    
   8  norm          10.267        10.223        .29849E-05   -1.5067    
   9  Prefactor     .10000E-03    64.183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          52.026        82.489        .11121E-04   -1.4264    
  11  Prefactor     .10001E-03    1593.5        .22927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.1823        .11656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.045        11.367        .14367E-04   -1.4985    
  14  Prefactor     .10000E-03    677.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     267.76        577.26        .24702E-04   -1.2420    
  16  Prefactor     .10000E-03    422.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4579        .10972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     505.16        365.05        .18263E-04   -1.1174    
  19  Prefactor     53.320        101.64        .10988E-04   -1.4246    
  20  Prefactor     522.27        567.56        .17973E-04   -1.1097    
  21  norm          .10000E-03    446.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.023        .14872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    47.901        .32536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    213.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    77.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.5450        .12017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          31.485        22.425        .14279E-04   -1.4585    
  28  Prefactor     .10000E-03    41.895        .30358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    62.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    2.6448        .76394E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    81.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     214.22        251.42        .27615E-04   -1.2770    
  33  Normalizat    .30809        .63941        .14710E-04   -1.2236    
  34  Prefactor     .97253        .77616        .52972E-04   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96072e-10
Minuit parameter uncertainties:
  1  4.10704e-06
  2  5.72395e-06
  3  3.42237e-05
  4  140.847
  5  1.91166
  6  33.8783
  7  3.11363
  8  10.2243
  9  3.55368e-05
  10  82.6709
  11  0.00597162
  12  1.83276e-05
  13  11.3687
  14  0.00127441
  15  590.33
  16  0.000445918
  17  4.0631e-05
  18  366.766
  19  101.974
  20  573.901
  21  0.000359576
  22  1.39078e-05
  23  0.000100539
  24  0.00273712
  25  1.1264e-05
  26  1.12439e-05
  27  22.4307
  28  0.000122362
  29  8.45778e-05
  30  8.90851e-07
  31  0.000225889
  32  252.701
  33  0.655543
  34  0.785319
Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  5.332e+01  1.020e+02  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:  9.725e-01  7.853e-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:  3.081e-01  6.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/503261/likelihoodResults_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.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) = 577.837154404
delta logL = 0.0742924845842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 577.83595316
delta logL = 0.0754937294168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.584       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8959       1.0000          .0000       10.000    
     3 'Normalizat'    .36972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90453       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   577.8359     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      259 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.146        139.85        .22370E-03    .20792E-04
   2  Index         1.9037        1.2818        .70455E-02   -.99854E-05
   3  Normalizat    .36897        .58389        .33671E-03    .49790E-04
   4  Prefactor     .90492        .73507        .27289E-03    .18940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.1461
  Index      = 1.90367
  Normalizat = 0.368968
  Prefactor  = 0.904922
 **********
 **   18 **HESSE 
 **********

 FCN=   577.8359     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.146        139.56        .89481E-05   -1.3904    
   2  Index         1.9037        1.2786        .28182E-03   -.66781    
   3  Normalizat    .36897        .58403        .13468E-04   -1.1894    
   4  Prefactor     .90492        .73532        .54578E-04   -.95969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25195e-09
Minuit parameter uncertainties:
  1  140.134
  2  1.30239
  3  0.594089
  4  0.743618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503261': 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) = 577.835924666
delta logL = 0.0755222226667

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  8.115e+01  1.401e+02  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.904e+00  1.302e+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:  9.049e-01  7.436e-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:  3.690e-01  5.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 166.240 57.808

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/503261/cmap_HighResolution_408844801_409104001_4FGL_J1104.9+5748_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-02', job_status='DONE', photon_flux_upper_limit='5.16e-07', time_completed='2021-09-03 07:29:02.639196', job_id='503261', GAL2='0.90', fit_tolerance='1e-08', EG2='0.37', EG='0.31', time_epoch_completed='1630679342.64', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.55e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='654' AND source_name='4FGL J1104.9+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:29:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 503261: <4FGL_J1104.9+5748_daily_bin654> in cluster <slac> Done

Job <4FGL_J1104.9+5748_daily_bin654> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 07:16:56 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:20:12 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:20:12 2021
Terminated at Fri Sep  3 07:29:03 2021
Results reported at Fri Sep  3 07:29:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.9+5748_daily_bin654 166.24 57.8079 408844801 409104001 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 :                                   452.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            727 sec.

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

