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


Performing analysis on: 4FGL_J1741.2+5739_weekly_bin715
RA = 265.323, Dec = 57.6587
tmin = 671414401, tmax = 672019201
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='935287', job_status='RUN', time_executed='2022-04-19 02:34:34.806800', time_epoch_executed='1650360874.81' WHERE source_name='4FGL J1741.2+5739' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935287

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935287/ft1_4FGL_J1741.2+5739_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935287/ft1_4FGL_J1741.2+5739_weekly_bin715.fits outfile=/scratch/kocevski/935287/ft1_filteredMKT_4FGL_J1741.2+5739_weekly_bin715.fits ra=265.323 dec=57.6587 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.59
user 7.24
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.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/935287/ft1_filteredMKT_4FGL_J1741.2+5739_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.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.55
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 2384

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935287/ltcube_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.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/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits
.....................!
real 27.60
user 27.10
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935287/ltcube_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.fits outfile=/scratch/kocevski/935287/expmap_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.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/935287/ltcube_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.fits
.....................!
real 191.55
user 185.07
sys 5.85

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

Setting source of interest to:
4FGL J1741.2+5739 @ 265.323 57.6587

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits scfile=/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits outfile=/scratch/kocevski/935287/cmap_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.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.323 yref=57.6587 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits scfile=/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits outfile=/scratch/kocevski/935287/cmap_HighResolution_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.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.323 yref=57.6587 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.58
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935287/Model_4FGL_J1741.2+5739_weekly_bin715.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/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits.....................!
real 202.45
user 200.60
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits', '/scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits', expMap='/scratch/kocevski/935287/expmap_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.fits', expCube='/scratch/kocevski/935287/ltcube_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935287/Model_4FGL_J1741.2+5739_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1741.2+5739'

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  8.390e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/935287/ft1_filtered_4FGL_J1741.2+5739_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/935287/ft2_4FGL_J1741.2+5739_weekly_bin715.fits
Exposure map: /scratch/kocevski/935287/expmap_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.fits
Exposure cube: /scratch/kocevski/935287/ltcube_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935287/Model_4FGL_J1741.2+5739_weekly_bin715.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) = 24712.1880774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.516       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1112       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26093E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .49945       1.0000         .10000E-03   10000.    
     8 'norm      '    .13076       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6474       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15145E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77900E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.899       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9813       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.705       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.602       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12232E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2393       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.620       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.3549       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9517       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.1808       1.0000         .10000E-03   10000.    
    27 'norm      '    7.0853       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.9782       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.1430       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1174       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .93739       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24712.14     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     4244 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.515        13.583        .10546E-06   -.10795E-04
   2  Prefactor     10.152        4.2469        .11275E-06   -.83729E-04
   3  norm          3.2084        3.9656       -.55232E-07   -.66123E-04
   4  Prefactor     2.1121        1.8279        .88076E-07    .38458E-04
   5  Prefactor     4.8145        4.6393        .14932E-06    .25510E-04
   6  Prefactor     .10006E-03    4.1175       -.96322E-06** at limit **
   7  norm          .49851        .51003       -.34991E-07   -.43787E-03
   8  norm          .13069        .39056       -.32196E-06   -.29085E-03
   9  Prefactor     2.6515        4.4684        .14132E-05    .25989E-03
  10  Prefactor     .10000E-03    2.7865        .59445E-07** at limit **
  11  Prefactor     .10000E-03    1.3417        .51792E-06** at limit **
  12  Prefactor     .10801E-03    2.1178        .10892E-05** at limit **
  13  Prefactor     .10000E-03    .44568       -.80596E-07** at limit **
  14  Prefactor     15.907        18.705       -.20567E-05   -.18183E-03
  15  norm          2.8640        2.2459        .57842E-07   -.36367E-05
  16  Prefactor     18.610        17.918        .28979E-06    .38494E-05
  17  Prefactor     1.9813        1.7152        .64602E-07   -.19501E-04
  18  Prefactor     17.704        17.203        .12301E-06   -.20765E-04
  19  Prefactor     11.638        43.743       -.15941E-05   -.35109E-04
  20  Prefactor     10.596        16.252        .16637E-06   -.10338E-04
  21  Prefactor     .10000E-03    15.385        .50497E-06** at limit **
  22  Prefactor     1.2382        8.2105        .13106E-05    .90011E-04
  23  Prefactor     15.619        9.0264        .23189E-06   -.48370E-04
  24  Prefactor     9.3537        11.387        .52011E-06   -.26784E-04
  25  Prefactor     2.8886        307.39        .21214E-04   -.19502E-05
  26  Prefactor     9.1807        4.4205        .51727E-06   -.12712E-03
  27  norm          7.0845        4.2491        .11377E-06   -.22391E-04
  28  Prefactor     .10000E-03    3.5551       -.10295E-06** at limit **
  29  norm          5.9778        5.6108        .19697E-06   -.30754E-05
  30  Prefactor     .10000E-03    7.2360       -.39837E-06** at limit **
  31  Prefactor     .10000E-03    12.900        .50812E-07** at limit **
  32  norm          1.1430        .84038        .39233E-08    .19407E-04
  33  Normalizat    1.1175        .12426       -.12682E-05   -.40130E-03
  34  Prefactor     .93734        .81635E-01    .99289E-07   -.51506E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.5147
  Prefactor  = 10.1522
  norm       = 3.20844
  Prefactor  = 2.11212
  Prefactor  = 4.81451
  Prefactor  = 0.000100056
  norm       = 0.498511
  norm       = 0.13069
  Prefactor  = 2.65154
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000108005
  Prefactor  = 0.0001
  Prefactor  = 15.9066
  norm       = 2.86404
  Prefactor  = 18.6099
  Prefactor  = 1.98131
  Prefactor  = 17.7036
  Prefactor  = 11.6381
  Prefactor  = 10.5959
  Prefactor  = 0.0001
  Prefactor  = 1.23824
  Prefactor  = 15.6185
  Prefactor  = 9.35368
  Prefactor  = 2.88861
  Prefactor  = 9.1807
  norm       = 7.08448
  Prefactor  = 0.0001
  norm       = 5.97781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14298
  Normalizat = 1.11748
  Prefactor  = 0.937338
 **********
 **   18 **HESSE 
 **********

 FCN=   24712.14     FROM HESSE     STATUS=OK           766 CALLS     5010 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.515        13.583        .65435E-04   -1.4482    
   2  Prefactor     10.152        4.2769        .62875E-03   -1.5071    
   3  norm          3.2084        3.9532        .22617E-03   -1.5350    
   4  Prefactor     2.1121        1.7987        .18660E-03   -1.5417    
   5  Prefactor     4.8145        4.6325        .91672E-03   -1.5269    
   6  Prefactor     .10006E-03    3.8595        .95069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .49851        .40904        .10783E-02   -1.5567    
   8  norm          .13069        .38231        .15356E-03   -1.5636    
   9  Prefactor     2.6515        4.3892        .12528E-02   -1.5382    
  10  Prefactor     .10000E-03    2.7966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4758        .32911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10801E-03    1.6889        .67044E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .44856        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.907        18.742        .10045E-03   -1.4910    
  15  norm          2.8640        2.2426        .20068E-03   -1.5369    
  16  Prefactor     18.610        17.908        .92856E-04   -1.4845    
  17  Prefactor     1.9813        1.7048        .18399E-03   -1.5426    
  18  Prefactor     17.704        17.194        .95187E-04   -1.4866    
  19  Prefactor     11.638        43.997        .11719E-03   -1.5026    
  20  Prefactor     10.596        16.236        .12305E-03   -1.5057    
  21  Prefactor     .10000E-03    16.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2382        8.4390        .20148E-02   -1.5485    
  23  Prefactor     15.619        9.0292        .10134E-03   -1.4917    
  24  Prefactor     9.3537        11.382        .13103E-03   -1.5096    
  25  Prefactor     2.8886        307.40        .23638E-03   -1.5368    
  26  Prefactor     9.1807        4.4025        .13227E-03   -1.5102    
  27  norm          7.0845        4.2458        .15070E-03   -1.5176    
  28  Prefactor     .10000E-03    3.5580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.9778        5.6105        .16423E-03   -1.5219    
  30  Prefactor     .10000E-03    7.3216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.1430        .83388        .12027E-03   -1.5494    
  33  Normalizat    1.1175        .14449        .30542E-03   -.89193    
  34  Prefactor     .93734        .96542E-01    .23912E-03   -.94848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62743e-09
