aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 78 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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.0+4737_daily_bin1668
RA = 265.023, Dec = 47.6198
tmin = 671673601, tmax = 671932801
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='555903', job_status='RUN', time_executed='2022-04-18 03:09:24.168580', time_epoch_executed='1650276564.17' WHERE source_name='4FGL J1740.0+4737' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555903/ft1_4FGL_J1740.0+4737_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555903/ft1_4FGL_J1740.0+4737_daily_bin1668.fits outfile=/scratch/kocevski/555903/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1668.fits ra=265.023 dec=47.6198 rad=12.0 tmin=671673601.0 tmax=671932801.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 3.58
user 3.33
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.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/555903/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 828

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555903/ltcube_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.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/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits
.....................!
real 14.76
user 14.30
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555903/ltcube_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.fits outfile=/scratch/kocevski/555903/expmap_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.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/555903/ltcube_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.fits
.....................!
real 192.44
user 186.32
sys 5.45

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 214 point sources and 0 extended sources

Setting source of interest to:
4FGL J1740.0+4737 @ 265.023 47.6198

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits scfile=/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits outfile=/scratch/kocevski/555903/cmap_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.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=265.023 yref=47.6198 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits scfile=/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits outfile=/scratch/kocevski/555903/cmap_HighResolution_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.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=265.023 yref=47.6198 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555903/Model_4FGL_J1740.0+4737_daily_bin1668.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/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits.....................!
real 75.69
user 74.14
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits', '/scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits', expMap='/scratch/kocevski/555903/expmap_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.fits', expCube='/scratch/kocevski/555903/ltcube_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555903/Model_4FGL_J1740.0+4737_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.0+4737'

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  7.827e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.090e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  2.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555903/ft1_filtered_4FGL_J1740.0+4737_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555903/ft2_4FGL_J1740.0+4737_daily_bin1668.fits
Exposure map: /scratch/kocevski/555903/expmap_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555903/ltcube_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555903/Model_4FGL_J1740.0+4737_daily_bin1668.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) = 8883.96544795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3334       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.073       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6019       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4472       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.815       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.109       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16766E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.310       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7512       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .56314       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.465       1.0000         .10000E-03   10000.    
    26 'norm      '    11.161       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.7275       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98089       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95520       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8883.962     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4118 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1045        3.4258        .18469E-05    .78857E-04
   2  Prefactor     5.3341        3.7675       -.54591E-07   -.16694E-03
   3  Prefactor     .10000E-03    1.5240       -.23439E-07** at limit **
   4  Prefactor     11.073        9.7910        .10232E-06    .31366E-05
   5  norm          5.6019        2.0089       -.80060E-09   -.13477E-04
   6  norm          .10000E-03    .25587       -.71315E-07** at limit **
   7  Prefactor     3.4473        4.5934        .48489E-06    .18868E-03
   8  norm          .10000E-03    .20121        .11456E-08** at limit **
   9  norm          17.767        8.5949        .54651E-07   -.25109E-04
  10  Prefactor     .10000E-03    5.2152        .19031E-06** at limit **
  11  norm          3.7017        1.6823        .26115E-07   -.13018E-03
  12  Prefactor     .10000E-03    1.0803        .23389E-07** at limit **
  13  Prefactor     .10000E-03    16.150        .12613E-06** at limit **
  14  norm          .10000E-03    1.1514       -.41040E-08** at limit **
  15  Prefactor     52.816        41.473        .62787E-07   -.87907E-05
  16  norm          3.7715        3.5430        .39610E-07    .69941E-04
  17  Prefactor     22.109        21.843       -.58224E-07   -.26067E-04
  18  Prefactor     5.8421        3.7460        .10810E-06    .22183E-03
  19  Prefactor     .10000E-03    250.86        .86185E-06** at limit **
  20  Prefactor     39.325        74.065        .12747E-05    .58451E-04
  21  Prefactor     .10000E-03    9.6326       -.41209E-06** at limit **
  22  Prefactor     2.7514        5.3046        .28206E-06   -.91125E-04
  23  Prefactor     .10000E-03    12.871        .77026E-07** at limit **
  24  norm          .56547        4.9125        .12792E-05   -.43602E-03
  25  Prefactor     22.465        14.740        .14211E-06    .12898E-04
  26  norm          11.161        7.0202        .52673E-07   -.12981E-04
  27  Prefactor     .10000E-03    13.147       -.29265E-06** at limit **
  28  norm          .10000E-03    9.7522        .70100E-06** at limit **
  29  norm          5.7275        7.5491        .23295E-06   -.33836E-06
  30  Normalizat    .98095        .18598       -.10772E-05   -.10658E-03
  31  Prefactor     .95518        .11875        .24053E-06   -.23381E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10449
  Prefactor  = 5.33414
  Prefactor  = 0.0001
  Prefactor  = 11.0731
  norm       = 5.60188
  norm       = 0.0001
  Prefactor  = 3.44733
  norm       = 0.0001
  norm       = 17.7671
  Prefactor  = 0.0001
  norm       = 3.70167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.8164
  norm       = 3.77147
  Prefactor  = 22.1094
  Prefactor  = 5.8421
  Prefactor  = 0.0001
  Prefactor  = 39.3249
  Prefactor  = 0.0001
  Prefactor  = 2.75139
  Prefactor  = 0.0001
  norm       = 0.565469
  Prefactor  = 22.4648
  norm       = 11.1605
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 5.72752
  Normalizat = 0.980953
  Prefactor  = 0.955182
 **********
 **   18 **HESSE 
 **********

 FCN=   8883.962     FROM HESSE     STATUS=OK           626 CALLS     4744 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1045        3.4873        .29350E-03   -1.5498    
   2  Prefactor     5.3341        3.7180        .13908E-03   -1.5246    
   3  Prefactor     .10000E-03    1.5609        .22708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.073        9.7868        .12039E-03   -1.5042    
   5  norm          5.6019        2.0093        .77900E-04   -1.5235    
   6  norm          .10000E-03    .32817        .91541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4473        4.5926        .21784E-03   -1.5337    
   8  norm          .10000E-03    .20127        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.767        8.5988        .95018E-04   -1.4865    
  10  Prefactor     .10000E-03    5.2482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7017        1.6832        .78043E-04   -1.5323    
  12  Prefactor     .10000E-03    1.0862        .95649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1532        .98736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     52.816        41.470        .55189E-04   -1.4253    
  16  norm          3.7715        3.5437        .16564E-03   -1.5320    
  17  Prefactor     22.109        21.845        .85186E-04   -1.4767    
  18  Prefactor     5.8421        3.7473        .13971E-03   -1.5225    
  19  Prefactor     .10000E-03    259.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.325        74.676        .63929E-04   -1.4453    
  21  Prefactor     .10000E-03    9.7700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7514        5.2758        .24543E-03   -1.5376    
  23  Prefactor     .10000E-03    12.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .56547        10.699        .36598E-02   -1.5558    
  25  Prefactor     22.465        14.747        .84509E-04   -1.4760    
  26  norm          11.161        7.0180        .11992E-03   -1.5040    
  27  Prefactor     .10000E-03    13.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.7275        7.5553        .16783E-03   -1.5229    
  30  Normalizat    .98095        .21920        .30122E-03   -.93671    
  31  Prefactor     .95518        .14147        .20825E-03   -.94239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01479e-10
