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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin690
RA = 264.886, Dec = 49.932
tmin = 418176001, tmax = 418435201
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='963049', job_status='RUN', time_executed='2021-09-18 02:03:24.497324', time_epoch_executed='1631955804.5' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963049/ft1_4FGL_J1739.5+4955_daily_bin690.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963049/ft2_4FGL_J1739.5+4955_daily_bin690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963049/ft1_4FGL_J1739.5+4955_daily_bin690.fits outfile=/scratch/kocevski/963049/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin690.fits ra=264.886 dec=49.932 rad=12.0 tmin=418176001.0 tmax=418435201.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 4.92
user 4.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963049/ft2_4FGL_J1739.5+4955_daily_bin690.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/963049/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin690.fits evtable="EVENTS" outfile="/scratch/kocevski/963049/ft1_filtered_4FGL_J1739.5+4955_daily_bin690.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963049/ft1_filtered_4FGL_J1739.5+4955_daily_bin690.fits" evtable="EVENTS" scfile=/scratch/kocevski/963049/ft2_4FGL_J1739.5+4955_daily_bin690.fits sctable="SC_DATA" outfile=/scratch/kocevski/963049/ltcube_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.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/963049/ft2_4FGL_J1739.5+4955_daily_bin690.fits
.....................!
real 12.05
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963049/ft1_filtered_4FGL_J1739.5+4955_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/963049/ft2_4FGL_J1739.5+4955_daily_bin690.fits sctable="SC_DATA" expcube=/scratch/kocevski/963049/ltcube_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.fits outfile=/scratch/kocevski/963049/expmap_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.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/963049/ltcube_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.fits
.....................!
real 190.58
user 185.29
sys 4.91

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/963049/ft1_filtered_4FGL_J1739.5+4955_daily_bin690.fits scfile=/scratch/kocevski/963049/ft2_4FGL_J1739.5+4955_daily_bin690.fits outfile=/scratch/kocevski/963049/cmap_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.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/963049/ft1_filtered_4FGL_J1739.5+4955_daily_bin690.fits scfile=/scratch/kocevski/963049/ft2_4FGL_J1739.5+4955_daily_bin690.fits outfile=/scratch/kocevski/963049/cmap_HighResolution_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.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/963049/ft1_filtered_4FGL_J1739.5+4955_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/963049/ft2_4FGL_J1739.5+4955_daily_bin690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963049/Model_4FGL_J1739.5+4955_daily_bin690.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/963049/ft1_filtered_4FGL_J1739.5+4955_daily_bin690.fits......................!
real 41.26
user 39.90
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .11405E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.497       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18409E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9340       1.0000         .10000E-03   10000.    
     8 'norm      '    .71093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .46027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.083       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.5712       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3021       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.670       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3187       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    71.021       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    25.373       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.901       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.1750       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .91543       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .81150       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=   3776.309     FROM MIGRAD    STATUS=CONVERGED    991 CALLS     5165 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.662       -.19099E-07** at limit **
   2  Prefactor     .10000E-03    11.877       -.29188E-05** at limit **
   3  Prefactor     10.500        10.990       -.85921E-08    .57451E-04
   4  Prefactor     .10000E-03    3.6621       -.24304E-06** at limit **
   5  Prefactor     1.2634        3.4150       -.14363E-06   -.15751E-05
   6  Prefactor     .10007E-03    79.252       -.83070E-05** at limit **
   7  Prefactor     8.8889        68.506       -.15726E-06    .74145E-05
   8  norm          .71091        1.0114        .48744E-07    .23896E-03
   9  Prefactor     .10000E-03    5.0529       -.13575E-06** at limit **
  10  norm          .46034        .89183       -.14251E-06   -.61428E-04
  11  Prefactor     12.133        25.608       -.12589E-05    .66898E-04
  12  norm          .10000E-03    4.8122       -.95949E-07** at limit **
  13  Prefactor     .10000E-03    21.797        .80016E-06** at limit **
  14  norm          8.5708        3.2978       -.17787E-07    .62501E-04
  15  Prefactor     .10000E-03    3.0240       -.18170E-06** at limit **
  16  Prefactor     5.9938        1507.3       -.97078E-05    .44831E-05
  17  norm          3.0142        3.6187       -.18128E-07    .35289E-05
  18  Prefactor     23.663        54.002       -.61952E-06   -.25988E-06
  19  norm          .10000E-03    10.357       -.72888E-06** at limit **
  20  Prefactor     .10000E-03    83.803        .22342E-05** at limit **
  21  Prefactor     2.3178        9.6070       -.15078E-05    .49850E-04
  22  Prefactor     .10000E-03    52.153       -.14700E-05** at limit **
  23  Prefactor     .10000E-03    66.641        .21090E-06** at limit **
  24  Prefactor     .10000E-03    62.285       -.63843E-06** at limit **
  25  Prefactor     .10000E-03    7.5288       -.98679E-07** at limit **
  26  Prefactor     .10000E-03    18.009       -.71436E-06** at limit **
  27  norm          71.012        23.046       -.16969E-06    .11435E-04
  28  Prefactor     .10000E-03    15.827        .58534E-06** at limit **
  29  norm          25.376        15.636       -.47292E-07    .23402E-05
  30  Prefactor     18.897        51.088       -.46594E-06   -.12227E-05
  31  norm          .10000E-03    22.790        .11307E-06** at limit **
  32  norm          .10000E-03    9.0998       -.23281E-07** at limit **
  33  Prefactor     5.1736        8.5883       -.29398E-06    .18735E-05
  34  Normalizat    .91566        .28397        .13887E-05    .99195E-04
  35  Prefactor     .81138        .18036        .37664E-06    .16381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 10.4998
  Prefactor  = 0.0001
  Prefactor  = 1.26337
  Prefactor  = 0.000100073
  Prefactor  = 8.88886
  norm       = 0.710907
  Prefactor  = 0.0001
  norm       = 0.460336
  Prefactor  = 12.1326
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.57079
  Prefactor  = 0.0001
  Prefactor  = 5.99377
  norm       = 3.01425
  Prefactor  = 23.663
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.31776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 71.0121
  Prefactor  = 0.0001
  norm       = 25.3765
  Prefactor  = 18.8971
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.17356
  Normalizat = 0.915661
  Prefactor  = 0.81138
 **********
 **   18 **HESSE 
 **********

 FCN=   3776.309     FROM HESSE     STATUS=OK           778 CALLS     5943 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.749        .19155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.500        10.987        .12366E-03   -1.5060    
   4  Prefactor     .10000E-03    3.7361        .22912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2634        3.3926        .17559E-03   -1.5483    
   6  Prefactor     .10007E-03    165.32        .49488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8889        69.057        .13410E-03   -1.5112    
   8  norm          .71091        .96294        .69750E-03   -1.5539    
   9  Prefactor     .10000E-03    5.1065        .13485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .46034        .87049        .75731E-04   -1.5572    
  11  Prefactor     12.133        26.166        .11524E-03   -1.5011    
  12  norm          .10000E-03    4.8542        .13166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5708        3.2868        .65235E-04   -1.5122    
  15  Prefactor     .10000E-03    3.0404        .10437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9938        1596.0        .15990E-02   -1.5218    
  17  norm          3.0142        3.6141        .12402E-03   -1.5361    
  18  Prefactor     23.663        53.977        .82332E-04   -1.4735    
  19  norm          .10000E-03    10.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    84.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3178        9.6289        .13469E-02   -1.5403    
  22  Prefactor     .10000E-03    52.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    66.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    62.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.5405        .16468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          71.012        22.994        .47635E-04   -1.4021    
  28  Prefactor     .10000E-03    15.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          25.376        15.631        .79526E-04   -1.4700    
  30  Prefactor     18.897        51.075        .92126E-04   -1.4838    
  31  norm          .10000E-03    22.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    9.1039        .18105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     5.1736        8.6002        .88358E-03   -1.5253    
  34  Normalizat    .91566        .32546        .29893E-03   -.95912    
  35  Prefactor     .81138        .21368        .22063E-03   -.99310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49398e-10
