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


Performing analysis on: 4FGL_J1740.6+5346_daily_bin1751
RA = 265.159, Dec = 53.7701
tmin = 693187201, tmax = 693446401
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='82881', job_status='RUN', time_executed='2022-12-23 01:02:41.751600', time_epoch_executed='1671786161.75' WHERE source_name='4FGL J1740.6+5346' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82881

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82881/ft1_4FGL_J1740.6+5346_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82881/ft1_4FGL_J1740.6+5346_daily_bin1751.fits outfile=/scratch/kocevski/82881/ft1_filteredMKT_4FGL_J1740.6+5346_daily_bin1751.fits ra=265.159 dec=53.7701 rad=12.0 tmin=693187201.0 tmax=693446401.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.68
user 3.46
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.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/82881/ft1_filteredMKT_4FGL_J1740.6+5346_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.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: 883

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/82881/ltcube_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.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/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits
.....................!
real 12.10
user 11.72
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/82881/ltcube_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.fits outfile=/scratch/kocevski/82881/expmap_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.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/82881/ltcube_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.fits
.....................!
real 189.61
user 185.16
sys 4.14

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

Setting source of interest to:
4FGL J1740.6+5346 @ 265.159 53.7701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits scfile=/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits outfile=/scratch/kocevski/82881/cmap_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.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.159 yref=53.7701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits scfile=/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits outfile=/scratch/kocevski/82881/cmap_HighResolution_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.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.159 yref=53.7701 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82881/Model_4FGL_J1740.6+5346_daily_bin1751.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/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits.....................!
real 79.86
user 78.45
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits', '/scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits', expMap='/scratch/kocevski/82881/expmap_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.fits', expCube='/scratch/kocevski/82881/ltcube_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82881/Model_4FGL_J1740.6+5346_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.6+5346'

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  8.657e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/82881/ft1_filtered_4FGL_J1740.6+5346_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/82881/ft2_4FGL_J1740.6+5346_daily_bin1751.fits
Exposure map: /scratch/kocevski/82881/expmap_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.fits
Exposure cube: /scratch/kocevski/82881/ltcube_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82881/Model_4FGL_J1740.6+5346_daily_bin1751.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) = 9166.29166552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1669       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.6130       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8059       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3752       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.492       1.0000          .0000       .10000E+07
     6 'Prefactor '    25.646       1.0000          .0000       .10000E+07
     7 'norm      '    .19817E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .32824E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .14672       1.0000          .0000       .10000E+07
    10 'Prefactor '    .83361E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    12 'norm      '    4.5630       1.0000          .0000       .10000E+07
    13 'Prefactor '    .38414E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .50533E-03   1.0000          .0000       .10000E+07
    15 'norm      '    4.6741       1.0000          .0000       .10000E+07
    16 'Prefactor '    .50553       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.9200       1.0000          .0000       .10000E+07
    18 'Prefactor '    122.73       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29661E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .13878E-08   1.0000          .0000       .10000E+07
    21 'norm      '    .68384E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .83482E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .24016E-03   1.0000          .0000       .10000E+07
    24 'norm      '    11.780       1.0000          .0000       .10000E+07
    25 'norm      '    7.8875       1.0000          .0000       .10000E+07
    26 'norm      '    8.6156       1.0000          .0000       .10000E+07
    27 'Prefactor '    6.6833       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9161.884     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1610 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1164        2.0074       -.14353E-07    .23208E-01
   2  Prefactor     5.6029        5.2780        .23400E-07    .13639E-02
   3  Prefactor     2.8272        8.1932        .25282E-06    .93845E-03
   4  Prefactor     3.3734        2.6662       -.44406E-07   -.21453E-03
   5  Prefactor     11.613        10.500       -.93014E-08   -.20420E-01
   6  Prefactor     25.914        4.2661        .22833E-07    .85865E-01
   7  norm           .0000        .31384        .49267E-07** at limit **
   8  Prefactor      .0000        1.4134       -.90414E-07** at limit **
   9  norm          .14653        .45463       -.93413E-07** at limit **
  10  Prefactor     .48400E-05    5.5863        .75206E-07** at limit **
  11  Prefactor     .72164E-09    6.3249        .30080E-06** at limit **
  12  norm          4.5668        1.8267        .73538E-07    .33797E-02
  13  Prefactor     .33307E-09    2.3618        .99293E-07** at limit **
  14  Prefactor     .10375E-06    32.637       -.13567E-07** at limit **
  15  norm          4.6858        4.6388       -.16554E-06    .22114E-04
  16  Prefactor     .69961E-05    9.8584       -.51764E-07** at limit **
  17  Prefactor     3.9268        3.3293        .81186E-08    .27493E-03
  18  Prefactor     122.16        51.431       -.64777E-07    .24907E-01
  19  Prefactor     .10524E-05    16.942       -.11498E-06** at limit **
  20  Prefactor     .55511E-10    2.8064        .11160E-06** at limit **
  21  norm          .11102E-09    2.2022       -.73350E-07** at limit **
  22  Prefactor     .84377E-08    42.221        .70385E-06** at limit **
  23  Prefactor     .12212E-08    14.237        .29594E-06** at limit **
  24  norm          11.648        7.1518        .75255E-07    .35889E-01
  25  norm          7.9495        6.3714       -.12340E-07    .16374E-02
  26  norm          8.6489        1.3088       -.33151E-08    .61074E-02
  27  Prefactor     6.6773        3.2467       -.28699E-07    .42777E-01
  28  Normalizat    1.0027        .22521        .49610E-06    .15531E-04
  29  Prefactor     .91460        .15420        .16725E-07    .15114E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.11644
  Prefactor  = 5.60286
  Prefactor  = 2.82715
  Prefactor  = 3.37336
  Prefactor  = 11.613
  Prefactor  = 25.9139
  norm       = 0
  Prefactor  = 0
  norm       = 0.146529
  Prefactor  = 4.83996e-06
  Prefactor  = 7.21645e-10
  norm       = 4.56681
  Prefactor  = 3.33067e-10
  Prefactor  = 1.0375e-07
  norm       = 4.68577
  Prefactor  = 6.99613e-06
  Prefactor  = 3.92684
  Prefactor  = 122.16
  Prefactor  = 1.05244e-06
  Prefactor  = 5.55112e-11
  norm       = 1.11022e-10
  Prefactor  = 8.43769e-09
  Prefactor  = 1.22125e-09
  norm       = 11.6481
  norm       = 7.94952
  norm       = 8.64889
  Prefactor  = 6.67735
  Normalizat = 1.00273
  Prefactor  = 0.914598
 **********
 **   18 **HESSE 
 **********

 FCN=   9161.884     FROM HESSE     STATUS=OK           627 CALLS     2237 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1164        23.508        .33078E-03   -1.5648    
   2  Prefactor     5.6029        5.2859        .42379E-03   -1.5661    
   3  Prefactor     2.8272        8.2653        .60703E-03   -1.5674    
   4  Prefactor     3.3734        2.6770        .55053E-03   -1.5671    
   5  Prefactor     11.613        10.882        .29527E-03   -1.5640    
   6  Prefactor     25.914        19.718        .19751E-03   -1.5606    
   7  norm           .0000        .31152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.4138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .14653        .40805        .25911E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .48400E-05    3.8810        .57039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72164E-09    6.3256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5668        1.8303        .47101E-03   -1.5665    
  13  Prefactor     .33307E-09    2.3393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10375E-06    34.819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6858        4.6486        .46524E-03   -1.5665    
  16  Prefactor     .69961E-05    67.709        .78155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9268        3.3382        .50931E-03   -1.5668    
  18  Prefactor     122.16        52.453        .90273E-04   -1.5487    
  19  Prefactor     .10524E-05    20.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    2.8099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .11102E-09    2.2067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .84377E-08    7.1823        .88514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12212E-08    14.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.648        7.2620        .29162E-03   -1.5640    
  25  norm          7.9495        6.4670        .35679E-03   -1.5652    
  26  norm          8.6489        9.5187        .34127E-03   -1.5649    
  27  Prefactor     6.6773        11.117        .38791E-03   -1.5656    
  28  Normalizat    1.0027        .19279        .70412E-01   -.92939    
  29  Prefactor     .91460        .12918        .45190E-01   -.95633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83621e-07
