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


Performing analysis on: 4FGL_J1359.1+5544_weekly_bin730
RA = 209.785, Dec = 55.7479
tmin = 680486401, tmax = 681091201
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='659127', job_status='RUN', time_executed='2022-08-02 02:04:18.946775', time_epoch_executed='1659431058.95' WHERE source_name='4FGL J1359.1+5544' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659127

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659127/ft1_4FGL_J1359.1+5544_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659127/ft1_4FGL_J1359.1+5544_weekly_bin730.fits outfile=/scratch/kocevski/659127/ft1_filteredMKT_4FGL_J1359.1+5544_weekly_bin730.fits ra=209.785 dec=55.7479 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.29
user 6.00
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.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/659127/ft1_filteredMKT_4FGL_J1359.1+5544_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.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: 2363

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659127/ltcube_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.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/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits
.....................!
real 34.73
user 33.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659127/ltcube_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.fits outfile=/scratch/kocevski/659127/expmap_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.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/659127/ltcube_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.fits
.....................!
real 192.24
user 187.08
sys 4.39

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

Setting source of interest to:
4FGL J1359.1+5544 @ 209.785 55.7479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits scfile=/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits outfile=/scratch/kocevski/659127/cmap_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.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.785 yref=55.7479 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits scfile=/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits outfile=/scratch/kocevski/659127/cmap_HighResolution_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.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.785 yref=55.7479 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.44
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659127/Model_4FGL_J1359.1+5544_weekly_bin730.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/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits.....................!
real 173.88
user 171.84
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits', '/scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits', expMap='/scratch/kocevski/659127/expmap_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.fits', expCube='/scratch/kocevski/659127/ltcube_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659127/Model_4FGL_J1359.1+5544_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.1+5544'

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  2.033e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.361e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659127/ft1_filtered_4FGL_J1359.1+5544_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659127/ft2_4FGL_J1359.1+5544_weekly_bin730.fits
Exposure map: /scratch/kocevski/659127/expmap_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659127/ltcube_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659127/Model_4FGL_J1359.1+5544_weekly_bin730.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) = 25546.8796044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.8137       1.0000         .10000E-03   10000.    
     3 'norm      '    .41476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .84966       1.0000         .10000E-03   10000.    
     6 'norm      '    .62082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.005       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5659       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.176       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.938       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.740       1.0000         .10000E-03   10000.    
    17 'norm      '    .96934       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7929       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2487       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29055       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.178       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5650       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.1329       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.9630       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    5.9363       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .91359       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   25546.77     FROM MIGRAD    STATUS=FAILED      1886 CALLS     5509 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95454        .15160E-02** at limit **
   2  norm          4.8136        1.3223        .91394E-04    .50702E-03
   3  norm          .41472        .75365        .16092E-02    .19276E-01
   4  Prefactor     .45448        33.447        .64548E-02    .37296E-03
   5  Prefactor     .85008        4.7310        .40835E-02    .81433E-03
   6  norm          .62093        1.5227        .29619E-03   -.82139E-04
   7  Prefactor     13.881        14.881        .10751E-03    .10193E-03
   8  Prefactor     .10000E-03    4.8352        .18142E-02** at limit **
   9  Prefactor     11.003        13.380        .12077E-03    .13066E-03
  10  norm          1.5659        1.7215        .21110E-03    .11382E-02
  11  Prefactor     10.175        18.607        .12561E-03    .20672E-03
  12  Prefactor     .10000E-03    .95462        .29924E-03** at limit **
  13  Prefactor     10.930        18.361        .12114E-03    .11562E-03
  14  Prefactor     11.550        4.0299        .58939E-03    .70258E-03
  15  norm          .10000E-03    .44077        .13639E-02** at limit **
  16  norm          11.740        14.172        .11692E-03    .42785E-05
  17  norm          .96965        .98492        .15645E-03    .26073E-03
  18  Prefactor     .10000E-03    5.9255        .18142E-02** at limit **
  19  Prefactor     .10000E-03    77.100        .18142E-02** at limit **
  20  Prefactor     2.9035        13.756        .23844E-03    .33757E-04
  21  Prefactor     .10000E-03    5.1790        .18142E-02** at limit **
  22  Prefactor     1.7929        1.4185        .16467E-03   -.18337E-03
  23  Prefactor     .10000E-03    2.7478        .18142E-02** at limit **
  24  Prefactor     4.2496        1.4877        .98134E-04    .14745E-02
  25  Prefactor     .20998        6.9291        .94520E-01    .71740E-03
  26  Prefactor     21.190        14.476        .87036E-04    .34588E-03
  27  Prefactor     .10000E-03    15.774        .18142E-02** at limit **
  28  Prefactor     3.5811        10.853        .21405E-03    .29913E-03
  29  Prefactor     .10000E-03    3.6125        .18142E-02** at limit **
  30  Prefactor     3.1330        3.8199        .11452E-02    .38739E-03
  31  Prefactor     .10000E-03    3.7787        .18142E-02** at limit **
  32  norm          2.9630        .80345        .71904E-04   -.23906E-03
  33  Prefactor     .10000E-03    1.9040        .18142E-02** at limit **
  34  Prefactor     5.9367        3.6296        .82407E-03    .14019E-02
  35  Normalizat    .91366        .99524E-01    .23124E-03    .19600E-02
  36  Prefactor     1.1542        .11665        .25775E-03    .12283E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   25546.77     FROM SIMPLEX   STATUS=UNCHANGED   2050 CALLS     7559 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95454        .16589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8136        1.3223        .41000E-06   -1.5269    
   3  norm          .41472        .75365        .41832E-06   -1.5579    
   4  Prefactor     .45448        33.447        .42234E-06   -1.5573    
   5  Prefactor     .85008        4.7310        .41721E-06   -1.5524    
   6  norm          .62093        1.5227        .41768E-06   -1.5550    
   7  Prefactor     13.881        14.881        .40205E-06   -1.4963    
   8  Prefactor     .10000E-03    4.8352        .30682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.003        13.380        .40423E-06   -1.5044    
  10  norm          1.5659        1.7215        .41509E-06   -1.5458    
  11  Prefactor     10.175        18.607        .40495E-06   -1.5070    
  12  Prefactor     .10000E-03    .95462        .11476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.930        18.361        .40411E-06   -1.5047    
  14  Prefactor     11.550        4.0299        .40349E-06   -1.5028    
  15  norm          .10000E-03    .44077        .70765E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.740        14.172        .40264E-06   -1.5023    
  17  norm          .96965        .98492        .41655E-06   -1.5511    
  18  Prefactor     .10000E-03    5.9255        .32716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    77.100        .39404E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9035        13.756        .41278E-06   -1.5367    
  21  Prefactor     .10000E-03    5.1790        .10688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7929        1.4185        .41461E-06   -1.5440    
  23  Prefactor     .10000E-03    2.7478        .16361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2496        1.4877        .41067E-06   -1.5296    
  25  Prefactor     .20998        6.9291        .42013E-06   -1.5616    
  26  Prefactor     21.190        14.476        .39746E-06   -1.4787    
  27  Prefactor     .10000E-03    15.774        .30452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.5811        10.853        .41187E-06   -1.5329    
  29  Prefactor     .10000E-03    3.6125        .25247E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.1330        3.8199        .41210E-06   -1.5354    
  31  Prefactor     .10000E-03    3.7787        .57875E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.9630        .80345        .41252E-06   -1.5364    
  33  Prefactor     .10000E-03    1.9040        .12381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     5.9367        3.6296        .40869E-06   -1.5221    
  35  Normalizat    .91366        .99524E-01    .25779E-06   -.95982    
  36  Prefactor     1.1542        .11665        .23561E-06   -.87754    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25546.77     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     8357 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95481        .30320E-03** at limit **
   2  norm          4.8136        1.3179        .36558E-05    .57220E-04
   3  norm          .41473        .75280        .32184E-03    .42106E-04
   4  Prefactor     .45430        34.527        .25819E-03    .84542E-05
   5  Prefactor     .85002        4.6993        .16334E-03    .10579E-04
   6  norm          .62094        1.5222        .11848E-04    .15353E-05
   7  Prefactor     13.881        14.880        .43006E-05   -.42296E-06
   8  Prefactor     .10000E-03    4.8369        .36285E-03** at limit **
   9  Prefactor     11.003        13.377        .48308E-05   -.18827E-05
  10  norm          1.5659        1.7210        .84442E-05    .32312E-05
  11  Prefactor     10.175        18.610        .50244E-05   -.18101E-05
  12  Prefactor     .10000E-03    .95465        .59848E-04** at limit **
  13  Prefactor     10.930        18.360        .48456E-05   -.56309E-05
  14  Prefactor     11.550        4.0294        .23575E-04   -.38578E-06
  15  norm          .10000E-03    .44317        .27278E-03** at limit **
  16  norm          11.740        14.173        .46766E-05     .0000    
  17  norm          .96965        .98485        .62579E-05   -.36334E-04
  18  Prefactor     .10000E-03    5.9265        .36285E-03** at limit **
  19  Prefactor     .10000E-03    77.101        .36285E-03** at limit **
  20  Prefactor     2.9035        13.752        .95377E-05   -.38143E-05
  21  Prefactor     .10000E-03    5.1796        .36285E-03** at limit **
  22  Prefactor     1.7929        1.4185        .65868E-05   -.27616E-05
  23  Prefactor     .10000E-03    2.7485        .36285E-03** at limit **
  24  Prefactor     4.2496        1.4872        .39254E-05   -.31279E-03
  25  Prefactor     .21000        6.2148        .10121        .61060E-03
  26  Prefactor     21.190        14.468        .34814E-05   -.88822E-04
  27  Prefactor     .10000E-03    15.779        .36285E-03** at limit **
  28  Prefactor     3.5809        10.832        .85621E-05   -.35054E-04
  29  Prefactor     .10000E-03    3.6155        .36285E-03** at limit **
  30  Prefactor     3.1330        3.8195        .45809E-04   -.99271E-06
  31  Prefactor     .10000E-03    3.7804        .36285E-03** at limit **
  32  norm          2.9630        .80336        .28762E-05   -.44270E-04
  33  Prefactor     .10000E-03    1.9047        .36285E-03** at limit **
  34  Prefactor     5.9367        3.6273        .32963E-04   -.41388E-04
  35  Normalizat    .91366        .99510E-01    .46248E-04   -.94985E-04
  36  Prefactor     1.1542        .11673        .51550E-04   -.65985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.81357
  norm       = 0.414727
  Prefactor  = 0.454304
  Prefactor  = 0.850023
  norm       = 0.620939
  Prefactor  = 13.8808
  Prefactor  = 0.0001
  Prefactor  = 11.0025
  norm       = 1.56589
  Prefactor  = 10.1751
  Prefactor  = 0.0001
  Prefactor  = 10.9296
  Prefactor  = 11.5502
  norm       = 0.0001
  norm       = 11.7405
  norm       = 0.96965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90345
  Prefactor  = 0.0001
  Prefactor  = 1.79288
  Prefactor  = 0.0001
  Prefactor  = 4.24958
  Prefactor  = 0.209997
  Prefactor  = 21.1903
  Prefactor  = 0.0001
  Prefactor  = 3.58092
  Prefactor  = 0.0001
  Prefactor  = 3.13302
  Prefactor  = 0.0001
  norm       = 2.96299
  Prefactor  = 0.0001
  Prefactor  = 5.9367
  Normalizat = 0.913663
  Prefactor  = 1.15415
 **********
 **   18 **HESSE 
 **********

 FCN=   25546.77     FROM HESSE     STATUS=OK           787 CALLS     9144 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95482        .60641E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8136        1.3180        .73116E-06   -1.5269    
   3  norm          .41473        .75270        .12874E-04   -1.5579    
   4  Prefactor     .45430        34.538        .10328E-04   -1.5573    
   5  Prefactor     .85002        4.6975        .65336E-05   -1.5524    
   6  norm          .62094        1.5222        .23696E-05   -1.5550    
   7  Prefactor     13.881        14.896        .43006E-05   -1.4963    
   8  Prefactor     .10000E-03    4.8369        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.003        13.452        .96616E-06   -1.5044    
  10  norm          1.5659        1.7212        .16888E-05   -1.5458    
  11  Prefactor     10.175        18.675        .10049E-05   -1.5070    
  12  Prefactor     .10000E-03    .95464        .11970E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.930        18.550        .96911E-06   -1.5047    
  14  Prefactor     11.550        4.0295        .47151E-05   -1.5028    
  15  norm          .10000E-03    .44326        .54557E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.740        14.173        .46766E-05   -1.5023    
  17  norm          .96965        .98462        .12516E-05   -1.5511    
  18  Prefactor     .10000E-03    5.9266        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    77.100        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9035        13.785        .19075E-05   -1.5367    
  21  Prefactor     .10000E-03    5.1796        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7929        1.4185        .13174E-05   -1.5440    
  23  Prefactor     .10000E-03    2.7485        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2496        1.4866        .78507E-06   -1.5296    
  25  Prefactor     .21000        6.4309        .99022E-01   -1.5616    
  26  Prefactor     21.190        14.465        .69629E-06   -1.4787    
  27  Prefactor     .10000E-03    15.779        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.5809        10.824        .17124E-05   -1.5329    
  29  Prefactor     .10000E-03    3.6156        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.1330        3.8185        .18324E-05   -1.5354    
  31  Prefactor     .10000E-03    3.7805        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.9630        .80340        .57523E-06   -1.5364    
  33  Prefactor     .10000E-03    1.9047        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     5.9367        3.6279        .13185E-05   -1.5221    
  35  Normalizat    .91366        .99556E-01    .92495E-05   -.95982    
  36  Prefactor     1.1542        .11673        .10310E-04   -.87754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13346e-09