Minuit parameter uncertainties:
  1  13.5845
  2  4.27706
  3  3.95352
  4  1.79873
  5  4.63286
  6  0.000933814
  7  0.409043
  8  0.382319
  9  4.38975
  10  4.49518e-06
  11  0.00013578
  12  0.00735429
  13  5.81249e-07
  14  18.7492
  15  2.24265
  16  17.9131
  17  1.70482
  18  17.1986
  19  44.1203
  20  16.243
  21  8.58491e-06
  22  6.46619
  23  9.02996
  24  11.3843
  25  59.9144
  26  4.4027
  27  4.24601
  28  1.21667e-06
  29  5.61103
  30  1.74392e-05
  31  9.854e-07
  32  0.833886
  33  0.144544
  34  0.0965593
Done.

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

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.164e+01  4.412e+01  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.373e-01  9.656e-02  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.117e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 265.323 57.659
Photon Flux Upper Limit: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935287/likelihoodResults_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.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) = 24712.1395982
delta logL = 1.7292186385e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24712.1395428
delta logL = 5.71332711843e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.897       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3574       1.0000          .0000       10.000    
     3 'Normalizat'    1.1177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93730       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24712.14     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      252 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.052        335.64        .29035E-02    .58748E-04
   2  Index         2.3458        .55171        .50000        .32996E-05
   3  Normalizat    1.1177        .81254E-02    .69025E-01   -.25510E-04
   4  Prefactor     .93724        .59046E-02    .45479E-01    .18973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0517
  Index      = 2.34584
  Normalizat = 1.11768
  Prefactor  = 0.937241
 **********
 **   18 **HESSE 
 **********

 FCN=   24712.14     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.052        76.283        .11614E-03   -1.5014    
   2  Index         2.3458        2.7303        .69461E-02   -.55958    
   3  Normalizat    1.1177        .12970        .30540E-03   -.89186    
   4  Prefactor     .93724        .93796E-01    .23913E-03   -.94852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43671e-10
