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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin676
RA = 264.886, Dec = 49.932
tmin = 414547201, tmax = 414806401
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='963028', job_status='RUN', time_executed='2021-09-18 02:00:52.519912', time_epoch_executed='1631955652.52' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963028

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963028/ft1_4FGL_J1739.5+4955_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963028/ft1_4FGL_J1739.5+4955_daily_bin676.fits outfile=/scratch/kocevski/963028/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin676.fits ra=264.886 dec=49.932 rad=12.0 tmin=414547201.0 tmax=414806401.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.82
user 5.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.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/963028/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin676.fits evtable="EVENTS" outfile="/scratch/kocevski/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/963028/ltcube_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.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/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits
.....................!
real 12.27
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/963028/ltcube_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.fits outfile=/scratch/kocevski/963028/expmap_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.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/963028/ltcube_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.fits
.....................!
real 189.41
user 185.07
sys 4.02

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/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits scfile=/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits outfile=/scratch/kocevski/963028/cmap_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits scfile=/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits outfile=/scratch/kocevski/963028/cmap_HighResolution_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963028/Model_4FGL_J1739.5+4955_daily_bin676.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/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits.....................!
real 47.68
user 46.45
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits', '/scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits', expMap='/scratch/kocevski/963028/expmap_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.fits', expCube='/scratch/kocevski/963028/ltcube_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963028/Model_4FGL_J1739.5+4955_daily_bin676.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/963028/ft1_filtered_4FGL_J1739.5+4955_daily_bin676.fits
Spacecraft file(s): /scratch/kocevski/963028/ft2_4FGL_J1739.5+4955_daily_bin676.fits
Exposure map: /scratch/kocevski/963028/expmap_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.fits
Exposure cube: /scratch/kocevski/963028/ltcube_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963028/Model_4FGL_J1739.5+4955_daily_bin676.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) = 4513.18080744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8167       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.635       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.784       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.015       1.0000         .10000E-03   10000.    
    12 'norm      '    9.9024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11326E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.9503       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24936E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62007       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.500       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    37.728       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    24.303       1.0000         .10000E-03   10000.    
    32 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .84351       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1131       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=   4513.177     FROM MIGRAD    STATUS=CONVERGED    966 CALLS     5049 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.566        51.791       -.22474E-05   -.10138E-05
   2  Prefactor     7.8175        9.6155       -.29408E-07   -.82768E-04
   3  Prefactor     18.634        18.308       -.86693E-06   -.42260E-05
   4  Prefactor     .10000E-03    7.9626        .21932E-06** at limit **
   5  Prefactor     .10000E-03    1.2415        .27579E-07** at limit **
   6  Prefactor     .10000E-03    12.125       -.42336E-07** at limit **
   7  Prefactor     38.804        46.790        .14758E-04   -.85347E-05
   8  norm          2.4581        1.7829        .83321E-07   -.17281E-04
   9  Prefactor     .10001E-03    7.1532       -.75071E-06** at limit **
  10  norm          .10000E-03    .28619       -.14165E-07** at limit **
  11  Prefactor     20.015        15.691       -.10812E-05   -.50173E-04
  12  norm          9.9032        12.573        .21148E-06   -.55407E-05
  13  Prefactor     .10000E-03    23.349        .78809E-05** at limit **
  14  norm          .10000E-03    1.4838        .12447E-06** at limit **
  15  Prefactor     2.9139        5.1728       -.47698E-06   -.22854E-03
  16  Prefactor     .10000E-03    125.77       -.19437E-04** at limit **
  17  norm          8.9535        7.5690        .72720E-06    .63312E-04
  18  Prefactor     .10000E-03    246.21       -.24533E-04** at limit **
  19  norm          .10000E-03    5.1490       -.23970E-06** at limit **
  20  Prefactor     .10000E-03    28.287        .50790E-05** at limit **
  21  Prefactor     .63170        6.6106       -.46879E-06   -.14806E-04
  22  Prefactor     .10000E-03    99.550        .25574E-04** at limit **
  23  Prefactor     .10000E-03    70.591       -.90255E-05** at limit **
  24  Prefactor     .10000E-03    21.529       -.21977E-06** at limit **
  25  Prefactor     22.499        21.131        .15582E-06   -.12231E-04
  26  Prefactor     .10000E-03    75.541        .57477E-05** at limit **
  27  norm          .10000E-03    16.716        .22395E-05** at limit **
  28  Prefactor     .10000E-03    20.261       -.55333E-05** at limit **
  29  norm          37.728        16.407        .69757E-08    .18590E-04
  30  Prefactor     .10000E-03    30.652       -.70361E-05** at limit **
  31  norm          24.305        18.577        .10339E-06    .26418E-05
  32  norm          .10000E-03    6.0742       -.70684E-07** at limit **
  33  Prefactor     .10000E-03    4.3205        .15802E-07** at limit **
  34  Normalizat    .84342        .31819       -.98080E-06    .39163E-04
  35  Prefactor     1.1131        .19977       -.16426E-07    .52238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 41.5662
  Prefactor  = 7.81753
  Prefactor  = 18.6342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8038
  norm       = 2.45806
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 20.0152
  norm       = 9.9032
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.91389
  Prefactor  = 0.0001
  norm       = 8.95347
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.631698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4987
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 37.7279
  Prefactor  = 0.0001
  norm       = 24.3045
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.843421
  Prefactor  = 1.11312
 **********
 **   18 **HESSE 
 **********

 FCN=   4513.177     FROM HESSE     STATUS=OK           768 CALLS     5817 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.566        51.797        .62174E-04   -1.4418    
   2  Prefactor     7.8175        9.6014        .14342E-03   -1.5149    
   3  Prefactor     18.634        18.327        .92781E-04   -1.4844    
   4  Prefactor     .10000E-03    8.1874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2436        .73098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.804        46.736        .64360E-04   -1.4461    
   8  norm          2.4581        1.7636        .70791E-04   -1.5394    
   9  Prefactor     .10001E-03    20.881        .34197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .28917        .35059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.015        15.733        .89528E-04   -1.4813    
  12  norm          9.9032        12.555        .12734E-03   -1.5078    
  13  Prefactor     .10000E-03    23.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7738        .15734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9139        5.1579        .19481E-03   -1.5367    
  16  Prefactor     .10000E-03    125.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.9535        7.5517        .13397E-03   -1.5109    
  18  Prefactor     .10000E-03    247.51        .21466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.1611        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .63170        39.629        .31302E-02   -1.5549    
  22  Prefactor     .10000E-03    99.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    70.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.499        21.132        .84443E-04   -1.4759    
  26  Prefactor     .10000E-03    76.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    16.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          37.728        16.401        .65251E-04   -1.4479    
  30  Prefactor     .10000E-03    30.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          24.305        18.607        .81255E-04   -1.4722    
  32  norm          .10000E-03    6.0768        .16170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    4.4178        .13625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .84342        .36910        .36691E-03   -.98478    
  35  Prefactor     1.1131        .23498        .21483E-03   -.89048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22754e-08