Minuit parameter uncertainties:
  1  3.48798
  2  3.71816
  3  6.53696e-07
  4  9.78822
  5  2.00935
  6  2.36867e-06
  7  4.59304
  8  2.07441e-09
  9  8.59942
  10  3.92297e-06
  11  1.68321
  12  4.40408e-07
  13  5.52061e-05
  14  1.20009e-07
  15  41.493
  16  3.54388
  17  21.853
  18  3.74741
  19  0.000350781
  20  74.8548
  21  0.000127099
  22  5.27666
  23  6.40413e-06
  24  4.92
  25  14.7492
  26  7.01855
  27  9.76356e-05
  28  0.000179854
  29  7.55657
  30  0.2194
  31  0.141521
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  2.211e+01  2.185e+01  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.090e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  2.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.552e-01  1.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  9.810e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.99
Ra Dec: 265.023 47.620
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 1.25e-08
Energy Flux (Fixed Index): 7.12e-06 +/- 7.04e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8882.67894088
delta logL = 1.28260048044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8882.67113394
delta logL = 1.29040742263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.398       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0613       1.0000          .0000       10.000    
     3 'Normalizat'    .98877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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=   8882.671     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.385        30.265        .79487E-04   -.17420E-03
   2  Index         1.0605        .59861        .13993E-01    .57425E-04
   3  Normalizat    .98909        .20087        .30010E-03    .94342E-03
   4  Prefactor     .95318        .13814        .20844E-03    .10754E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3847
  Index      = 1.06045
  Normalizat = 0.989088
  Prefactor  = 0.953183
 **********
 **   18 **HESSE 
 **********

 FCN=   8882.671     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.385        31.158        .15897E-04   -1.4700    
   2  Index         1.0605        .61614        .55973E-03   -.90741    
   3  Normalizat    .98909        .20103        .60019E-04   -.93397    
   4  Prefactor     .95318        .13826        .41688E-04   -.94307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09038e-09
Minuit parameter uncertainties:
  1  31.1776
  2  0.620331
  3  0.201186
  4  0.138307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555903': 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) = 8882.67113073
delta logL = 1.29041063918

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  2.538e+01  3.118e+01  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.060e+00  6.203e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  2.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.532e-01  1.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  9.891e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.57
Ra Dec: 265.023 47.620
Photon Index (Free Index): 1.06 +/- 0.62
Photon Flux (Free Index): 3.76e-09 +/- 4.45e-09
Energy Flux (Free Index): 4.67e-05 +/- 6.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/555903/cmap_HighResolution_671673601_671932801_4FGL_J1740.0+4737_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='4.67e-05', photon_flux_error='1.25e-08', dlogl='1.29e+00', energy_flux='7.12e-06', photon_flux2='3.76e-09', job_status='DONE', time_completed='2022-04-18 03:27:56.724131', photon_index_error2='0.62', photon_index2='1.06', ts='6.99', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='6.62e-05', EG='0.98', time_epoch_completed='1650277676.72', return_code='0', job_id='555903', GAL2='0.95', EG2='0.99', return_code2='0', energy_flux_error='7.04e-06', photon_flux_error2='4.45e-09', ts2='9.57', photon_index='2.09' WHERE bin_id='1668' AND source_name='4FGL J1740.0+4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:27:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 555692: <4FGL_J1740.0+4737_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1740.0+4737_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:41 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:03:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:03:08 2022
Terminated at Mon Apr 18 03:22:44 2022
Results reported at Mon Apr 18 03:22:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin1668 265.023 47.6198 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.0+4737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1114.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1179 sec.
    Turnaround time :                            11703 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 555903: <4FGL_J1740.0+4737_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1740.0+4737_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:55 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:07:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:07:57 2022
Terminated at Mon Apr 18 03:27:57 2022
Results reported at Mon Apr 18 03:27:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin1668 265.023 47.6198 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.0+4737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1112.50 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1200 sec.
    Turnaround time :                            12002 sec.

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

