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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin974
RA = 264.886, Dec = 49.932
tmin = 491788801, tmax = 492048001
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='964469', job_status='RUN', time_executed='2021-09-18 02:05:41.607114', time_epoch_executed='1631955941.61' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964469

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964469/ft1_4FGL_J1739.5+4955_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964469/ft2_4FGL_J1739.5+4955_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964469/ft1_4FGL_J1739.5+4955_daily_bin974.fits outfile=/scratch/kocevski/964469/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin974.fits ra=264.886 dec=49.932 rad=12.0 tmin=491788801.0 tmax=492048001.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.21
user 3.97
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964469/ft1_filtered_4FGL_J1739.5+4955_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/964469/ft2_4FGL_J1739.5+4955_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/964469/ltcube_491788801_492048001_4FGL_J1739.5+4955_daily_bin974.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/964469/ft2_4FGL_J1739.5+4955_daily_bin974.fits
.....................!
real 11.80
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964469/ft1_filtered_4FGL_J1739.5+4955_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/964469/ft2_4FGL_J1739.5+4955_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/964469/ltcube_491788801_492048001_4FGL_J1739.5+4955_daily_bin974.fits outfile=/scratch/kocevski/964469/expmap_491788801_492048001_4FGL_J1739.5+4955_daily_bin974.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/964469/ltcube_491788801_492048001_4FGL_J1739.5+4955_daily_bin974.fits
.....................!
real 191.05
user 185.36
sys 5.33

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/964469/ft1_filtered_4FGL_J1739.5+4955_daily_bin974.fits scfile=/scratch/kocevski/964469/ft2_4FGL_J1739.5+4955_daily_bin974.fits outfile=/scratch/kocevski/964469/cmap_491788801_492048001_4FGL_J1739.5+4955_daily_bin974.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=264.886 yref=49.932 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.372       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60558E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8110       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7692       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.322       1.0000         .10000E-03   10000.    
    17 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88519       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.212       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12154E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11625E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12390E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    35.148       1.0000         .10000E-03   10000.    
    29 'norm      '    66.130       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    21.263       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   895.9544     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     4288 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.414        1.0606       -.16859E-08   -.67836E-04
   2  Prefactor     10.280        11.286        .15421E-06    .88753E-03
   3  Prefactor     6.5242        1.9706       -.57409E-07    .23738E-04
   4  Prefactor     11.073        8.5197        .85848E-06   -.19532E-03
   5  Prefactor     17.116        11.651       -.17899E-05   -.24466E-02
   6  Prefactor     36.361        1.5508        .92173E-07   -.96911E-03
   7  Prefactor     .10013E-03    28.877       -.11669E-05** at limit **
   8  norm          .10000E-03    1.6684       -.27517E-06** at limit **
   9  Prefactor     .10447E-03    318.98       -.32595E-05** at limit **
  10  norm          2.3706        2.3437       -.90209E-06    .14660E-03
  11  Prefactor     .10000E-03    13.539        .52675E-06** at limit **
  12  norm          .10000E-03    8.8912        .90187E-06** at limit **
  13  Prefactor     .10000E-03    15.827        .67055E-06** at limit **
  14  norm          2.8087        4.9525       -.11350E-06   -.54478E-05
  15  Prefactor     5.7678        8.7805       -.25490E-05    .95348E-04
  16  Prefactor     47.526        31.934        .31994E-06    .11532E-02
  17  norm          .10000E-03    9.2753       -.20030E-06** at limit **
  18  Prefactor     .82386E-03    9898.5       -.20046E-04** at limit **
  19  norm          .10000E-03    7.4541        .10604E-05** at limit **
  20  Prefactor     .10000E-03    23.738       -.21156E-05** at limit **
  21  Prefactor     13.215        4.6353        .68176E-06    .87180E-03
  22  Prefactor     .10158E-03    61.022        .29427E-05** at limit **
  23  Prefactor     .10203E-03    56.936        .71696E-06** at limit **
  24  Prefactor     .10040E-03    24.717       -.13068E-05** at limit **
  25  Prefactor     .10064E-03    194.80        .78501E-05** at limit **
  26  Prefactor     .10053E-03    17.463       -.45377E-05** at limit **
  27  norm          .10000E-03    21.206       -.34961E-05** at limit **
  28  Prefactor     35.075        14.938       -.23358E-06   -.73279E-02
  29  norm          66.175        6.7390       -.79808E-07   -.18010E-02
  30  Prefactor     .10005E-03    43.237       -.30172E-05** at limit **
  31  norm          .10000E-03    22.184        .22175E-05** at limit **
  32  norm          .10002E-03    78.010       -.89768E-06** at limit **
  33  Prefactor     21.261        1.3686       -.11594E-07    .22306E-03
  34  Normalizat    .10000E-01    .54751       -.14694E-04** at limit **
  35  Prefactor     1.0384        .19448       -.72915E-06   -.69896E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 37.4139
  Prefactor  = 10.2803
  Prefactor  = 6.5242
  Prefactor  = 11.0735
  Prefactor  = 17.1162
  Prefactor  = 36.3609
  Prefactor  = 0.000100128
  norm       = 0.0001
  Prefactor  = 0.000104474
  norm       = 2.37065
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.80867
  Prefactor  = 5.76778
  Prefactor  = 47.5257
  norm       = 0.0001
  Prefactor  = 0.000823858
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 13.215
  Prefactor  = 0.000101584
  Prefactor  = 0.000102034
  Prefactor  = 0.000100404
  Prefactor  = 0.00010064
  Prefactor  = 0.000100532
  norm       = 0.0001
  Prefactor  = 35.0746
  norm       = 66.1746
  Prefactor  = 0.000100054
  norm       = 0.0001
  norm       = 0.000100025
  Prefactor  = 21.2606
  Normalizat = 0.01
  Prefactor  = 1.03838
 **********
 **   18 **HESSE 
 **********

 FCN=   895.9544     FROM HESSE     STATUS=OK           854 CALLS     5142 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.414        39.370        .16380E-02   -1.4484    
   2  Prefactor     10.280        11.467        .31239E-02   -1.5067    
   3  Prefactor     6.5242        21.812        .39256E-02   -1.5197    
   4  Prefactor     11.073        8.5903        .30096E-02   -1.5042    
   5  Prefactor     17.116        13.472        .24197E-02   -1.4880    
   6  Prefactor     36.361        26.605        .16613E-02   -1.4501    
   7  Prefactor     .10013E-03    59.360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10447E-03    46.492        .58786E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3706        2.3801        .66510E-02   -1.5400    
  11  Prefactor     .10000E-03    13.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.8947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8087        5.0650        .60654E-02   -1.5373    
  15  Prefactor     5.7678        8.8474        .41804E-02   -1.5228    
  16  Prefactor     47.526        161.26        .14572E-02   -1.4328    
  17  norm          .10000E-03    9.2859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .82386E-03    512.53        .16771       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.4491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    58.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.215        13.873        .27550E-02   -1.4981    
  22  Prefactor     .10158E-03    117.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10203E-03    112.35        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10040E-03    48.746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10064E-03    202.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10053E-03    54.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    50.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     35.075        49.849        .16899E-02   -1.4523    
  29  norm          66.175        34.314        .12338E-02   -1.4079    
  30  Prefactor     .10005E-03    44.437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    22.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10002E-03    79.578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     21.261        17.675        .21716E-02   -1.4785    
  34  Normalizat    .10000E-01    .47770        .17911       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.0384        .23605        .40658E-01   -.91461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25519e-07