Minuit parameter uncertainties:
  1  51.8535
  2  9.60328
  3  18.3326
  4  1.34681e-05
  5  6.10518e-07
  6  6.15346e-06
  7  46.7805
  8  1.76363
  9  0.000832535
  10  3.6736e-07
  11  15.7359
  12  12.5582
  13  7.06245e-05
  14  3.82506e-06
  15  5.15866
  16  8.48425e-06
  17  7.55249
  18  0.00040251
  19  1.05932e-05
  20  6.48509e-06
  21  10.0128
  22  4.01521e-05
  23  5.52558e-06
  24  5.035e-06
  25  21.1389
  26  2.31722e-06
  27  7.31321e-08
  28  1.75293e-05
  29  16.4033
  30  1.09947e-05
  31  18.6118
  32  7.21487e-07
  33  3.89489e-06
  34  0.370206
  35  0.235195
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  1.059e-05  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:  1.113e+00  2.352e-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:  8.434e-01  3.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.886 49.932
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963028/likelihoodResults_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.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) = 4513.17773165
delta logL = -0.0009212254663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4513.17681043
delta logL = -4.59294824395e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2748       1.0000          .0000       5.0000    
     3 'Normalizat'    .84342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1131       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=   4513.177     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      239 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.502        .14884E-02** at limit **
   2  alpha         2.4981        3.3825        .16546        .15116E-08
   3  Normalizat    .84342        .34153        .36691E-03   -.59243E-04
   4  Prefactor     1.1131        .22857        .21483E-03   -.10427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49806
  Normalizat = 0.84342
  Prefactor  = 1.11312
 **********
 **   18 **HESSE 
 **********

 FCN=   4513.177     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2714        .29768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4981        3.6863        .66183E-02   -.77672E-03
   3  Normalizat    .84342        .34185        .14677E-04   -.98478    
   4  Prefactor     1.1131        .22878        .42967E-04   -.89048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21791e-11
Minuit parameter uncertainties:
  1  1.60773e-06
  2  381.711
  3  0.342725
  4  0.228981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963028': 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) = 4513.17681023
delta logL = 2.01789589482e-07

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  1.608e-06  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.498e+00  3.817e+02  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:  1.113e+00  2.290e-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:  8.434e-01  3.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.886 49.932

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/963028/cmap_HighResolution_414547201_414806401_4FGL_J1739.5+4955_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-18 02:15:59.316021', job_id='963028', GAL2='1.11', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631956559.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='676' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 963028: <4FGL_J1739.5+4955_daily_bin676> in cluster <slac> Done

Job <4FGL_J1739.5+4955_daily_bin676> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 18 02:00:36 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:00:37 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:00:37 2021
Terminated at Sat Sep 18 02:16:00 2021
Results reported at Sat Sep 18 02:16:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin676 264.886 49.932 414547201 414806401 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 :                                   902.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

