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


Performing analysis on: 4FGL_J1358.1+7642_monthly_bin168
RA = 209.528, Dec = 76.7064
tmin = 672451201, tmax = 675043201
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='635379', job_status='RUN', time_executed='2022-05-24 03:14:03.583777', time_epoch_executed='1653387243.58' WHERE source_name='4FGL J1358.1+7642' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635379

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635379/ft1_4FGL_J1358.1+7642_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635379/ft1_4FGL_J1358.1+7642_monthly_bin168.fits outfile=/scratch/kocevski/635379/ft1_filteredMKT_4FGL_J1358.1+7642_monthly_bin168.fits ra=209.528 dec=76.7064 rad=12.0 tmin=672451201.0 tmax=675043201.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 23.51
user 22.77
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.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/635379/ft1_filteredMKT_4FGL_J1358.1+7642_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.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.72
user 0.55
sys 0.15

Number of photons that the gtmktime cut: 11210

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/635379/ltcube_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.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/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits
.....................!
real 102.87
user 101.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/635379/ltcube_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.fits outfile=/scratch/kocevski/635379/expmap_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.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/635379/ltcube_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.fits
.....................!
real 158.69
user 154.16
sys 4.17

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/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits scfile=/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits outfile=/scratch/kocevski/635379/cmap_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.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.67
user 0.51
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits scfile=/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits outfile=/scratch/kocevski/635379/cmap_HighResolution_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.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.67
user 0.52
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/635379/Model_4FGL_J1358.1+7642_monthly_bin168.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/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits.....................!
real 891.01
user 888.08
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits', '/scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits', expMap='/scratch/kocevski/635379/expmap_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.fits', expCube='/scratch/kocevski/635379/ltcube_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635379/Model_4FGL_J1358.1+7642_monthly_bin168.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/635379/ft1_filtered_4FGL_J1358.1+7642_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/635379/ft2_4FGL_J1358.1+7642_monthly_bin168.fits
Exposure map: /scratch/kocevski/635379/expmap_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.fits
Exposure cube: /scratch/kocevski/635379/ltcube_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635379/Model_4FGL_J1358.1+7642_monthly_bin168.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) = 120025.376822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9911       1.0000         .10000E-03   10000.    
     2 'norm      '    8.2074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0263       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.740       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.784       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5594       1.0000         .10000E-03   10000.    
     8 'norm      '    .65626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0133       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2241       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11754E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4652       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3562       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24307E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24466E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .93236       1.0000         .10000E-03   10000.    
    24 'norm      '    10.638       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.551       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .37751       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.749       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7100       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84131       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0982       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   120025.4     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     4112 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9920        1.8397         .0000        .85539E-01
   2  norm          8.2070        1.4333         .0000        .92304E-01
   3  Prefactor     1.9423        2.0360         .0000        .57920E-02
   4  Prefactor     2.0264        .71498         .0000       -.26318E-01
   5  Prefactor     10.741        2.5872         .0000        .41531E-02
   6  Prefactor     10.750        8.6969         .0000       -.38250E-02
   7  norm          1.5594        .73778         .0000        .68587E-02
   8  norm          .65624        .50902         .0000        .16646E-01
   9  Prefactor     .10000E-03    3.2016         .0000    ** at limit **
  10  Prefactor     .10000E-03    2.8388         .0000    ** at limit **
  11  Prefactor     2.4559        2.4231         .0000        .82819E-01
  12  Prefactor     7.0153        4.2768         .0000        .81408E-03
  13  Prefactor     .40866        .78018         .0000       -.37710E-03
  14  Prefactor     .22101        .69278         .0000        .50423E-02
  15  Prefactor     6.3341        2.1870         .0000        .29226E-02
  16  Prefactor     3.2225        1.8923         .0000        .13078    
  17  Prefactor     .43220        1.6463         .0000        .22641    
  18  Prefactor     .10000E-03    2.4734         .0000    ** at limit **
  19  Prefactor     1.4355        8.4269         .0000        .11550E-02
  20  Prefactor     2.3693        4.7525         .0000        .36189E-02
  21  Prefactor     .10005E-03    1.9329         .0000    ** at limit **
  22  Prefactor     .10000E-03    7.7363         .0000    ** at limit **
  23  Prefactor     .93422        2.6778         .0000        .18730    
  24  norm          10.638        3.9851         .0000        .61101E-03
  25  Prefactor     11.570        10.025         .0000        .15405E-02
  26  Prefactor     .37582        .48648         .0000        .23561E-01
  27  Prefactor     12.781        7.5175         .0000       -.11380E-02
  28  Prefactor     4.7160        6.5832         .0000       -.16085E-03
  29  Normalizat    .84130        .39805E-01     .0000       -.52872E-03
  30  Prefactor     1.0982        .31108E-01     .0000       -.21127E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99201
  norm       = 8.20703
  Prefactor  = 1.94228
  Prefactor  = 2.02638
  Prefactor  = 10.7413
  Prefactor  = 10.7504
  norm       = 1.55943
  norm       = 0.656238
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.45587
  Prefactor  = 7.01531
  Prefactor  = 0.408661
  Prefactor  = 0.221008
  Prefactor  = 6.33413
  Prefactor  = 3.22247
  Prefactor  = 0.4322
  Prefactor  = 0.0001
  Prefactor  = 1.4355
  Prefactor  = 2.3693
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  Prefactor  = 0.93422
  norm       = 10.6376
  Prefactor  = 11.57
  Prefactor  = 0.375819
  Prefactor  = 12.7809
  Prefactor  = 4.71604
  Normalizat = 0.8413
  Prefactor  = 1.09822
 **********
 **   18 **HESSE 
 **********

 FCN=   120025.4     FROM HESSE     STATUS=OK           616 CALLS     4728 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9920        1.8284        .14681E-02   -1.5426    
   2  norm          8.2070        1.3962        .69647E-03   -1.5135    
   3  Prefactor     1.9423        1.9659        .29797E-03   -1.5429    
   4  Prefactor     2.0264        .71707        .84784E-03   -1.5423    
   5  Prefactor     10.741        2.4806        .12226E-03   -1.5052    
   6  Prefactor     10.750        8.6945        .12200E-03   -1.5052    
   7  norm          1.5594        .73535        .19805E-03   -1.5458    
   8  norm          .65624        .45774        .19709E-02   -1.5546    
   9  Prefactor     .10000E-03    3.2179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4559        2.4153        .13048E-02   -1.5395    
  12  Prefactor     7.0153        4.2889        .15148E-03   -1.5178    
  13  Prefactor     .40866        .77384        .43567E-04   -1.5580    
  14  Prefactor     .22101        5.5015        .47508E-02   -1.5614    
  15  Prefactor     6.3341        2.1679        .15949E-03   -1.5205    
  16  Prefactor     3.2225        1.8883        .11280E-02   -1.5349    
  17  Prefactor     .43220        1.6269        .21983E-02   -1.5576    
  18  Prefactor     .10000E-03    2.5195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4355        8.4778        .35526E-03   -1.5468    
  20  Prefactor     2.3693        4.7494        .26701E-03   -1.5400    
  21  Prefactor     .10005E-03    1.9985        .14678       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.8222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .93422        2.6993        .25849E-02   -1.5515    
  24  norm          10.638        3.9602        .12284E-03   -1.5056    
  25  Prefactor     11.570        10.024        .11787E-03   -1.5028    
  26  Prefactor     .37582        .62228        .21883E-02   -1.5585    
  27  Prefactor     12.781        7.0900        .11219E-03   -1.4993    
  28  Prefactor     4.7160        6.5785        .18541E-03   -1.5274    
  29  Normalizat    .84130        .43930E-01    .26963E-03   -.98555    
  30  Prefactor     1.0982        .34709E-01    .19949E-03   -.89523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20006e-06
