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 95 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_J1358.1+7642_weekly_bin715
RA = 209.528, Dec = 76.7064
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='934889', job_status='RUN', time_executed='2022-04-19 02:31:53.156002', time_epoch_executed='1650360713.16' WHERE source_name='4FGL J1358.1+7642' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934889

Creating custom pfile directory:
/scratch/kocevski/934889/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/934889/ft1_4FGL_J1358.1+7642_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/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934889/ft1_4FGL_J1358.1+7642_weekly_bin715.fits outfile=/scratch/kocevski/934889/ft1_filteredMKT_4FGL_J1358.1+7642_weekly_bin715.fits ra=209.528 dec=76.7064 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.69
user 7.37
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_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/934889/ft1_filteredMKT_4FGL_J1358.1+7642_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_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.56
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 1797

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934889/ltcube_671414401_672019201_4FGL_J1358.1+7642_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/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits
.....................!
real 27.94
user 27.49
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934889/ltcube_671414401_672019201_4FGL_J1358.1+7642_weekly_bin715.fits outfile=/scratch/kocevski/934889/expmap_671414401_672019201_4FGL_J1358.1+7642_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/934889/ltcube_671414401_672019201_4FGL_J1358.1+7642_weekly_bin715.fits
.....................!
real 193.61
user 187.98
sys 5.21

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

Setting source of interest to:
4FGL J1358.1+7642 @ 209.528 76.7064

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits scfile=/scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits outfile=/scratch/kocevski/934889/cmap_671414401_672019201_4FGL_J1358.1+7642_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=209.528 yref=76.7064 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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits scfile=/scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits outfile=/scratch/kocevski/934889/cmap_HighResolution_671414401_672019201_4FGL_J1358.1+7642_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=209.528 yref=76.7064 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934889/Model_4FGL_J1358.1+7642_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/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits.....................!
real 198.24
user 196.44
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits', '/scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits', expMap='/scratch/kocevski/934889/expmap_671414401_672019201_4FGL_J1358.1+7642_weekly_bin715.fits', expCube='/scratch/kocevski/934889/ltcube_671414401_672019201_4FGL_J1358.1+7642_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934889/Model_4FGL_J1358.1+7642_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1358.1+7642'

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  5.684e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934889/ft1_filtered_4FGL_J1358.1+7642_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934889/ft2_4FGL_J1358.1+7642_weekly_bin715.fits
Exposure map: /scratch/kocevski/934889/expmap_671414401_672019201_4FGL_J1358.1+7642_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934889/ltcube_671414401_672019201_4FGL_J1358.1+7642_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934889/Model_4FGL_J1358.1+7642_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) = 19146.4113096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13594E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53831E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9770       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.853       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .63298       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.775       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.182       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2727       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0374       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1781       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50573       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .71488       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5879       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3795       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    38.697       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19146.34     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     3493 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9534       -.12456E-08** at limit **
   2  norm          .10481E-03    .78001        .10278E-06** at limit **
   3  Prefactor     .10000E-03    5.8219       -.15320E-06** at limit **
   4  Prefactor     .10024E-03    1.3242        .13482E-06** at limit **
   5  Prefactor     7.9759        5.5172       -.80446E-06   -.10842E-02
   6  Prefactor     18.849        28.705        .39169E-06    .27675E-04
   7  norm          .10000E-03    1.1732        .73302E-07** at limit **
   8  norm          .63322        1.4340        .99166E-06   -.74650E-03
   9  Prefactor     .10000E-03    7.4116       -.12809E-06** at limit **
  10  Prefactor     19.775        20.195       -.42117E-07    .79835E-05
  11  Prefactor     27.182        9.4892       -.56728E-07   -.21446E-03
  12  Prefactor     6.2716        14.358       -.30274E-06   -.11506E-03
  13  Prefactor     .10000E-03    .83063       -.45869E-07** at limit **
  14  Prefactor     7.0380        10.139       -.93628E-06   -.34074E-03
  15  Prefactor     1.1777        2.6595        .88724E-06   -.46610E-03
  16  Prefactor     .48273        2.1960        .82621E-07   -.24750E-03
  17  Prefactor     .71598        2.8125        .17989E-06   -.27197E-03
  18  Prefactor     7.5858        21.069        .35303E-06    .25386E-04
  19  Prefactor     22.152        21.928       -.20972E-06   -.25428E-04
  20  Prefactor     1.6761        19.264        .24063E-05    .12227E-04
  21  Prefactor     1.3728        43.700        .16997E-05   -.44619E-04
  22  Prefactor     .10000E-03    12.733        .32989E-07** at limit **
  23  Prefactor     .10000E-03    6.9689        .19521E-06** at limit **
  24  norm          38.696        12.438       -.93739E-07   -.12406E-03
  25  Prefactor     .10000E-03    43.405       -.16189E-06** at limit **
  26  Prefactor     .10000E-03    .64650       -.38822E-08** at limit **
  27  Prefactor     11.561        14.343       -.41660E-07   -.44753E-04
  28  Prefactor     .10000E-03    13.036       -.27594E-07** at limit **
  29  Normalizat    1.0572        .10030       -.14302E-09   -.20751E-03
  30  Prefactor     .95845        .77015E-01   -.18139E-06   -.13377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000104814
  Prefactor  = 0.0001
  Prefactor  = 0.000100242
  Prefactor  = 7.97593
  Prefactor  = 18.8495
  norm       = 0.0001
  norm       = 0.633219
  Prefactor  = 0.0001
  Prefactor  = 19.7755
  Prefactor  = 27.1819
  Prefactor  = 6.27162
  Prefactor  = 0.0001
  Prefactor  = 7.03798
  Prefactor  = 1.1777
  Prefactor  = 0.482732
  Prefactor  = 0.715983
  Prefactor  = 7.58582
  Prefactor  = 22.1518
  Prefactor  = 1.67611
  Prefactor  = 1.37276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.6964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5612
  Prefactor  = 0.0001
  Normalizat = 1.05717
  Prefactor  = 0.958453
 **********
 **   18 **HESSE 
 **********

 FCN=   19146.34     FROM HESSE     STATUS=OK           616 CALLS     4109 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10481E-03    1.5603        .40091E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10024E-03    1.2763        .53166E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9759        5.8090        .14196E-03   -1.5143    
   6  Prefactor     18.849        28.725        .92244E-04   -1.4839    
   7  norm          .10000E-03    3.7520        .28950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .63322        1.4416        .24152E-03   -1.5549    
   9  Prefactor     .10000E-03    7.4141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.775        20.160        .90068E-04   -1.4818    
  11  Prefactor     27.182        9.4941        .76839E-04   -1.4665    
  12  Prefactor     6.2716        14.302        .16028E-03   -1.5207    
  13  Prefactor     .10000E-03    .83904        .12304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0380        10.233        .15122E-03   -1.5177    
  15  Prefactor     1.1777        2.6458        .33528E-03   -1.5491    
  16  Prefactor     .48273        7.9085        .38342E-02   -1.5569    
  17  Prefactor     .71598        13.146        .43981E-02   -1.5539    
  18  Prefactor     7.5858        21.068        .14558E-03   -1.5157    
  19  Prefactor     22.152        21.923        .85107E-04   -1.4766    
  20  Prefactor     1.6761        19.229        .32523E-03   -1.5449    
  21  Prefactor     1.3728        44.850        .37066E-03   -1.5474    
  22  Prefactor     .10000E-03    12.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          38.696        12.449        .64432E-04   -1.4463    
  25  Prefactor     .10000E-03    43.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .66209        .21609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.561        14.292        .11781E-03   -1.5028    
  28  Prefactor     .10000E-03    13.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0572        .11127        .25197E-03   -.91139    
  30  Prefactor     .95845        .86284E-01    .21271E-03   -.94128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96728e-07
