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


Performing analysis on: 4FGL_J1740.5+5211_daily_bin727
RA = 265.136, Dec = 52.1927
tmin = 427766401, tmax = 428025601
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='984899', job_status='RUN', time_executed='2021-09-18 03:20:36.371025', time_epoch_executed='1631960436.37' WHERE source_name='4FGL J1740.5+5211' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984899/ft1_4FGL_J1740.5+5211_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984899/ft1_4FGL_J1740.5+5211_daily_bin727.fits outfile=/scratch/kocevski/984899/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin727.fits ra=265.136 dec=52.1927 rad=12.0 tmin=427766401.0 tmax=428025601.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 5.41
user 5.16
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.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/984899/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin727.fits evtable="EVENTS" outfile="/scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/984899/ltcube_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.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/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits
.....................!
real 12.13
user 11.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/984899/ltcube_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.fits outfile=/scratch/kocevski/984899/expmap_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.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/984899/ltcube_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.fits
.....................!
real 194.85
user 189.28
sys 5.16

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits scfile=/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits outfile=/scratch/kocevski/984899/cmap_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits scfile=/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits outfile=/scratch/kocevski/984899/cmap_HighResolution_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984899/Model_4FGL_J1740.5+5211_daily_bin727.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/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits.....................!
real 49.89
user 48.52
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits', '/scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits', expMap='/scratch/kocevski/984899/expmap_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.fits', expCube='/scratch/kocevski/984899/ltcube_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984899/Model_4FGL_J1740.5+5211_daily_bin727.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/984899/ft1_filtered_4FGL_J1740.5+5211_daily_bin727.fits
Spacecraft file(s): /scratch/kocevski/984899/ft2_4FGL_J1740.5+5211_daily_bin727.fits
Exposure map: /scratch/kocevski/984899/expmap_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.fits
Exposure cube: /scratch/kocevski/984899/ltcube_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984899/Model_4FGL_J1740.5+5211_daily_bin727.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) = 4978.72134155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2022       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42354E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6336       1.0000         .10000E-03   10000.    
     9 'norm      '    .14379       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92368       1.0000         .10000E-03   10000.    
    12 'norm      '    .17194       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.963       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3129       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0988       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.923       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.003       1.0000         .10000E-03   10000.    
    26 'norm      '    19.445       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.7779       1.0000         .10000E-03   10000.    
    29 'norm      '    25.076       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3252       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .68630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4978.713     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4390 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.197        19.040        .46995E-06   -.18355E-05
   2  Prefactor     3.2024        3.3193        .89093E-07   -.93008E-04
   3  Prefactor     9.1090        8.3822       -.47917E-06   -.34089E-03
   4  Prefactor     .61072        3.3176        .82992E-06   -.12351E-03
   5  Prefactor     .10000E-03    5.7965        .59999E-07** at limit **
   6  Prefactor     .10109E-03    63.016       -.34361E-04** at limit **
   7  norm          .10000E-03    .33963       -.12746E-06** at limit **
   8  Prefactor     1.6323        3.4792        .56401E-05   -.86140E-03
   9  norm          .14393        .55937        .46933E-07   -.69185E-04
  10  Prefactor     .10000E-03    3.9101        .19871E-07** at limit **
  11  Prefactor     .89600        12.741        .17748E-04    .70266E-03
  12  norm          .17027        1.0564       -.85727E-07   -.56417E-03
  13  Prefactor     10.963        5.4391        .23456E-06    .14523E-03
  14  Prefactor     .10000E-03    26.861        .25132E-05** at limit **
  15  norm          10.481        8.5877        .16298E-06    .12650E-03
  16  Prefactor     .10000E-03    24.676       -.15375E-05** at limit **
  17  Prefactor     2.3145        6.0896        .14838E-05    .46137E-03
  18  Prefactor     .10000E-03    49.537       -.59754E-05** at limit **
  19  Prefactor     .10000E-03    36.618        .60433E-06** at limit **
  20  Prefactor     .10000E-03    36.089        .10955E-05** at limit **
  21  Prefactor     1.0991        5.6526        .88465E-06   -.16948E-04
  22  Prefactor     .10000E-03    9.4633        .17865E-06** at limit **
  23  norm          .10000E-03    3.5909       -.33181E-07** at limit **
  24  Prefactor     17.921        18.967        .61783E-06   -.14509E-04
  25  Prefactor     20.004        23.902        .80794E-06    .12399E-05
  26  norm          19.447        15.166        .27210E-06   -.15421E-03
  27  Prefactor     .10000E-03    73.122        .43483E-05** at limit **
  28  norm          4.7789        17.671        .22180E-05   -.20450E-04
  29  norm          25.079        23.887        .62900E-07   -.26409E-04
  30  Prefactor     .10000E-03    2.8914       -.12669E-06** at limit **
  31  Normalizat    1.3253        .25131       -.57688E-05   -.40801E-03
  32  Prefactor     .68617        .16419        .10476E-05   -.30872E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1968
  Prefactor  = 3.20237
  Prefactor  = 9.109
  Prefactor  = 0.610716
  Prefactor  = 0.0001
  Prefactor  = 0.00010109
  norm       = 0.0001
  Prefactor  = 1.63225
  norm       = 0.143928
  Prefactor  = 0.0001
  Prefactor  = 0.895995
  norm       = 0.170272
  Prefactor  = 10.9626
  Prefactor  = 0.0001
  norm       = 10.4807
  Prefactor  = 0.0001
  Prefactor  = 2.31454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.9213
  Prefactor  = 20.0036
  norm       = 19.4467
  Prefactor  = 0.0001
  norm       = 4.77888
  norm       = 25.0785
  Prefactor  = 0.0001
  Normalizat = 1.32528
  Prefactor  = 0.686167
 **********
 **   18 **HESSE 
 **********

 FCN=   4978.713     FROM HESSE     STATUS=OK           669 CALLS     5059 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.197        19.040        .85018E-04   -1.4765    
   2  Prefactor     3.2024        3.3163        .12635E-03   -1.5350    
   3  Prefactor     9.1090        8.4365        .13277E-03   -1.5104    
   4  Prefactor     .61072        3.2870        .23783E-03   -1.5552    
   5  Prefactor     .10000E-03    5.8174        .16589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10109E-03    167.04        .63475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .42114        .79020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6323        5.2414        .13727E-02   -1.5452    
   9  norm          .14393        .54503        .98616E-04   -1.5632    
  10  Prefactor     .10000E-03    3.9469        .13612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .89600        20.510        .32396E-02   -1.5519    
  12  norm          .17027        1.7784        .13762E-02   -1.5625    
  13  Prefactor     10.963        5.4377        .11092E-03   -1.5046    
  14  Prefactor     .10000E-03    26.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.481        8.5517        .12375E-03   -1.5060    
  16  Prefactor     .10000E-03    24.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3145        6.0537        .26137E-03   -1.5404    
  18  Prefactor     .10000E-03    49.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0991        5.5208        .32624E-03   -1.5498    
  22  Prefactor     .10000E-03    9.4644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.6059        .13057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.921        18.965        .94605E-04   -1.4861    
  25  Prefactor     20.004        23.886        .89554E-04   -1.4813    
  26  norm          19.447        15.153        .90830E-04   -1.4826    
  27  Prefactor     .10000E-03    73.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.7789        17.571        .18406E-03   -1.5271    
  29  norm          25.079        23.874        .79994E-04   -1.4706    
  30  Prefactor     .10000E-03    2.9087        .11712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3253        .28853        .26011E-03   -.82815    
  32  Prefactor     .68617        .19311        .25033E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3094e-08
