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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin744
RA = 264.886, Dec = 49.932
tmin = 432172801, tmax = 432432001
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='963132', job_status='RUN', time_executed='2021-09-18 02:02:52.708047', time_epoch_executed='1631955772.71' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963132/ft1_4FGL_J1739.5+4955_daily_bin744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963132/ft2_4FGL_J1739.5+4955_daily_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963132/ft1_4FGL_J1739.5+4955_daily_bin744.fits outfile=/scratch/kocevski/963132/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin744.fits ra=264.886 dec=49.932 rad=12.0 tmin=432172801.0 tmax=432432001.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.05
user 4.83
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963132/ft1_filtered_4FGL_J1739.5+4955_daily_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/963132/ft2_4FGL_J1739.5+4955_daily_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/963132/ltcube_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.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/963132/ft2_4FGL_J1739.5+4955_daily_bin744.fits
.....................!
real 11.76
user 11.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963132/ft1_filtered_4FGL_J1739.5+4955_daily_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/963132/ft2_4FGL_J1739.5+4955_daily_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/963132/ltcube_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.fits outfile=/scratch/kocevski/963132/expmap_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.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/963132/ltcube_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.fits
.....................!
real 190.44
user 184.90
sys 5.19

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/963132/ft1_filtered_4FGL_J1739.5+4955_daily_bin744.fits scfile=/scratch/kocevski/963132/ft2_4FGL_J1739.5+4955_daily_bin744.fits outfile=/scratch/kocevski/963132/cmap_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963132/ft1_filtered_4FGL_J1739.5+4955_daily_bin744.fits scfile=/scratch/kocevski/963132/ft2_4FGL_J1739.5+4955_daily_bin744.fits outfile=/scratch/kocevski/963132/cmap_HighResolution_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27596E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.690       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .39175E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.462       1.0000         .10000E-03   10000.    
    12 'norm      '    11.102       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.684       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.659       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.284       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.051       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2770       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.037       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    68.896       1.0000         .10000E-03   10000.    
    27 'norm      '    22.403       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    12.724       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11814E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    18.639       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .45846       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0747       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=   4029.815     FROM MIGRAD    STATUS=CONVERGED    977 CALLS     5097 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.537        .74287E-06** at limit **
   2  Prefactor     .10000E-03    2.5257       -.87968E-06** at limit **
   3  Prefactor     .10000E-03    2.0395        .29194E-09** at limit **
   4  Prefactor     .10000E-03    2.0625       -.58413E-07** at limit **
   5  Prefactor     .10003E-03    2.2766       -.45397E-06** at limit **
   6  Prefactor     27.687        21.127       -.19972E-05    .11839E-03
   7  Prefactor     .10000E-03    6.8940       -.19305E-06** at limit **
   8  norm          .10000E-03    .65702       -.51215E-06** at limit **
   9  Prefactor     .10000E-03    2.6056        .22713E-07** at limit **
  10  norm          1.2104        .75105       -.12562E-06    .55382E-03
  11  Prefactor     18.469        14.108        .18459E-04   -.15938E-03
  12  norm          11.100        12.699       -.15517E-05    .74887E-04
  13  Prefactor     .10000E-03    9.5048        .13022E-06** at limit **
  14  norm          10.684        3.6310        .70740E-06    .79992E-03
  15  Prefactor     22.658        10.150       -.68893E-06    .19038E-03
  16  Prefactor     53.134        120.56       -.17628E-03   -.10769E-05
  17  norm          .10000E-03    2.6105       -.84181E-09** at limit **
  18  Prefactor     .10000E-03    58.425       -.27401E-04** at limit **
  19  norm          15.056        16.679        .76891E-05    .21935E-03
  20  Prefactor     .10000E-03    50.769        .97314E-05** at limit **
  21  Prefactor     5.2761        12.595       -.40049E-05   -.57619E-04
  22  Prefactor     .10000E-03    48.468        .20516E-04** at limit **
  23  Prefactor     .10000E-03    112.12        .79210E-04** at limit **
  24  Prefactor     10.967        191.94       -.15875E-03    .10079E-04
  25  Prefactor     .10000E-03    35.671       -.16260E-04** at limit **
  26  Prefactor     68.917        54.221        .10298E-04    .63361E-04
  27  norm          22.403        19.459        .22623E-05    .30633E-03
  28  Prefactor     .10000E-03    73.655       -.36179E-04** at limit **
  29  norm          12.717        23.150       -.11658E-05    .97977E-04
  30  Prefactor     .10000E-03    245.79       -.55065E-04** at limit **
  31  norm          .10000E-03    84.139       -.58823E-05** at limit **
  32  norm          .10000E-03    37.990        .15608E-04** at limit **
  33  Prefactor     18.638        11.529       -.20716E-05   -.14058E-04
  34  Normalizat    .45867        .34097        .12316E-04    .49758E-03
  35  Prefactor     1.0747        .22101        .25837E-05    .62120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 27.6874
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.21039
  Prefactor  = 18.4694
  norm       = 11.0999
  Prefactor  = 0.0001
  norm       = 10.6841
  Prefactor  = 22.6575
  Prefactor  = 53.1339
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0557
  Prefactor  = 0.000100004
  Prefactor  = 5.27605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9672
  Prefactor  = 0.000100001
  Prefactor  = 68.9171
  norm       = 22.4035
  Prefactor  = 0.0001
  norm       = 12.7165
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.6382
  Normalizat = 0.45867
  Prefactor  = 1.07468
 **********
 **   18 **HESSE 
 **********

 FCN=   4029.815     FROM HESSE     STATUS=OK           766 CALLS     5863 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.981        .19366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0397        .88539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0758        .88882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    15.307        .18323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.687        21.009        .76133E-04   -1.4655    
   7  Prefactor     .10000E-03    6.8945        .16280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.1374        .97115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6107        .10005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2104        .75555        .41650E-04   -1.5488    
  11  Prefactor     18.469        14.043        .93214E-04   -1.4848    
  12  norm          11.100        12.619        .12024E-03   -1.5042    
  13  Prefactor     .10000E-03    9.5624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.684        3.6162        .64904E-04   -1.5054    
  15  Prefactor     22.658        10.143        .84147E-04   -1.4756    
  16  Prefactor     53.134        120.71        .27473E-03   -1.4249    
  17  norm          .10000E-03    2.6165        .10010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.056        16.533        .10324E-03   -1.4932    
  20  Prefactor     .10000E-03    50.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2761        12.426        .17497E-03   -1.5249    
  22  Prefactor     .10000E-03    48.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    112.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.967        191.48        .12060E-03   -1.5046    
  25  Prefactor     .10000E-03    36.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     68.917        54.121        .24179E-03   -1.4046    
  27  norm          22.403        19.380        .84626E-04   -1.4761    
  28  Prefactor     .10000E-03    74.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          12.717        23.067        .11230E-03   -1.4995    
  30  Prefactor     .10000E-03    247.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    85.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    38.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     18.638        11.518        .92771E-04   -1.4844    
  34  Normalizat    .45867        .34295        .42721E-03   -1.1437    
  35  Prefactor     1.0747        .23739        .20676E-03   -.90280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61511e-09
