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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin994
RA = 264.886, Dec = 49.932
tmin = 496972801, tmax = 497232001
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='964499', job_status='RUN', time_executed='2021-09-18 02:07:34.228141', time_epoch_executed='1631956054.23' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964499/ft1_4FGL_J1739.5+4955_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964499/ft1_4FGL_J1739.5+4955_daily_bin994.fits outfile=/scratch/kocevski/964499/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin994.fits ra=264.886 dec=49.932 rad=12.0 tmin=496972801.0 tmax=497232001.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.16
user 4.85
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.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/964499/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.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/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/964499/ltcube_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.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/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits
.....................!
real 11.92
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/964499/ltcube_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.fits outfile=/scratch/kocevski/964499/expmap_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.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/964499/ltcube_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.fits
.....................!
real 192.18
user 187.23
sys 4.60

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

Setting source of interest to:
4FGL J1739.5+4955 @ 264.886 49.932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits scfile=/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits outfile=/scratch/kocevski/964499/cmap_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.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=264.886 yref=49.932 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits scfile=/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits outfile=/scratch/kocevski/964499/cmap_HighResolution_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.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=264.886 yref=49.932 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/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964499/Model_4FGL_J1739.5+4955_daily_bin994.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/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits.....................!
real 44.14
user 42.84
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits', '/scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits', expMap='/scratch/kocevski/964499/expmap_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.fits', expCube='/scratch/kocevski/964499/ltcube_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/964499/Model_4FGL_J1739.5+4955_daily_bin994.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1739.5+4955'

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  3.625e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/964499/ft1_filtered_4FGL_J1739.5+4955_daily_bin994.fits
Spacecraft file(s): /scratch/kocevski/964499/ft2_4FGL_J1739.5+4955_daily_bin994.fits
Exposure map: /scratch/kocevski/964499/expmap_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.fits
Exposure cube: /scratch/kocevski/964499/ltcube_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/964499/Model_4FGL_J1739.5+4955_daily_bin994.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) = 4128.01638091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0101       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85408E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.034       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4392       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.712       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7265       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.653       1.0000         .10000E-03   10000.    
    12 'norm      '    .11382E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11174E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5529       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11463E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    52.392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2698       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.343       1.0000         .10000E-03   10000.    
    23 'Prefactor '    245.90       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.563       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.4328       1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.406       1.0000         .10000E-03   10000.    
    29 'norm      '    4.3805       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    38.199       1.0000         .10000E-03   10000.    
    32 'norm      '    17.081       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .69333       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .87106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4127.940     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     5112 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.039        .12476E-05** at limit **
   2  Prefactor     1.0071        12.851       -.13936E-05    .34776E-04
   3  Prefactor     .10000E-03    217.35       -.58022E-04** at limit **
   4  Prefactor     3.0710        5.3546       -.13784E-06    .77243E-04
   5  Prefactor     13.035        8.2277       -.27418E-07    .47921E-04
   6  Prefactor     3.4470        27.918       -.64494E-06    .15637E-04
   7  Prefactor     22.716        35.729        .82056E-08    .11542E-04
   8  norm          3.7516        1.8503       -.11628E-08    .18693E-03
   9  Prefactor     .10000E-03    5.4865        .13775E-06** at limit **
  10  norm          1.7268        1.3574       -.18527E-08    .59061E-04
  11  Prefactor     10.656        9.1713        .44754E-07    .30723E-04
  12  norm          .10000E-03    21.167        .29148E-06** at limit **
  13  Prefactor     .10000E-03    5.1689        .23525E-06** at limit **
  14  norm          3.2619        2.9127       -.48285E-07   -.67927E-04
  15  Prefactor     .10000E-03    4.9589        .17805E-06** at limit **
  16  Prefactor     .10000E-03    22.760       -.98352E-06** at limit **
  17  norm          5.5543        7.2989        .19753E-06    .13579E-03
  18  Prefactor     .10000E-03    124.68       -.79698E-05** at limit **
  19  norm          52.389        16.426        .62482E-07   -.25121E-03
  20  Prefactor     .10000E-03    36.481       -.53980E-06** at limit **
  21  Prefactor     7.2757        9.9191       -.81562E-06   -.82674E-04
  22  Prefactor     21.301        60.173       -.55398E-05   -.92967E-05
  23  Prefactor     245.86        150.92       -.18844E-05    .19093E-05
  24  Prefactor     .10000E-03    96.644        .79831E-05** at limit **
  25  Prefactor     12.564        13.245        .88183E-07    .34476E-06
  26  Prefactor     .10000E-03    12.255       -.57436E-06** at limit **
  27  norm          8.4344        11.976       -.98295E-06   -.82001E-04
  28  Prefactor     26.414        24.676        .35676E-06   -.11312E-05
  29  norm          4.3807        4.6163        .73624E-07    .37239E-05
  30  Prefactor     .10000E-03    11.238        .59341E-06** at limit **
  31  norm          38.201        17.601       -.17174E-06   -.70013E-04
  32  norm          17.080        14.838       -.12043E-06   -.32990E-04
  33  Prefactor     .10000E-03    3.1664        .20572E-07** at limit **
  34  Normalizat    .69239        .32410       -.56884E-06   -.60647E-04
  35  Prefactor     .87165        .18854        .50060E-06   -.26163E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.00712
  Prefactor  = 0.0001
  Prefactor  = 3.07098
  Prefactor  = 13.0352
  Prefactor  = 3.44701
  Prefactor  = 22.7157
  norm       = 3.75162
  Prefactor  = 0.0001
  norm       = 1.72676
  Prefactor  = 10.6559
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.55426
  Prefactor  = 0.0001
  norm       = 52.3889
  Prefactor  = 0.0001
  Prefactor  = 7.27569
  Prefactor  = 21.3006
  Prefactor  = 245.863
  Prefactor  = 0.0001
  Prefactor  = 12.564
  Prefactor  = 0.0001
  norm       = 8.43436
  Prefactor  = 26.4138
  norm       = 4.38067
  Prefactor  = 0.0001
  norm       = 38.2008
  norm       = 17.0796
  Prefactor  = 0.0001
  Normalizat = 0.69239
  Prefactor  = 0.871646
 **********
 **   18 **HESSE 
 **********

 FCN=   4127.940     FROM HESSE     STATUS=OK           790 CALLS     5902 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0071        12.920        .43036E-03   -1.5507    
   3  Prefactor     .10000E-03    13.099        .69671E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0710        5.2989        .17856E-03   -1.5357    
   5  Prefactor     13.035        8.2271        .11095E-03   -1.4986    
   6  Prefactor     3.4470        27.914        .21810E-03   -1.5337    
   7  Prefactor     22.716        35.829        .84050E-04   -1.4754    
   8  norm          3.7516        1.8485        .57378E-04   -1.5321    
   9  Prefactor     .10000E-03    5.4984        .14692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7268        1.3568        .62771E-04   -1.5445    
  11  Prefactor     10.656        9.1651        .12275E-03   -1.5055    
  12  norm          .10000E-03    21.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1759        .14262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2619        2.9149        .96119E-04   -1.5347    
  15  Prefactor     .10000E-03    5.0645        .13955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5543        7.2933        .17049E-03   -1.5237    
  18  Prefactor     .10000E-03    124.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          52.389        16.390        .55410E-04   -1.4259    
  20  Prefactor     .10000E-03    36.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2757        9.9203        .74381E-03   -1.5168    
  22  Prefactor     21.301        60.105        .86700E-04   -1.4785    
  23  Prefactor     245.86        151.27        .12914E-03   -1.2559    
  24  Prefactor     .10000E-03    96.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.564        13.235        .11301E-03   -1.4999    
  26  Prefactor     .10000E-03    12.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.4344        11.983        .69024E-03   -1.5127    
  28  Prefactor     26.414        24.687        .77958E-04   -1.4680    
  29  norm          4.3807        4.6186        .13798E-03   -1.5289    
  30  Prefactor     .10000E-03    11.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          38.201        17.548        .64849E-04   -1.4471    
  32  norm          17.080        14.791        .96907E-04   -1.4881    
  33  Prefactor     .10000E-03    7.4190        .21906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .69239        .36919        .36480E-03   -1.0419    
  35  Prefactor     .87165        .21664        .22304E-03   -.97139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59994e-10