Minuit parameter uncertainties:
  1  2.10934e-07
  2  1.31797
  3  0.752722
  4  7.92614
  5  3.99675
  6  1.52229
  7  14.8997
  8  2.71613e-06
  9  13.4556
  10  1.72129
  11  18.6858
  12  1.06102e-07
  13  18.5596
  14  4.02955
  15  1.2992e-07
  16  14.1771
  17  0.984637
  18  3.48941e-07
  19  6.88355e-07
  20  12.6577
  21  6.06508e-07
  22  1.41855
  23  3.98089e-07
  24  1.48664
  25  2.32392
  26  14.4679
  27  1.53852e-06
  28  10.8301
  29  4.74171e-07
  30  3.81875
  31  5.2478e-07
  32  0.803402
  33  1.22113e-06
  34  3.62805
  35  0.0995756
  36  0.11676
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  9.697e-01  9.846e-01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.361e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.154e+00  1.168e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.137e-01  9.958e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 209.785 55.748
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 6.49e-09 +/- 6.59e-09
Energy Flux (Fixed Index): 2.19e-06 +/- 2.23e-06

TS (Fixed Index): 2.45
Ra Dec: 209.785 55.748
Photon Flux Upper Limit: 2.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659127/likelihoodResults_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.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) = 25546.4853619
delta logL = 0.283718768093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25546.4700746
delta logL = 0.299006092595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78872       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6107       1.0000          .0000       5.0000    
     3 'Normalizat'    .91835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25546.47     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      208 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78923        .81359         .0000       -.15866E-01
   2  alpha         1.6102        .64297         .0000       -.10042E-03
   3  Normalizat    .91822        .76627E-01     .0000        .54879E-04
   4  Prefactor     1.1515        .95165E-01     .0000        .36216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.789234
  alpha      = 1.61022
  Normalizat = 0.918222
  Prefactor  = 1.15149
 **********
 **   18 **HESSE 
 **********

 FCN=   25546.47     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78923        .95607        .71304E-03   -1.5530    
   2  alpha         1.6102        .87117        .43388E-01   -.36389    
   3  Normalizat    .91822        .92449E-01    .23073E-03   -.95823    
   4  Prefactor     1.1515        .11483        .25801E-03   -.87838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03801e-08