Minuit parameter uncertainties:
  1  39.3971
  2  11.4696
  3  21.8383
  4  8.59129
  5  13.4748
  6  26.6139
  7  0.00551045
  8  1.22451e-06
  9  0.0288663
  10  2.3802
  11  6.26934e-06
  12  8.99662e-06
  13  8.88418e-06
  14  5.06579
  15  8.84943
  16  162.779
  17  1.95014e-06
  18  1.22884
  19  8.96884e-06
  20  0.00106807
  21  13.8762
  22  0.0273508
  23  0.0302925
  24  0.00888808
  25  0.0228454
  26  0.0107406
  27  0.000265051
  28  49.9084
  29  34.3243
  30  0.00309373
  31  3.70152e-05
  32  0.00281396
  33  17.6797
  34  1.07913e-06
  35  0.236291
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.000e-04  8.969e-06  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.038e+00  2.363e-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.000e-02  1.079e-06  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.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964469/likelihoodResults_491788801_492048001_4FGL_J1739.5+4955_daily_bin974.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) = 895.955042765
delta logL = -0.000616827135218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 895.954427365
delta logL = -1.42754004173e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2559       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0381       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=   895.9544     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    530.59        .80479E-02** at limit **
   2  alpha         1.8077        2.8807        .16561        .77829E-08
   3  Normalizat    .10000E-01    .79044E-01    .10488E-01** at limit **
   4  Prefactor     1.0384        .68116E-01    .17306E-03    .26504E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80768
  Normalizat = 0.01
  Prefactor  = 1.03838
 **********
 **   18 **HESSE 
 **********

 FCN=   895.9544     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6690        .86040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8077        3.3348        .66244E-02   -.28060    
   3  Normalizat    .10000E-01    .54798        .20976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0384        .18045        .34612E-04   -.91461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48283e-10
Minuit parameter uncertainties:
  1  1.72532e-05
  2  335.961
  3  1.12591e-09
  4  0.180553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964469': 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) = 895.954425004
delta logL = 9.33125761549e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.038e+00  1.806e-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.000e-02  1.126e-09  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/964469/cmap_HighResolution_491788801_492048001_4FGL_J1739.5+4955_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-05', job_status='DONE', photon_flux_upper_limit='1.98e-07', time_completed='2021-09-18 02:13:13.339639', job_id='964469', GAL2='1.04', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631956393.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='9.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='974' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:13:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 964469: <4FGL_J1739.5+4955_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin974 264.886 49.932 491788801 492048001 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 :                                   447.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            464 sec.

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