Minuit parameter uncertainties:
  1  3.29521e-05
  2  7.21593
  3  0.000155186
  4  5.29969
  5  8.22781
  6  19.6307
  7  35.863
  8  1.84855
  9  1.57413e-05
  10  1.35685
  11  9.16634
  12  7.76335e-06
  13  4.43476e-05
  14  2.91503
  15  2.01297e-05
  16  6.92759e-06
  17  7.29446
  18  0.000164689
  19  16.3918
  20  4.91981e-06
  21  9.92254
  22  60.2761
  23  151.509
  24  0.000118451
  25  13.2384
  26  3.36586e-05
  27  11.9866
  28  24.6962
  29  4.61895
  30  3.05598e-06
  31  17.5499
  32  14.7938
  33  1.32149e-05
  34  0.370524
  35  0.216849
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  5.239e+01  1.639e+01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  8.716e-01  2.168e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  6.924e-01  3.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.49
Ra Dec: 264.886 49.932
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.80e-07 +/- 8.76e-08
Energy Flux (Fixed Index): 1.03e-04 +/- 3.22e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4127.73906666
delta logL = 0.201011840973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4127.7268766
delta logL = 0.213201896717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.136       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4740       1.0000          .0000       5.0000    
     3 'Normalizat'    .65496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+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=   4127.727     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      239 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.135        17.279        .59029E-04    .20324E-02
   2  alpha         2.4741        .32074        .57935E-03    .39117E-03
   3  Normalizat    .65495        .30814        .37396E-03   -.42257E-04
   4  Prefactor     .88863        .20805        .22111E-03   -.11159E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 46.1349
  alpha      = 2.4741
  Normalizat = 0.654952
  Prefactor  = 0.888631
 **********
 **   18 **HESSE 
 **********

 FCN=   4127.727     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.135        17.245        .11806E-04   -1.4348    
   2  alpha         2.4741        .32010        .23174E-04   -.10362E-01
   3  Normalizat    .65495        .30830        .14959E-04   -1.0570    
   4  Prefactor     .88863        .20816        .44222E-04   -.96540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92174e-09
