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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1773
RA = 209.928, Dec = 40.2153
tmin = 698889601, tmax = 699148801
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='790705', job_status='RUN', time_executed='2023-02-27 09:48:35.173663', time_epoch_executed='1677520115.17' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790705/ft1_4FGL_J1359.7+4012_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790705/ft1_4FGL_J1359.7+4012_daily_bin1773.fits outfile=/scratch/kocevski/790705/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1773.fits ra=209.928 dec=40.2153 rad=12.0 tmin=698889601.0 tmax=699148801.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 2.97
user 2.74
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.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/790705/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.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.15

Number of photons that the gtmktime cut: 529

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/790705/ltcube_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.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/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits
.....................!
real 14.92
user 14.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/790705/ltcube_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.fits outfile=/scratch/kocevski/790705/expmap_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.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/790705/ltcube_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.fits
.....................!
real 191.78
user 186.37
sys 4.98

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/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits scfile=/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits outfile=/scratch/kocevski/790705/cmap_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits scfile=/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits outfile=/scratch/kocevski/790705/cmap_HighResolution_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790705/Model_4FGL_J1359.7+4012_daily_bin1773.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/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits.....................!
real 47.96
user 46.00
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits', '/scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits', expMap='/scratch/kocevski/790705/expmap_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.fits', expCube='/scratch/kocevski/790705/ltcube_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790705/Model_4FGL_J1359.7+4012_daily_bin1773.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/790705/ft1_filtered_4FGL_J1359.7+4012_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/790705/ft2_4FGL_J1359.7+4012_daily_bin1773.fits
Exposure map: /scratch/kocevski/790705/expmap_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.fits
Exposure cube: /scratch/kocevski/790705/ltcube_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790705/Model_4FGL_J1359.7+4012_daily_bin1773.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) = 5891.05873574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20508E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.4980       1.0000          .0000       .10000E+07
     3 'norm      '    .33710E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .37077E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .55574E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    24.549       1.0000          .0000       .10000E+07
     7 'Prefactor '    .46806       1.0000          .0000       .10000E+07
     8 'Prefactor '    .43898       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29917E-02   1.0000          .0000       .10000E+07
    10 'norm      '    4.8377       1.0000          .0000       .10000E+07
    11 'norm      '    2.7045       1.0000          .0000       .10000E+07
    12 'Prefactor '    .53818E-03   1.0000          .0000       .10000E+07
    13 'norm      '    16.247       1.0000          .0000       .10000E+07
    14 'Prefactor '    .81397E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7548       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14657E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .39397E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.9774       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.0203       1.0000          .0000       .10000E+07
    20 'Prefactor '    18.275       1.0000          .0000       .10000E+07
    21 'norm      '    .11000E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .59983E-04   1.0000          .0000       .10000E+07
    23 'norm      '    3.5479       1.0000          .0000       .10000E+07
    24 'Prefactor '    .11901E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .45930E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1375       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=   5891.056     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     3375 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12680E-05    7.0127       -.25221E-05** at limit **
   2  norm          2.4882        7.7768        .14007E-05    .26962E-02
   3  norm          .11657E-08    7.6243       -.10388E-05** at limit **
   4  norm          .55511E-10    2.6316        .19039E-06** at limit **
   5  Prefactor     .91593E-08    3.4620        .14767E-05** at limit **
   6  Prefactor     24.587        2.3099       -.19911E-06   -.23858E-01
   7  Prefactor     .64254E-06    44.568       -.81922E-05** at limit **
   8  Prefactor     .19869E-05    7.1472       -.23817E-06** at limit **
   9  Prefactor     .10586E-06    11.755       -.42995E-06** at limit **
  10  norm          4.8607        5.1794        .82458E-06    .13254E-02
  11  norm          2.7053        1.5130       -.45465E-06    .25758E-02
  12  Prefactor     .14599E-07    4.7002        .19676E-05** at limit **
  13  norm          16.262        1.5837        .14303E-07    .19710E-01
  14  Prefactor     .42621E-06    12.882        .17628E-05** at limit **
  15  Prefactor     1.7563        3.0084       -.54713E-06   -.60597E-04
  16  Prefactor     .36981E-05    7.0945       -.14309E-05** at limit **
  17  norm          .11102E-09    5.9157        .25871E-06** at limit **
  18  Prefactor     8.1518        14.404        .43356E-05    .20304E-01
  19  Prefactor     6.7541        16.641       -.44310E-05    .98944E-01
  20  Prefactor     18.390        6.2371       -.12597E-06   -.16927E-03
  21  norm          .39571E-05    13.853       -.21921E-05** at limit **
  22  norm           .0000        2.8481        .94158E-07** at limit **
  23  norm          3.5533        4.7986       -.89045E-07   -.62005E-03
  24  Prefactor     .11871E-05    9.2160        .23043E-05** at limit **
  25  Prefactor     .61136E-05    10.946       -.58261E-05** at limit **
  26  Normalizat    1.0680        .21304        .43761E-05   -.90637E-04
  27  Prefactor     1.1373        .25382       -.41422E-04   -.67297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26799e-06
  norm       = 2.48824
  norm       = 1.16573e-09
  norm       = 5.55112e-11
  Prefactor  = 9.15934e-09
  Prefactor  = 24.5869
  Prefactor  = 6.42542e-07
  Prefactor  = 1.98691e-06
  Prefactor  = 1.0586e-07
  norm       = 4.86065
  norm       = 2.70529
  Prefactor  = 1.45994e-08
  norm       = 16.2621
  Prefactor  = 4.26215e-07
  Prefactor  = 1.7563
  Prefactor  = 3.6981e-06
  norm       = 1.11022e-10
  Prefactor  = 8.15184
  Prefactor  = 6.75406
  Prefactor  = 18.3905
  norm       = 3.95711e-06
  norm       = 0
  norm       = 3.5533
  Prefactor  = 1.18705e-06
  Prefactor  = 6.11355e-06
  Normalizat = 1.06802
  Prefactor  = 1.1373
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.056     FROM HESSE     STATUS=OK           536 CALLS     3911 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12680E-05    20.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4882        7.8344        .64637E-03   -1.5676    
   3  norm          .11657E-08    8.3499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    2.6329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .91593E-08    8.0545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.587        22.026        .20187E-03   -1.5609    
   7  Prefactor     .64254E-06    157.56        .81990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .19869E-05    136.78        .85103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10586E-06    12.002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8607        5.1872        .45713E-03   -1.5664    
  11  norm          2.7053        1.5177        .61914E-03   -1.5675    
  12  Prefactor     .14599E-07    8.2700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.262        15.062        .24821E-03   -1.5627    
  14  Prefactor     .42621E-06    31.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7563        3.0427        .79096E-03   -1.5681    
  16  Prefactor     .36981E-05    21.851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    5.8594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1518        25.776        .35476E-03   -1.5651    
  19  Prefactor     6.7541        39.806        .37839E-03   -1.5656    
  20  Prefactor     18.390        6.2422        .23401E-03   -1.5622    
  21  norm          .39571E-05    36.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.8438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5533        4.8043        .53637E-03   -1.5670    
  24  Prefactor     .11871E-05    29.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .61136E-05    18.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0680        .18690        .39492E-01   -.90785    
  27  Prefactor     1.1373        .21600        .64555E-01   -.88283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9678e-06