Minuit parameter uncertainties:
  1  4.29493e-05
  2  9.92815e-05
  3  2.44318e-06
  4  1.49577e-05
  5  0.0013466
  6  21.0151
  7  3.59864e-06
  8  0.000140341
  9  9.69205e-06
  10  0.755559
  11  14.0455
  12  12.6218
  13  7.31508e-05
  14  3.61628
  15  10.144
  16  121.269
  17  1.07397e-05
  18  0.000156847
  19  16.538
  20  0.000886418
  21  12.432
  22  6.67892e-05
  23  4.03923e-05
  24  91.9981
  25  0.000268984
  26  54.1597
  27  19.3852
  28  0.000319962
  29  23.083
  30  0.000198845
  31  1.51683e-05
  32  3.49113e-05
  33  11.5192
  34  0.344543
  35  0.237623
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.506e+01  1.654e+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:  1.075e+00  2.376e-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:  4.587e-01  3.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 264.886 49.932
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 8.05e-08 +/- 8.84e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 3.25e-05

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

Saving results to:
/scratch/kocevski/963132/likelihoodResults_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.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) = 4029.39242047
delta logL = 0.422525924414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4029.36997872
delta logL = 0.444967668357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9359       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1581       1.0000          .0000       5.0000    
     3 'Normalizat'    .39368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1104       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=   4029.370     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      275 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9397        16.661        .12621E-03   -.41414E-03
   2  alpha         3.1595        1.3672        .11627E-01   -.24098E-04
   3  Normalizat    .39332        .32663        .45925E-03   -.94119E-04
   4  Prefactor     1.1104        .23605        .20374E-03   -.78455E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.93968
  alpha      = 3.15946
  Normalizat = 0.393322
  Prefactor  = 1.11037
 **********
 **   18 **HESSE 
 **********

 FCN=   4029.370     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9397        12.863        .50483E-05   -1.5144    
   2  alpha         3.1595        1.0811        .46509E-03    .26694    
   3  Normalizat    .39332        .32521        .18370E-04   -1.1765    
   4  Prefactor     1.1104        .23440        .40748E-04   -.89136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86622e-10
Minuit parameter uncertainties:
  1  12.8678
  2  1.12107
  3  0.326791
  4  0.234618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963132': 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) = 4029.36997239
delta logL = 0.444974002634

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  7.940e+00  1.287e+01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  3.159e+00  1.121e+00  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.110e+00  2.346e-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:  3.933e-01  3.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 264.886 49.932
Photon Index (Free Index): 3.16 +/- 1.12
Photon Flux (Free Index): 1.33e-07 +/- 1.03e-07
Energy Flux (Free Index): 2.59e-05 +/- 2.09e-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/963132/cmap_HighResolution_432172801_432432001_4FGL_J1739.5+4955_daily_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-05', comment='SUCCESS', photon_flux='8.05e-08', energy_flux2='2.59e-05', photon_flux_error='8.84e-08', dlogl='4.45e-01', energy_flux='2.96e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-18 02:16:49.666842', photon_index_error2='1.12', photon_index2='3.16', ts='1.55', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.32e-07', energy_flux_error2='2.09e-05', EG='0.46', time_epoch_completed='1631956609.67', return_code='0', job_id='963132', GAL2='1.11', EG2='0.39', return_code2='0', energy_flux_error='3.25e-05', photon_flux_error2='1.03e-07', ts2='2.59', photon_index='2.27' WHERE bin_id='744' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:16:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 963132: <4FGL_J1739.5+4955_daily_bin744> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin744 264.886 49.932 432172801 432432001 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 :                                   836.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            966 sec.

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

