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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin656
RA = 264.886, Dec = 49.932
tmin = 409363201, tmax = 409622401
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='962999', job_status='RUN', time_executed='2021-09-18 02:03:06.612907', time_epoch_executed='1631955786.61' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962999/ft1_4FGL_J1739.5+4955_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962999/ft2_4FGL_J1739.5+4955_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962999/ft1_4FGL_J1739.5+4955_daily_bin656.fits outfile=/scratch/kocevski/962999/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin656.fits ra=264.886 dec=49.932 rad=12.0 tmin=409363201.0 tmax=409622401.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.59
user 5.27
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/962999/ft2_4FGL_J1739.5+4955_daily_bin656.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/962999/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin656.fits evtable="EVENTS" outfile="/scratch/kocevski/962999/ft1_filtered_4FGL_J1739.5+4955_daily_bin656.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/962999/ft1_filtered_4FGL_J1739.5+4955_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/962999/ft2_4FGL_J1739.5+4955_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/962999/ltcube_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.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/962999/ft2_4FGL_J1739.5+4955_daily_bin656.fits
.....................!
real 12.43
user 12.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962999/ft1_filtered_4FGL_J1739.5+4955_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/962999/ft2_4FGL_J1739.5+4955_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/962999/ltcube_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.fits outfile=/scratch/kocevski/962999/expmap_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.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/962999/ltcube_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.fits
.....................!
real 192.33
user 186.47
sys 4.42

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/962999/ft1_filtered_4FGL_J1739.5+4955_daily_bin656.fits scfile=/scratch/kocevski/962999/ft2_4FGL_J1739.5+4955_daily_bin656.fits outfile=/scratch/kocevski/962999/cmap_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962999/ft1_filtered_4FGL_J1739.5+4955_daily_bin656.fits scfile=/scratch/kocevski/962999/ft2_4FGL_J1739.5+4955_daily_bin656.fits outfile=/scratch/kocevski/962999/cmap_HighResolution_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1764       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2379       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.042       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .71563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.762       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    134.23       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16233E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.006       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    71.659       1.0000         .10000E-03   10000.    
    27 'norm      '    13.775       1.0000         .10000E-03   10000.    
    28 'Prefactor '    37.442       1.0000         .10000E-03   10000.    
    29 'norm      '    .44570E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    25.020       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .86300       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=   3508.782     FROM MIGRAD    STATUS=CONVERGED    967 CALLS     5031 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.979        .14927E-06** at limit **
   2  Prefactor     3.1769        4.5921       -.16215E-06   -.79267E-04
   3  Prefactor     .10000E-03    14.700        .73520E-06** at limit **
   4  Prefactor     3.2415        6.0829        .87724E-06   -.10505E-03
   5  Prefactor     2.4828        4.5253        .66414E-05   -.38234E-03
   6  Prefactor     .10000E-03    9.4758        .11247E-06** at limit **
   7  Prefactor     44.038        32.621        .62631E-06   -.26073E-04
   8  norm          .10000E-03    .46285       -.65748E-09** at limit **
   9  Prefactor     .10000E-03    8.5840        .43707E-07** at limit **
  10  norm          .71649        1.2384       -.18177E-06   -.77307E-03
  11  Prefactor     .10000E-03    12.324        .48253E-06** at limit **
  12  norm          20.735        15.986        .16420E-06   -.21769E-04
  13  Prefactor     .10000E-03    3.7237       -.45889E-07** at limit **
  14  norm          .10000E-03    .70748        .10684E-06** at limit **
  15  Prefactor     .40517        8.9197        .39697E-05   -.94006E-04
  16  Prefactor     .10000E-03    150.78        .12712E-05** at limit **
  17  norm          .10000E-03    2.3192       -.11078E-06** at limit **
  18  Prefactor     49.733        81.458        .32209E-06   -.41968E-04
  19  norm          .10000E-03    3.3006        .71926E-07** at limit **
  20  Prefactor     .10000E-03    49.312        .47344E-06** at limit **
  21  Prefactor     .10000E-03    4.5926       -.40818E-06** at limit **
  22  Prefactor     134.19        121.29       -.29879E-07   -.95333E-04
  23  Prefactor     .10000E-03    235.06       -.36678E-05** at limit **
  24  Prefactor     40.030        75.192        .79783E-06    .27474E-04
  25  Prefactor     .10000E-03    13.230       -.12950E-06** at limit **
  26  Prefactor     71.437        111.06       -.35822E-05   -.23767E-03
  27  norm          13.785        24.713        .91043E-06   -.22688E-04
  28  Prefactor     37.477        65.961        .18074E-05   -.23005E-04
  29  norm          .10004E-03    19.734        .49352E-06** at limit **
  30  Prefactor     .10000E-03    40.442        .26604E-06** at limit **
  31  norm          .10000E-03    12.665        .24613E-06** at limit **
  32  norm          25.023        33.246        .10109E-06    .63579E-05
  33  Prefactor     .10000E-03    2.2848        .78584E-07** at limit **
  34  Normalizat    1.2661        .32364       -.61141E-05    .10883E-04
  35  Prefactor     .86304        .21127        .17138E-05   -.22585E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.1769
  Prefactor  = 0.0001
  Prefactor  = 3.24154
  Prefactor  = 2.4828
  Prefactor  = 0.0001
  Prefactor  = 44.0384
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.716494
  Prefactor  = 0.0001
  norm       = 20.7355
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.405167
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 49.7332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.187
  Prefactor  = 0.0001
  Prefactor  = 40.0296
  Prefactor  = 0.0001
  Prefactor  = 71.4365
  norm       = 13.7847
  Prefactor  = 37.4773
  norm       = 0.000100037
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.0228
  Prefactor  = 0.0001
  Normalizat = 1.26607
  Prefactor  = 0.863044
 **********
 **   18 **HESSE 
 **********

 FCN=   3508.782     FROM HESSE     STATUS=OK           760 CALLS     5791 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1769        4.5724        .14545E-03   -1.5351    
   3  Prefactor     .10000E-03    15.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2415        6.1189        .17893E-03   -1.5348    
   5  Prefactor     2.4828        4.5304        .80548E-03   -1.5393    
   6  Prefactor     .10000E-03    9.4963        .17805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.038        32.740        .60411E-04   -1.4380    
   8  norm          .10000E-03    .46672        .39269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6905        .16929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .71649        1.1482        .79665E-03   -1.5539    
  11  Prefactor     .10000E-03    12.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.735        15.941        .87969E-04   -1.4797    
  13  Prefactor     .10000E-03    3.7245        .11164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .71022        .48641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .40517        9.2662        .34138E-02   -1.5581    
  16  Prefactor     .10000E-03    151.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3199        .88062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.733        81.473        .56848E-04   -1.4296    
  19  norm          .10000E-03    3.3023        .10510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5988        .12392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     134.19        121.26        .17380E-03   -1.3386    
  23  Prefactor     .10000E-03    235.37        .20407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     40.030        75.176        .63373E-04   -1.4442    
  25  Prefactor     .10000E-03    13.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     71.437        111.12        .23712E-03   -1.4016    
  27  norm          13.785        24.700        .10792E-03   -1.4965    
  28  Prefactor     37.477        65.150        .65499E-04   -1.4483    
  29  norm          .10004E-03    182.88        .49958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    40.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    12.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          25.023        33.480        .80084E-04   -1.4707    
  33  Prefactor     .10000E-03    2.2870        .87443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2661        .37530        .29203E-03   -.84585    
  35  Prefactor     .86304        .24766        .24052E-03   -.97445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8008e-08