Minuit parameter uncertainties:
  1  23.5085
  2  5.28589
  3  8.26532
  4  2.67705
  5  10.8818
  6  19.7176
  7  8.39779e-07
  8  4.8611e-06
  9  0.408052
  10  0.00866815
  11  0.000132839
  12  1.83034
  13  5.52633e-05
  14  0.00380118
  15  4.64864
  16  0.0435299
  17  3.33824
  18  52.4536
  19  0.00927238
  20  2.28419e-05
  21  3.17048e-05
  22  0.000492263
  23  0.000265279
  24  7.262
  25  6.46701
  26  9.51874
  27  11.1167
  28  0.192921
  29  0.129223
Done.

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

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  1.222e+02  5.245e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.146e-01  1.292e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.003e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.93
Ra Dec: 265.159 53.770
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 1.38e-05

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) = 9160.10840265
delta logL = 1.77606220317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9160.06528115
delta logL = 1.8191837022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    203.08       1.0000          .0000       .10000E+07
     2 'Index     '    1.5810       1.0000          .0000       10.000    
     3 'Normalizat'    1.0333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90373       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9160.065     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      265 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     203.08        2237.9        .70180E-04    .11599E-03
   2  Index         1.5810        5.7348        .16577        .42298E-04
   3  Normalizat    1.0333        .25548        .69485E-01    .21410E-04
   4  Prefactor     .90370        .12517        .45053E-01    .13337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 203.077
  Index      = 1.58099
  Normalizat = 1.03335
  Prefactor  = 0.903704
 **********
 **   18 **HESSE 
 **********

 FCN=   9160.065     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     203.08        90.886        .28072E-05   -1.5423    
   2  Index         1.5810        .28986        .63577E-02   -.75296    
   3  Normalizat    1.0333        .20960        .30743E-03   -.91921    
   4  Prefactor     .90370        .15113        .23410E-03   -.96012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79551e-10