Minuit parameter uncertainties:
  1  60.7554
  2  2.96685
  3  0.129737
  4  0.093812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935287': 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) = 24712.1395335
delta logL = 6.64185754431e-05

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.205e+01  6.076e+01  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.346e+00  2.967e+00  0.000e+00  1.000e+01 (-1.000e+00)
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.372e-01  9.381e-02  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.118e+00  1.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 265.323 57.659

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/935287/cmap_HighResolution_671414401_672019201_4FGL_J1741.2+5739_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2022-04-19 03:29:20.796854', job_id='935287', GAL2='0.94', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1650364160.8', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.64e-05', ts2='0.08', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='715' AND source_name='4FGL J1741.2+5739' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:29:20 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 931494: <4FGL_J1741.2+5739_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1741.2+5739_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:30 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:19:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:19:14 2022
Terminated at Tue Apr 19 03:15:17 2022
Results reported at Tue Apr 19 03:15:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_weekly_bin715 265.323 57.6587 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1741.2+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3281.64 sec.
    Max Memory :                                 1722 MB
    Average Memory :                             362.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3410 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3363 sec.
    Turnaround time :                            11267 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 935287: <4FGL_J1741.2+5739_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1741.2+5739_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:53 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:33:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:33:10 2022
Terminated at Tue Apr 19 03:29:21 2022
Results reported at Tue Apr 19 03:29:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_weekly_bin715 265.323 57.6587 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1741.2+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3277.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             347.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   3372 sec.
    Turnaround time :                            11428 sec.

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