Minuit parameter uncertainties:
  1  17.247
  2  0.32098
  3  0.309114
  4  0.208343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964499': 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) = 4127.72687654
delta logL = 0.213201960701

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  4.613e+01  1.725e+01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.474e+00  3.210e-01  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  8.886e-01  2.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  6.550e-01  3.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.75
Ra Dec: 264.886 49.932
Photon Index (Free Index): 2.47 +/- 0.32
Photon Flux (Free Index): 3.12e-07 +/- 1.00e-07
Energy Flux (Free Index): 9.25e-05 +/- 2.99e-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/964499/cmap_HighResolution_496972801_497232001_4FGL_J1739.5+4955_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.80e-07', energy_flux2='9.25e-05', photon_flux_error='8.76e-08', dlogl='2.13e-01', energy_flux='1.03e-04', photon_flux2='3.12e-07', job_status='DONE', time_completed='2021-09-18 02:20:43.381604', photon_index_error2='0.32', photon_index2='2.47', ts='30.49', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='0.69', time_epoch_completed='1631956843.38', return_code='0', job_id='964499', GAL2='0.89', EG2='0.65', return_code2='0', energy_flux_error='3.22e-05', photon_flux_error2='1.00e-07', ts2='30.75', photon_index='2.27' WHERE bin_id='994' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:20:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 964499: <4FGL_J1739.5+4955_daily_bin994> in cluster <slac> Done

Job <4FGL_J1739.5+4955_daily_bin994> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 02:05:33 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:05:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 02:05:34 2021
Terminated at Sat Sep 18 02:20:44 2021
Results reported at Sat Sep 18 02:20:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin994 264.886 49.932 496972801 497232001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1739.5+4955 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