Minuit parameter uncertainties:
  1  19.0451
  2  3.31644
  3  8.43758
  4  2.83368
  5  1.88561e-05
  6  0.027057
  7  6.07463e-06
  8  5.24283
  9  0.545048
  10  6.96183e-06
  11  8.57659
  12  1.10027
  13  5.4379
  14  7.78358e-05
  15  8.55269
  16  1.8604e-06
  17  6.05531
  18  5.53647e-05
  19  3.75928e-05
  20  0.000128919
  21  4.92704
  22  5.93557e-06
  23  3.20633e-06
  24  18.9714
  25  23.8975
  26  15.1561
  27  0.000186019
  28  17.5895
  29  23.883
  30  1.25108e-05
  31  0.288882
  32  0.193301
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.315e+00  6.055e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  6.862e-01  1.933e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.325e+00  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 265.136 52.193
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984899/likelihoodResults_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.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) = 4978.58225856
delta logL = 0.130774907803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4978.57678079
delta logL = 0.136252681846

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4978.577     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9898        89.718        .73446E-02    .61365E-03
   2  Index         3.2029        6.6014        .21679        .60832E-04
   3  Normalizat    1.3015        .55506E-01    .59242E-01    .76266E-05
   4  Prefactor     .69487        .39825E-01    .42332E-01    .15300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98984
  Index      = 3.2029
  Normalizat = 1.30149
  Prefactor  = 0.694868
 **********
 **   18 **HESSE 
 **********

 FCN=   4978.577     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9898        5.2850        .14912E-03   -1.5426    
   2  Index         3.2029        1.5993        .94560E-02   -.36765    
   3  Normalizat    1.3015        .26725        .26200E-03   -.83522    
   4  Prefactor     .69487        .18908        .24880E-03   -1.0373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45868e-09
Minuit parameter uncertainties:
  1  5.28627
  2  1.63237
  3  0.267533
  4  0.189257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984899': 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) = 4978.57678072
delta logL = 0.136252747369

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  1.990e+00  5.286e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  3.203e+00  1.632e+00  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  6.949e-01  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.301e+00  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 265.136 52.193

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/984899/cmap_HighResolution_427766401_428025601_4FGL_J1740.5+5211_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-18 03:35:39.236644', job_id='984899', GAL2='0.69', fit_tolerance='1e-08', EG2='1.30', EG='1.33', time_epoch_completed='1631961339.24', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.36e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='727' AND source_name='4FGL J1740.5+5211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 03:35:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 984899: <4FGL_J1740.5+5211_daily_bin727> in cluster <slac> Done

Job <4FGL_J1740.5+5211_daily_bin727> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 03:20:20 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 03:20:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 03:20:23 2021
Terminated at Sat Sep 18 03:35:39 2021
Results reported at Sat Sep 18 03:35:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.5+5211_daily_bin727 265.136 52.1927 427766401 428025601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.5+5211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   899.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

