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 106 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7341
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1752
RA = 209.928, Dec = 40.2153
tmin = 693446401, tmax = 693705601
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='264974', job_status='RUN', time_executed='2022-12-26 01:02:45.577454', time_epoch_executed='1672045365.58' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264974

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264974/ft1_4FGL_J1359.7+4012_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264974/ft1_4FGL_J1359.7+4012_daily_bin1752.fits outfile=/scratch/kocevski/264974/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1752.fits ra=209.928 dec=40.2153 rad=12.0 tmin=693446401.0 tmax=693705601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.47
user 3.27
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.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/264974/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 486

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/264974/ltcube_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.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/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits
.....................!
real 14.68
user 14.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/264974/ltcube_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.fits outfile=/scratch/kocevski/264974/expmap_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.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/264974/ltcube_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.fits
.....................!
real 193.41
user 188.32
sys 4.63

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

Setting source of interest to:
4FGL J1359.7+4012 @ 209.928 40.2153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits scfile=/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits outfile=/scratch/kocevski/264974/cmap_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.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.928 yref=40.2153 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits scfile=/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits outfile=/scratch/kocevski/264974/cmap_HighResolution_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.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.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264974/Model_4FGL_J1359.7+4012_daily_bin1752.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/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits.....................!
real 44.32
user 43.02
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits', '/scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits', expMap='/scratch/kocevski/264974/expmap_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.fits', expCube='/scratch/kocevski/264974/ltcube_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264974/Model_4FGL_J1359.7+4012_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.7+4012'

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/264974/ft1_filtered_4FGL_J1359.7+4012_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/264974/ft2_4FGL_J1359.7+4012_daily_bin1752.fits
Exposure map: /scratch/kocevski/264974/expmap_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.fits
Exposure cube: /scratch/kocevski/264974/ltcube_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264974/Model_4FGL_J1359.7+4012_daily_bin1752.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) = 5220.12251901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88194E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .62950       1.0000          .0000       .10000E+07
     3 'norm      '    1.7416       1.0000          .0000       .10000E+07
     4 'norm      '    .75580       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.139       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17176E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .89330E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    67.278       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1045       1.0000          .0000       .10000E+07
    10 'norm      '    1.4645       1.0000          .0000       .10000E+07
    11 'norm      '    .73909       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.7881       1.0000          .0000       .10000E+07
    13 'norm      '    .34862E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    78.091       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.2671       1.0000          .0000       .10000E+07
    17 'norm      '    .48838       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41655E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    51.108       1.0000          .0000       .10000E+07
    20 'Prefactor '    49.525       1.0000          .0000       .10000E+07
    21 'norm      '    3.3150       1.0000          .0000       .10000E+07
    22 'norm      '    .37989E-03   1.0000          .0000       .10000E+07
    23 'norm      '    3.2988       1.0000          .0000       .10000E+07
    24 'Prefactor '    .41858E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .17235E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    .48728       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5220.121     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2455 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24761        245.68       -.14080E-05** at limit **
   2  norm          .61887        7.7250       -.13643E-05   -.32104E-01
   3  norm          1.8054        6.5506       -.16678E-05    .98699E-02
   4  norm          .73586        4.8168       -.27058E-06   -.15400E-01
   5  Prefactor     10.216        4.6832        .37810E-06    .13558E-01
   6  Prefactor     .54595E-06    6.9409       -.61561E-06** at limit **
   7  Prefactor     .44409E-09    15.930       -.13233E-05** at limit **
   8  Prefactor     67.381        13.481        .50734E-08   -.26430    
   9  Prefactor     1.1371        1.9401        .14329E-06   -.23230E-02
  10  norm          1.4653        2.1825       -.98029E-07    .58926E-03
  11  norm          .73935        .72582        .10957E-07    .18869E-02
  12  Prefactor     3.7965        4.0570       -.22330E-06   -.23058E-04
  13  norm          .11036E-05    4.5015       -.11626E-06** at limit **
  14  Prefactor     78.037        3.5333        .25137E-08   -.85377E-01
  15  Prefactor      .0000        2.5405        .52198E-06** at limit **
  16  Prefactor     6.2625        1.3051        .37593E-07    .18152E-02
  17  norm          .48484        4.1383       -.10529E-06   -.16905E-02
  18  Prefactor      .0000        20.963       -.20742E-05** at limit **
  19  Prefactor     51.351        13.474       -.54612E-07    .12085    
  20  Prefactor     49.502        1.9202       -.75478E-08    .61146E-01
  21  norm          3.3077        2.5802        .87285E-07   -.35713E-02
  22  norm          .32696E-07    3.0871       -.54610E-06** at limit **
  23  norm          3.4014        7.8252       -.92876E-06   -.24237E-02
  24  Prefactor     .12690E-06    7.5840       -.46518E-06** at limit **
  25  Prefactor     .24425E-07    2.9408       -.81050E-06** at limit **
  26  Normalizat    .48602        .21592       -.18535E-04   -.40154E-04
  27  Prefactor     1.2637        .26089        .17784E-04   -.38907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.247611
  norm       = 0.618873
  norm       = 1.80541
  norm       = 0.735863
  Prefactor  = 10.2164
  Prefactor  = 5.45952e-07
  Prefactor  = 4.44089e-10
  Prefactor  = 67.3807
  Prefactor  = 1.13707
  norm       = 1.46528
  norm       = 0.739351
  Prefactor  = 3.79651
  norm       = 1.10356e-06
  Prefactor  = 78.0368
  Prefactor  = 0
  Prefactor  = 6.26248
  norm       = 0.484838
  Prefactor  = 0
  Prefactor  = 51.351
  Prefactor  = 49.5017
  norm       = 3.30765
  norm       = 3.26961e-08
  norm       = 3.40143
  Prefactor  = 1.26898e-07
  Prefactor  = 2.44249e-08
  Normalizat = 0.48602
  Prefactor  = 1.26368
 **********
 **   18 **HESSE 
 **********

 FCN=   5220.121     FROM HESSE     STATUS=OK           556 CALLS     3011 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24761        21.594        .94112E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .61887        12.450        .66626E-03   -1.5692    
   3  norm          1.8054        15.278        .79463E-03   -1.5681    
   4  norm          .73586        5.0644        .56289E-03   -1.5691    
   5  Prefactor     10.216        5.1009        .31444E-03   -1.5644    
   6  Prefactor     .54595E-06    10.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .44409E-09    16.021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     67.381        63.736        .12192E-03   -1.5544    
   9  Prefactor     1.1371        63.465        .11275E-02   -1.5687    
  10  norm          1.4653        2.2120        .88835E-03   -1.5684    
  11  norm          .73935        .71800        .57590E-03   -1.5691    
  12  Prefactor     3.7965        4.0715        .51841E-03   -1.5669    
  13  norm          .11036E-05    9.6433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     78.037        47.740        .11317E-03   -1.5531    
  15  Prefactor      .0000        2.5360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2625        13.901        .40074E-03   -1.5658    
  17  norm          .48484        4.3147        .79887E-03   -1.5694    
  18  Prefactor      .0000        20.718        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     51.351        24.052        .13989E-03   -1.5565    
  20  Prefactor     49.502        7.6978        .14211E-03   -1.5567    
  21  norm          3.3077        14.972        .55575E-03   -1.5672    
  22  norm          .32696E-07    5.9605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.4014        7.8456        .55718E-03   -1.5671    
  24  Prefactor     .12690E-06    8.1028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .24425E-07    5.8085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .48602        .18442        .66796E-01   -1.1307    
  27  Prefactor     1.2637        .21701        .54409E-01   -.84394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31383e-06