Minuit parameter uncertainties:
  1  90.8871
  2  0.290166
  3  0.209768
  4  0.151197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82881': 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) = 9160.06528114
delta logL = 1.81918371852

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.031e+02  9.089e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  1.581e+00  2.902e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.037e-01  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.033e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.60
Ra Dec: 265.159 53.770
Photon Index (Free Index): 1.58 +/- 0.29
Photon Flux (Free Index): 3.83e-08 +/- 2.18e-08
Energy Flux (Free Index): 9.23e-05 +/- 6.97e-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/82881/cmap_HighResolution_693187201_693446401_4FGL_J1740.6+5346_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='9.23e-05', photon_flux_error='2.86e-08', dlogl='1.82e+00', energy_flux='3.20e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2022-12-23 01:15:17.840731', photon_index_error2='0.29', photon_index2='1.58', ts='23.93', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.97e-05', EG='1.00', time_epoch_completed='1671786917.84', return_code='0', job_id='82881', GAL2='0.90', EG2='1.03', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.18e-08', ts2='27.60', photon_index='2.17' WHERE bin_id='1751' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:15:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 82881: <4FGL_J1740.6+5346_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1740.6+5346_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 01:00:22 2022
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:00:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:00:23 2022
Terminated at Fri Dec 23 01:15:18 2022
Results reported at Fri Dec 23 01:15:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.6+5346_daily_bin1751 265.159 53.7701 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.6+5346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