Minuit parameter uncertainties:
  1  3.67529e-06
  2  0.00548132
  3  3.48626e-05
  4  0.00111091
  5  5.80942
  6  28.7457
  7  2.71122e-05
  8  1.44165
  9  1.09258e-05
  10  20.1665
  11  9.49463
  12  14.3095
  13  8.74184e-07
  14  10.2357
  15  2.64607
  16  3.90799
  17  6.13711
  18  21.0885
  19  21.9313
  20  11.3586
  21  15.7054
  22  2.20544e-06
  23  1.25038e-05
  24  12.4499
  25  6.14746e-05
  26  7.89396e-07
  27  14.2959
  28  7.17838e-06
  29  0.111295
  30  0.0862961
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  7.160e-01  6.137e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.585e-01  8.630e-02  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.057e+00  1.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 209.528 76.706
Photon Flux Upper Limit: 2.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934889/likelihoodResults_671414401_672019201_4FGL_J1358.1+7642_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) = 19146.3295786
delta logL = 0.013685714137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19146.3187315
delta logL = 0.0245327471312

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19146.32     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      222 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7844        184.68        .78030E-02    .51631E-03
   2  Index         2.0234        2.3854        .50000        .10205E-04
   3  Normalizat    1.0573        .12817E-01    .40084E-01   -.21049E-03
   4  Prefactor     .95786        .10362E-01    .45737E-01   -.32660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78439
  Index      = 2.02338
  Normalizat = 1.05731
  Prefactor  = 0.957863
 **********
 **   18 **HESSE 
 **********

 FCN=   19146.32     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7844        8.2337        .31212E-03   -1.5441    
   2  Index         2.0234        1.2918        .17605E-01   -.63767    
   3  Normalizat    1.0573        .10404        .25195E-03   -.91134    
   4  Prefactor     .95786        .84513E-01    .21277E-03   -.94148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34325e-10
Minuit parameter uncertainties:
  1  7.66759
  2  1.31515
  3  0.104064
  4  0.084525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934889': 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) = 19146.3187297
delta logL = 0.024534586275

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  1.784e+00  7.668e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.023e+00  1.315e+00  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.579e-01  8.452e-02  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.057e+00  1.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 209.528 76.706

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/934889/cmap_HighResolution_671414401_672019201_4FGL_J1358.1+7642_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-03', job_status='DONE', photon_flux_upper_limit='2.97e-08', time_completed='2022-04-19 03:11:46.809752', job_id='934889', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1650363106.81', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.45e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='715' AND source_name='4FGL J1358.1+7642' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:11:46 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 931132: <4FGL_J1358.1+7642_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1358.1+7642_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:02 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:16:18 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:16:18 2022
Terminated at Tue Apr 19 02:59:00 2022
Results reported at Tue Apr 19 02:59:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_weekly_bin715 209.528 76.7064 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1358.1+7642 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2390.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             337.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2561 sec.
    Turnaround time :                            10318 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 934889: <4FGL_J1358.1+7642_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1358.1+7642_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:17 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:30:08 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:30:08 2022
Terminated at Tue Apr 19 03:11:47 2022
Results reported at Tue Apr 19 03:11:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_weekly_bin715 209.528 76.7064 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1358.1+7642 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2393.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             347.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2499 sec.
    Turnaround time :                            10410 sec.

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