Minuit parameter uncertainties:
  1  4.62466
  2  5.55161
  3  10.504
  4  3.86095
  5  5.10093
  6  0.00482364
  7  0.000173346
  8  63.7364
  9  16.9901
  10  2.212
  11  0.717996
  12  4.07149
  13  0.00652443
  14  47.7402
  15  5.42092e-06
  16  13.9012
  17  2.89271
  18  1.37737e-06
  19  24.0519
  20  7.69783
  21  14.0745
  22  0.000883263
  23  7.84558
  24  0.00202805
  25  0.000753575
  26  0.184648
  27  0.217166
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.104e-06  6.524e-03  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.264e+00  2.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  4.860e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264974/likelihoodResults_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.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): 102
logL (Free Index) = 5220.17188767
delta logL = -0.0504794121662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5219.87831733
delta logL = 0.243090929695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2326       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .43241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5219.878     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2337        123.64        .10119E-02    .51468E-02
   2  alpha         5.0000        4.4540        .46356    ** at limit **
   3  Normalizat    .43236        .20690        .70659E-01    .19899E-04
   4  Prefactor     1.3073        .15518        .53629E-01    .45993E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23373
  alpha      = 5
  Normalizat = 0.432363
  Prefactor  = 1.30728
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.878     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2337        2.0062        .10971E-04   -1.5686    
   2  alpha         5.0000        4.0565        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .43236        .21469        .31283E-03   -1.1566    
   4  Prefactor     1.3073        .26285        .23710E-03   -.83091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93536e-11
Minuit parameter uncertainties:
  1  2.00616
  2  4.95675e-06
  3  0.2151
  4  0.263117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264974': 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) = 5219.87831677
delta logL = 0.243091487974

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.234e+00  2.006e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  5.000e+00  4.957e-06  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.307e+00  2.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  4.324e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.928 40.215

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/264974/cmap_HighResolution_693446401_693705601_4FGL_J1359.7+4012_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-05', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2022-12-26 01:13:36.269388', job_id='264974', GAL2='1.31', fit_tolerance='1e-08', EG2='0.43', EG='0.49', time_epoch_completed='1672046016.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.43e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1752' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:13:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 264974: <4FGL_J1359.7+4012_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1752> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Dec 26 01:00:24 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:00:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:00:50 2022
Terminated at Mon Dec 26 01:13:37 2022
Results reported at Mon Dec 26 01:13:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1752 209.928 40.2153 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.7+4012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   653.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            793 sec.

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