Minuit parameter uncertainties:
  1  6.40027e-07
  2  0.000574646
  3  10.989
  4  5.40351e-06
  5  3.39313
  6  0.00696358
  7  49.6307
  8  0.962958
  9  4.23889e-06
  10  0.870517
  11  26.1905
  12  2.07318e-06
  13  0.000174121
  14  3.28683
  15  5.03327e-06
  16  201.298
  17  3.61441
  18  54.0888
  19  2.71104e-05
  20  0.000129166
  21  9.45072
  22  0.000104002
  23  4.43261e-05
  24  6.25316e-05
  25  2.90124e-06
  26  2.54914e-05
  27  22.9971
  28  1.14274e-05
  29  15.6336
  30  51.1934
  31  2.38743e-05
  32  3.71133e-06
  33  8.60222
  34  0.326163
  35  0.213903
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  2.711e-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:  8.114e-01  2.139e-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:  9.157e-01  3.262e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963049/likelihoodResults_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.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) = 3776.30923755
delta logL = -0.000451335476555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3776.2369286
delta logL = 0.0718576117479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10180       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .88649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82310       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=   3776.237     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      395 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10186        .31358        .51121E-04    .25218E-02
   2  alpha         5.0000        4.9821        .50000    ** at limit **
   3  Normalizat    .88611        .30409        .30338E-03    .90348E-04
   4  Prefactor     .82331        .20896        .21918E-03    .66858E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.101864
  alpha      = 5
  Normalizat = 0.88611
  Prefactor  = 0.823314
 **********
 **   18 **HESSE 
 **********

 FCN=   3776.237     FROM HESSE     STATUS=OK            29 CALLS      424 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10186        .31183        .20448E-05   -1.5644    
   2  alpha         5.0000        4.9785        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88611        .30445        .12135E-04   -.96950    
   4  Prefactor     .82331        .20919        .87673E-05   -.98875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08766e-09
Minuit parameter uncertainties:
  1  0.311838
  2  0.00146916
  3  0.305041
  4  0.209388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963049': 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) = 3776.23692779
delta logL = 0.0718584285678

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.019e-01  3.118e-01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  5.000e+00  1.469e-03  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.233e-01  2.094e-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.861e-01  3.050e-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/963049/cmap_HighResolution_418176001_418435201_4FGL_J1739.5+4955_daily_bin690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-18 02:17:08.806850', job_id='963049', GAL2='0.82', fit_tolerance='1e-08', EG2='0.89', EG='0.92', time_epoch_completed='1631956628.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.19e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='690' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:17:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 963049: <4FGL_J1739.5+4955_daily_bin690> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin690 264.886 49.932 418176001 418435201 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 :                                   822.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            991 sec.

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