Minuit parameter uncertainties:
  1  0.956087
  2  0.892734
  3  0.0924649
  4  0.114859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659127': 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) = 25546.4700727
delta logL = 0.299007946003

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  7.892e-01  9.561e-01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.610e+00  8.927e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.151e+00  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.182e-01  9.246e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 209.785 55.748
Photon Index (Free Index): 1.61 +/- 0.89
Photon Flux (Free Index): 2.63e-09 +/- 4.03e-09
Energy Flux (Free Index): 2.91e-06 +/- 3.81e-06

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/659127/cmap_HighResolution_680486401_681091201_4FGL_J1359.1+5544_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-06', comment='SUCCESS', photon_flux='6.49e-09', energy_flux2='2.91e-06', photon_flux_error='6.59e-09', dlogl='2.99e-01', energy_flux='2.19e-06', photon_flux2='2.63e-09', job_status='DONE', time_completed='2022-08-02 03:31:52.626858', photon_index_error2='0.89', photon_index2='1.61', ts='2.45', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='2.45e-08', energy_flux_error2='3.81e-06', EG='0.91', time_epoch_completed='1659436312.63', return_code='0', job_id='659127', GAL2='1.15', EG2='0.92', return_code2='0', energy_flux_error='2.23e-06', photon_flux_error2='4.03e-09', ts2='3.05', photon_index='2.36' WHERE bin_id='730' AND source_name='4FGL J1359.1+5544' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:31:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 659092: <4FGL_J1359.1+5544_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1359.1+5544_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:27 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:02:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:02:11 2022
Terminated at Tue Aug  2 03:31:46 2022
Results reported at Tue Aug  2 03:31:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_weekly_bin730 209.785 55.7479 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.1+5544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5209.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             339.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5375 sec.
    Turnaround time :                            12319 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 659127: <4FGL_J1359.1+5544_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1359.1+5544_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:28 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:02:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:02:35 2022
Terminated at Tue Aug  2 03:31:53 2022
Results reported at Tue Aug  2 03:31:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_weekly_bin730 209.785 55.7479 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.1+5544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5241.38 sec.
    Max Memory :                                 638 MB
    Average Memory :                             354.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2935 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   5359 sec.
    Turnaround time :                            12325 sec.

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