Minuit parameter uncertainties:
  1  0.0102974
  2  7.83446
  3  0.000199593
  4  2.14722e-05
  5  0.000542934
  6  22.0262
  7  0.0201243
  8  0.0329712
  9  0.00225454
  10  5.18722
  11  1.51766
  12  0.000695394
  13  15.0621
  14  0.00731946
  15  3.04275
  16  0.0179785
  17  5.18911e-05
  18  25.7766
  19  32.7939
  20  6.24217
  21  0.0239231
  22  9.51918e-06
  23  4.80432
  24  0.0118983
  25  0.0215399
  26  0.187014
  27  0.216166
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.626e+01  1.506e+01  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.137e+00  2.162e-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:  1.068e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.01e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 8.98e-06 +/- 8.31e-06

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

Saving results to:
/scratch/kocevski/790705/likelihoodResults_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.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) = 5890.70467711
delta logL = 0.351388900652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5890.70308605
delta logL = 0.352979957882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.728       1.0000          .0000       .10000E+07
     2 'alpha     '    3.4030       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1736       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=   5890.703     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      265 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.742        246.18        .28052E-03    .67206E-03
   2  alpha         3.4046        2.5298        .45199        .40304E-04
   3  Normalizat    1.0234        .82749E-01    .42876E-01    .46267E-05
   4  Prefactor     1.1736        .88828E-01    .63685E-01    .31916E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7416
  alpha      = 3.40462
  Normalizat = 1.02344
  Prefactor  = 1.17358
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.703     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.742        16.217        .11221E-04   -1.5637    
   2  alpha         3.4046        1.3457        .23830E-01    .37025    
   3  Normalizat    1.0234        .21817        .24867E-03   -.92249    
   4  Prefactor     1.1736        .25762        .28169E-03   -.87148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69116e-11
Minuit parameter uncertainties:
  1  16.2174
  2  1.43458
  3  0.218364
  4  0.257897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790705': 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) = 5890.70308052
delta logL = 0.35298548525

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.274e+01  1.622e+01  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  3.405e+00  1.435e+00  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.174e+00  2.579e-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:  1.023e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 209.928 40.215
Photon Index (Free Index): 3.40 +/- 1.43
Photon Flux (Free Index): 6.03e-08 +/- 5.13e-08
Energy Flux (Free Index): 1.10e-05 +/- 8.19e-06

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/790705/cmap_HighResolution_698889601_699148801_4FGL_J1359.7+4012_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', comment='SUCCESS', photon_flux='3.01e-08', energy_flux2='1.10e-05', photon_flux_error='2.79e-08', dlogl='3.53e-01', energy_flux='8.98e-06', photon_flux2='6.03e-08', job_status='DONE', time_completed='2023-02-27 10:00:58.044033', photon_index_error2='1.43', photon_index2='3.40', ts='2.00', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='9.49e-08', energy_flux_error2='8.19e-06', EG='1.07', time_epoch_completed='1677520858.04', return_code='0', job_id='790705', GAL2='1.17', EG2='1.02', return_code2='0', energy_flux_error='8.31e-06', photon_flux_error2='5.13e-08', ts2='2.75', photon_index='2.33' WHERE bin_id='1773' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:00:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 790705: <4FGL_J1359.7+4012_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 09:45:30 2023
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:45:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:45:32 2023
Terminated at Mon Feb 27 10:00:59 2023
Results reported at Mon Feb 27 10:00:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1773 209.928 40.2153 698889601 699148801 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 :                                   744.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