Minuit parameter uncertainties:
  1  1.14146e-05
  2  4.57295
  3  7.14247e-05
  4  6.12008
  5  4.53104
  6  8.10749e-06
  7  32.753
  8  8.6308e-07
  9  1.75056e-05
  10  1.14825
  11  6.37448e-05
  12  15.9442
  13  3.88427e-06
  14  7.1151e-07
  15  3.87544
  16  0.00102179
  17  3.02009e-06
  18  81.6563
  19  2.60582e-07
  20  0.000147095
  21  8.71136e-06
  22  121.489
  23  0.000465781
  24  75.3543
  25  6.71116e-06
  26  111.447
  27  24.7178
  28  65.2741
  29  0.0052098
  30  8.34239e-05
  31  1.99133e-05
  32  33.5047
  33  9.45364e-07
  34  0.376108
  35  0.24798
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  2.606e-07  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.630e-01  2.480e-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:  1.266e+00  3.761e-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: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962999/likelihoodResults_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.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): 102
logL (Free Index) = 3508.78351252
delta logL = -0.00134219273286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3508.78217026
delta logL = 6.21039362159e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2601       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86305       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=   3508.782     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      233 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    194.43        .10556E-01** at limit **
   2  alpha         1.8770        3.3242        .16557        .78962E-08
   3  Normalizat    1.2661        .58463E-01    .29203E-03   -.10633E-03
   4  Prefactor     .86305        .40849E-01    .24052E-03   -.12590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87703
  Normalizat = 1.26607
  Prefactor  = 0.863048
 **********
 **   18 **HESSE 
 **********

 FCN=   3508.782     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6207        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8770        3.6800        .66230E-02   -.25184    
   3  Normalizat    1.2661        .33021        .58406E-04   -.84585    
   4  Prefactor     .86305        .23084        .96206E-05   -.97444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1033e-11
Minuit parameter uncertainties:
  1  1.8326e-06
  2  237.043
  3  0.330762
  4  0.231097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962999': 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) = 3508.78216901
delta logL = 1.31329807118e-06

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  1.833e-06  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.877e+00  2.370e+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:  8.630e-01  2.311e-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:  1.266e+00  3.308e-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/962999/cmap_HighResolution_409363201_409622401_4FGL_J1739.5+4955_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2021-09-18 02:16:13.060575', job_id='962999', GAL2='0.86', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631956573.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='656' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:16:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 962999: <4FGL_J1739.5+4955_daily_bin656> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin656 264.886 49.932 409363201 409622401 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 :                                   777.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

