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 117 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7381
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.0+4737_daily_bin1750
RA = 265.023, Dec = 47.6198
tmin = 692928001, tmax = 693187201
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='20057', job_status='RUN', time_executed='2022-12-20 01:22:30.168220', time_epoch_executed='1671528150.17' WHERE source_name='4FGL J1740.0+4737' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20057/ft1_4FGL_J1740.0+4737_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20057/ft1_4FGL_J1740.0+4737_daily_bin1750.fits outfile=/scratch/kocevski/20057/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1750.fits ra=265.023 dec=47.6198 rad=12.0 tmin=692928001.0 tmax=693187201.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.50
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.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/20057/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/20057/ft1_filtered_4FGL_J1740.0+4737_daily_bin1750.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.15

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20057/ft1_filtered_4FGL_J1740.0+4737_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/20057/ltcube_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.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/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits
.....................!
real 11.92
user 11.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20057/ft1_filtered_4FGL_J1740.0+4737_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/20057/ltcube_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.fits outfile=/scratch/kocevski/20057/expmap_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.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/20057/ltcube_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.fits
.....................!
real 191.33
user 185.82
sys 5.19

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/20057/ft1_filtered_4FGL_J1740.0+4737_daily_bin1750.fits scfile=/scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits outfile=/scratch/kocevski/20057/cmap_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20057/ft1_filtered_4FGL_J1740.0+4737_daily_bin1750.fits scfile=/scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits outfile=/scratch/kocevski/20057/cmap_HighResolution_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20057/ft1_filtered_4FGL_J1740.0+4737_daily_bin1750.fits', '/scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits', expMap='/scratch/kocevski/20057/expmap_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.fits', expCube='/scratch/kocevski/20057/ltcube_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20057/Model_4FGL_J1740.0+4737_daily_bin1750.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  0.000e+00  1.000e+06 ( 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/20057/ft1_filtered_4FGL_J1740.0+4737_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/20057/ft2_4FGL_J1740.0+4737_daily_bin1750.fits
Exposure map: /scratch/kocevski/20057/expmap_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.fits
Exposure cube: /scratch/kocevski/20057/ltcube_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20057/Model_4FGL_J1740.0+4737_daily_bin1750.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6751.37547107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7807       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.8339       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12950E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.6832       1.0000          .0000       .10000E+07
     5 'norm      '    2.0742       1.0000          .0000       .10000E+07
     6 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14994E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     9 'norm      '    .30428E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0802       1.0000          .0000       .10000E+07
    11 'norm      '    14.303       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22047       1.0000          .0000       .10000E+07
    13 'norm      '    21.931       1.0000          .0000       .10000E+07
    14 'Prefactor '    13.403       1.0000          .0000       .10000E+07
    15 'norm      '    4.8242       1.0000          .0000       .10000E+07
    16 'Prefactor '    .85826E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.4250       1.0000          .0000       .10000E+07
    18 'Prefactor '    .76302E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    195.33       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.4195       1.0000          .0000       .10000E+07
    21 'norm      '    4.6082       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23481E-06   1.0000          .0000       .10000E+07
    23 'norm      '    .59858E-06   1.0000          .0000       .10000E+07
    24 'norm      '    .92395E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .19934E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .77712       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6747.434     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1456 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7824        3.7813        .32953E-06   -.33355E-02
   2  Prefactor     1.8327        3.4554        .24873E-06    .22080E-02
   3  Prefactor     .17486E-07    1.9824       -.79365E-06** at limit **
   4  Prefactor     5.7243        1.4060       -.25895E-06   -.85314E-03
   5  norm          2.0754        1.6685       -.97272E-07   -.11227E-01
   6  norm           .0000        .39227        .71454E-07** at limit **
   7  Prefactor     .41411E-07    1.6778        .44374E-06** at limit **
   8  norm           .0000        .35663        .69079E-07** at limit **
   9  norm          .23870E-08    3.3481       -.94906E-06** at limit **
  10  Prefactor     2.0986        7.5019       -.15653E-05   -.85445E-02
  11  norm          14.304        2.9603        .15734E-07    .38182E-02
  12  Prefactor     .27823        14.531       -.45886E-05   -.18415E-02
  13  norm          21.706        2.8256        .18544E-06    .10502E-01
  14  Prefactor     16.962        60.244       -.10816E-05    .87977E-02
  15  norm          4.7066        7.5016        .24258E-05    .39117E-02
  16  Prefactor     .39974E-06    9.9212        .45450E-05** at limit **
  17  Prefactor     9.4802        6.0518       -.57818E-06    .17346E-02
  18  Prefactor     .23870E-08    17.109        .38183E-06** at limit **
  19  Prefactor     195.53        5.0875        .21335E-06   -.53584    
  20  Prefactor     8.5089        3.2145        .61903E-07    .81551E-02
  21  norm          4.6056        6.4080        .13545E-07   -.25546E-02
  22  Prefactor     .61062E-09    5.6782       -.53977E-06** at limit **
  23  norm           .0000        2.6907       -.88887E-06** at limit **
  24  norm          .26146E-07    9.6778       -.13968E-05** at limit **
  25  norm          .12157E-07    8.2916        .24892E-06** at limit **
  26  Normalizat    .77632        .24475       -.76107E-05   -.15993E-03
  27  Prefactor     1.0375        .16154        .32476E-05   -.37013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78239
  Prefactor  = 1.83272
  Prefactor  = 1.7486e-08
  Prefactor  = 5.72428
  norm       = 2.07537
  norm       = 0
  Prefactor  = 4.14113e-08
  norm       = 0
  norm       = 2.38698e-09
  Prefactor  = 2.09861
  norm       = 14.3045
  Prefactor  = 0.278231
  norm       = 21.7055
  Prefactor  = 16.962
  norm       = 4.70659
  Prefactor  = 3.99736e-07
  Prefactor  = 9.48022
  Prefactor  = 2.38698e-09
  Prefactor  = 195.531
  Prefactor  = 8.50887
  norm       = 4.60563
  Prefactor  = 6.10623e-10
  norm       = 0
  norm       = 2.61458e-08
  norm       = 1.21569e-08
  Normalizat = 0.77632
  Prefactor  = 1.03747
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.434     FROM HESSE     STATUS=OK           548 CALLS     2004 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7824        3.8296        .78397E-03   -1.5681    
   2  Prefactor     1.8327        3.5681        .77025E-03   -1.5681    
   3  Prefactor     .17486E-07    3.2514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7243        10.638        .42112E-03   -1.5660    
   5  norm          2.0754        1.6686        .71691E-03   -1.5679    
   6  norm           .0000        .38953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .41411E-07    2.9760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .35311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .23870E-08    3.3837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0986        7.8597        .71573E-03   -1.5679    
  11  norm          14.304        2.9587        .26458E-03   -1.5632    
  12  Prefactor     .27823        2.7121        .72224E-02   -1.5697    
  13  norm          21.706        8.0856        .21359E-03   -1.5615    
  14  Prefactor     16.962        59.801        .27334E-03   -1.5626    
  15  norm          4.7066        9.0769        .45778E-03   -1.5665    
  16  Prefactor     .39974E-06    43.133        .14327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.4802        6.2757        .32619E-03   -1.5646    
  18  Prefactor     .23870E-08    17.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     195.53        115.02        .71559E-04   -1.5428    
  20  Prefactor     8.5089        7.5761        .34525E-03   -1.5650    
  21  norm          4.6056        7.1694        .46864E-03   -1.5665    
  22  Prefactor     .61062E-09    5.6857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        2.7061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .26146E-07    9.5780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .12157E-07    8.2813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .77632        .21442        .74612E-01   -1.0095    
  27  Prefactor     1.0375        .13836        .40700E-01   -.91491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93763e-05
Minuit parameter uncertainties:
  1  3.82957
  2  3.56807
  3  0.000476964
  4  10.6381
  5  1.66857
  6  2.2614e-06
  7  0.000702047
  8  3.18715e-06
  9  0.000178938
  10  7.85972
  11  2.95874
  12  1.73735
  13  8.08562
  14  59.803
  15  9.07689
  16  0.00830448
  17  6.27566
  18  0.000401936
  19  115.023
  20  7.57608
  21  7.16938
  22  0.000118148
  23  5.10701e-06
  24  0.00100094
  25  0.000634767
  26  0.214655
  27  0.138403
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  3.997e-07  8.304e-03  0.000e+00  1.000e+06 ( 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:  1.037e+00  1.384e-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:  7.763e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 265.023 47.620
Photon Flux Upper Limit: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20057/likelihoodResults_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6747.44519525
delta logL = -0.0110870312055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6747.26592824
delta logL = 0.168179974998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24898       1.0000          .0000       .10000E+07
     2 'Index     '    4.2397       1.0000          .0000       10.000    
     3 'Normalizat'    .73786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0524       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.

 FCN=   6747.266     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      256 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24149        6.6171        .10962E-02** at limit **
   2  Index         4.2513        2.5218        .98722E-01    .20915E-03
   3  Normalizat    .73818        .31762E-01    .76277E-01    .34130E-04
   4  Prefactor     1.0523        .21970E-01    .39771E-01    .56408E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.241491
  Index      = 4.25128
  Normalizat = 0.738184
  Prefactor  = 1.05232
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.266     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24149        35.913        .66355E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.2513        7.0081        .69047E-02   -.15031    
   3  Normalizat    .73818        .16830        .33765E-03   -1.0240    
   4  Prefactor     1.0523        .11473        .19767E-03   -.91005    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51394e-09
Minuit parameter uncertainties:
  1  5.8899
  2  8.54416
  3  0.168419
  4  0.114757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20057': 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): 102
logL (Free Index) = 6747.26591607
delta logL = 0.168192152218

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  2.415e-01  5.890e+00  0.000e+00  1.000e+06 ( 1.000e-14)
359        Index:  4.251e+00  8.544e+00  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:  1.052e+00  1.148e-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:  7.382e-01  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 265.023 47.620

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/20057/cmap_HighResolution_692928001_693187201_4FGL_J1740.0+4737_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2022-12-20 01:33:55.066397', job_id='20057', GAL2='1.05', fit_tolerance='1e-08', EG2='0.74', EG='0.78', time_epoch_completed='1671528835.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.68e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1750' AND source_name='4FGL J1740.0+4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:33:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 20057: <4FGL_J1740.0+4737_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1740.0+4737_daily_bin1750> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Dec 20 01:20:21 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:20:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:20:23 2022
Terminated at Tue Dec 20 01:33:55 2022
Results reported at Tue Dec 20 01:33:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin1750 265.023 47.6198 692928001 693187201 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 :                                   687.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