Minuit parameter uncertainties:
  1  1.82845
  2  1.39618
  3  1.96597
  4  0.717071
  5  2.48062
  6  8.69554
  7  0.735351
  8  0.457738
  9  0.000148224
  10  7.28508e-05
  11  2.41539
  12  4.28907
  13  0.773858
  14  2.20506
  15  2.16796
  16  1.88833
  17  1.6271
  18  5.04523e-05
  19  6.97831
  20  4.75015
  21  0.000631242
  22  5.4102e-05
  23  2.69963
  24  3.96028
  25  10.0258
  26  0.622287
  27  7.09044
  28  6.57947
  29  0.0439323
  30  0.0347093
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  4.322e-01  1.627e+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:  1.098e+00  3.471e-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:  8.413e-01  4.393e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 209.528 76.706
Photon Flux Upper Limit: 8.44e-09 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635379/likelihoodResults_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.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) = 120025.28724
delta logL = 0.088641457085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 120025.250265
delta logL = 0.125616438439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89030       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8090       1.0000          .0000       10.000    
     3 'Normalizat'    .84167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0979       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   120025.3     FROM MIGRAD    STATUS=FAILED        99 CALLS      272 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89005        1.8118        .50510E-02    .15756E-02
   2  Index         1.8091        .85669        .37379E-01   -.10660E-02
   3  Normalizat    .84167        .40371E-01    .26957E-03   -.48583E-04
   4  Prefactor     1.0979        .33860E-01    .19952E-03    .23795E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   120025.3     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      340 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89005        1.8118        .94014E-04   -1.5519    
   2  Index         1.8091        .85669        .10697E-02   -.69213    
   3  Normalizat    .84167        .40371E-01    .68797E-04   -.98541    
   4  Prefactor     1.0979        .33860E-01    .61163E-04   -.89535    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   120025.3     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      369 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89005        1.8117        .20204E-03    .48617E-04
   2  Index         1.8091        .86607        .74758E-02   -.41963E-04
   3  Normalizat    .84167        .40395E-01    .10783E-04   -.50607E-04
   4  Prefactor     1.0979        .33882E-01    .79808E-05    .23704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.89005
  Index      = 1.80911
  Normalizat = 0.84167
  Prefactor  = 1.09786
 **********
 **   18 **HESSE 
 **********

 FCN=   120025.3     FROM HESSE     STATUS=OK            25 CALLS      394 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89005        1.8176        .80815E-05   -1.5519    
   2  Index         1.8091        .86905        .14952E-02   -.69213    
   3  Normalizat    .84167        .40400E-01    .21566E-05   -.98541    
   4  Prefactor     1.0979        .33884E-01    .15962E-05   -.89535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06273e-11
Minuit parameter uncertainties:
  1  1.81772
  2  0.876605
  3  0.0404017
  4  0.0338844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635379': 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) = 120025.250265
delta logL = 0.125616454083

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  8.901e-01  1.818e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  1.809e+00  8.766e-01  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:  1.098e+00  3.388e-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:  8.417e-01  4.040e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/635379/cmap_HighResolution_672451201_675043201_4FGL_J1358.1+7642_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-04', job_status='DONE', photon_flux_upper_limit='8.44e-09', time_completed='2022-05-24 06:32:19.197928', job_id='635379', GAL2='1.10', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1653399139.2', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.26e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='168' AND source_name='4FGL J1358.1+7642' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:32:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 635379: <4FGL_J1358.1+7642_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1358.1+7642_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 03:10:28 2022
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:13:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:13:20 2022
Terminated at Tue May 24 06:32:20 2022
Results reported at Tue May 24 06:32:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_monthly_bin168 209.528 76.7064 672451201 675043201 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 :                                   11865.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             499.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11939 sec.
    Turnaround time :                            12112 sec.

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

