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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1772
RA = 209.928, Dec = 40.2153
tmin = 698630401, tmax = 698889601
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='635709', job_status='RUN', time_executed='2023-02-24 01:52:08.241378', time_epoch_executed='1677232328.24' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635709/ft1_4FGL_J1359.7+4012_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635709/ft1_4FGL_J1359.7+4012_daily_bin1772.fits outfile=/scratch/kocevski/635709/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1772.fits ra=209.928 dec=40.2153 rad=12.0 tmin=698630401.0 tmax=698889601.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.02
user 2.81
sys 0.19

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

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

Number of photons that the gtmktime cut: 487

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635709/ft1_filtered_4FGL_J1359.7+4012_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/635709/ltcube_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.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/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits
.....................!
real 12.67
user 12.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635709/ft1_filtered_4FGL_J1359.7+4012_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/635709/ltcube_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.fits outfile=/scratch/kocevski/635709/expmap_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.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/635709/ltcube_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.fits
.....................!
real 195.77
user 190.95
sys 4.46

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/635709/ft1_filtered_4FGL_J1359.7+4012_daily_bin1772.fits scfile=/scratch/kocevski/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits outfile=/scratch/kocevski/635709/cmap_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635709/ft1_filtered_4FGL_J1359.7+4012_daily_bin1772.fits scfile=/scratch/kocevski/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits outfile=/scratch/kocevski/635709/cmap_HighResolution_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635709/ft1_filtered_4FGL_J1359.7+4012_daily_bin1772.fits', '/scratch/kocevski/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits', expMap='/scratch/kocevski/635709/expmap_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.fits', expCube='/scratch/kocevski/635709/ltcube_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635709/Model_4FGL_J1359.7+4012_daily_bin1772.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/635709/ft1_filtered_4FGL_J1359.7+4012_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/635709/ft2_4FGL_J1359.7+4012_daily_bin1772.fits
Exposure map: /scratch/kocevski/635709/expmap_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.fits
Exposure cube: /scratch/kocevski/635709/ltcube_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635709/Model_4FGL_J1359.7+4012_daily_bin1772.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5423.75178544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.246       1.0000          .0000       .10000E+07
     2 'norm      '    .35832E-06   1.0000          .0000       .10000E+07
     3 'norm      '    2.7210       1.0000          .0000       .10000E+07
     4 'norm      '    2.2709       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.6700       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.8302       1.0000          .0000       .10000E+07
     7 'Prefactor '    .93366E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .80239E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.424       1.0000          .0000       .10000E+07
    10 'norm      '    1.2296       1.0000          .0000       .10000E+07
    11 'norm      '    .36910       1.0000          .0000       .10000E+07
    12 'Prefactor '    .27595E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .33640E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .61842E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .53450       1.0000          .0000       .10000E+07
    16 'Prefactor '    .67412E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .11280E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0003       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25389E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    14.763       1.0000          .0000       .10000E+07
    21 'norm      '    .32337E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .44575E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .48675E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    14.855       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.1903       1.0000          .0000       .10000E+07
    26 'Normalizat'    .90052       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0521       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=   5423.617     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1912 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.953        10.571       -.91762E-08    .11277    
   2  norm          .88818E-07    2.6032        .48189E-06** at limit **
   3  norm          2.9222        1.3208       -.82117E-07   -.18509E-02
   4  norm          2.2765        4.5187       -.21455E-06    .45867E-03
   5  Prefactor     7.0284        6.6050       -.57437E-06   -.63335E-03
   6  Prefactor     4.9541        13.221        .15028E-06   -.10797E-01
   7  Prefactor     .19895E-06    60.871       -.57863E-05** at limit **
   8  Prefactor     .96978E-07    1.8290       -.31355E-06** at limit **
   9  Prefactor     26.362        28.309        .75929E-06   -.41900E-01
  10  norm          1.2352        2.8460        .52615E-07    .39981E-03
  11  norm          .37143        1.0128       -.26948E-06    .52595E-03
  12  Prefactor     .72664E-07    4.3646        .21457E-07** at limit **
  13  norm          .21927E-07    2.8967        .22879E-06** at limit **
  14  Prefactor     .17431E-07    10.401       -.18354E-05** at limit **
  15  Prefactor     .50161        9.1208       -.72751E-06   -.24492E-03
  16  Prefactor     .90483E-08    7.7269        .60368E-07** at limit **
  17  norm           .0000        1.1893       -.31245E-06** at limit **
  18  Prefactor     5.9591        5.2865        .46018E-06    .64019E-01
  19  Prefactor     .17153E-07    9.0232        .71493E-06** at limit **
  20  Prefactor     14.779        5.2521        .81228E-09   -.13415E-02
  21  norm          .94369E-09    3.9346        .49863E-06** at limit **
  22  norm           .0000        2.6343        .29905E-06** at limit **
  23  norm           .0000        2.0161        .43188E-06** at limit **
  24  Prefactor     14.842        1.4042        .43480E-07    .51739E-03
  25  Prefactor     1.1980        16.081        .60062E-06   -.54653E-02
  26  Normalizat    .90036        .19649        .79554E-05   -.81069E-05
  27  Prefactor     1.0526        .23478       -.75771E-05   -.82988E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.953
  norm       = 8.88178e-08
  norm       = 2.92222
  norm       = 2.27645
  Prefactor  = 7.02837
  Prefactor  = 4.95407
  Prefactor  = 1.98952e-07
  Prefactor  = 9.6978e-08
  Prefactor  = 26.3622
  norm       = 1.23525
  norm       = 0.371425
  Prefactor  = 7.26641e-08
  norm       = 2.19269e-08
  Prefactor  = 1.74305e-08
  Prefactor  = 0.501615
  Prefactor  = 9.04832e-09
  norm       = 0
  Prefactor  = 5.95911
  Prefactor  = 1.71529e-08
  Prefactor  = 14.7789
  norm       = 9.4369e-10
  norm       = 0
  norm       = 0
  Prefactor  = 14.8421
  Prefactor  = 1.19804
  Normalizat = 0.900364
  Prefactor  = 1.05257
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.617     FROM HESSE     STATUS=OK           542 CALLS     2454 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.953        22.921        .24090E-03   -1.5626    
   2  norm          .88818E-07    5.2641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9222        21.557        .61712E-03   -1.5674    
   4  norm          2.2765        4.5433        .68123E-03   -1.5678    
   5  Prefactor     7.0284        8.4115        .38830E-03   -1.5655    
   6  Prefactor     4.9541        49.639        .41570E-03   -1.5663    
   7  Prefactor     .19895E-06    61.622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .96978E-07    90.532        .14494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.362        33.991        .19099E-03   -1.5605    
  10  norm          1.2352        2.9059        .10140E-02   -1.5686    
  11  norm          .37143        1.0408        .93157E-03   -1.5696    
  12  Prefactor     .72664E-07    4.7613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .21927E-07    5.3940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17431E-07    11.020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50161        8.9809        .75312E-03   -1.5694    
  16  Prefactor     .90483E-08    8.1005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.1879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9591        11.005        .40967E-03   -1.5659    
  19  Prefactor     .17153E-07    10.018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.779        5.2527        .26042E-03   -1.5631    
  21  norm          .94369E-09    3.9474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.6351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        2.0131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.842        12.489        .25961E-03   -1.5631    
  25  Prefactor     1.1980        16.601        .10437E-02   -1.5686    
  26  Normalizat    .90036        .16641        .44908E-01   -.96447    
  27  Prefactor     1.0526        .19780        .58479E-01   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80168e-06
Minuit parameter uncertainties:
  1  22.9215
  2  0.00136764
  3  15.8738
  4  4.54329
  5  8.41151
  6  31.3636
  7  0.00700275
  8  0.00592619
  9  33.9916
  10  2.90592
  11  1.04082
  12  0.00117633
  13  0.000687784
  14  0.000877161
  15  4.24498
  16  0.000541865
  17  1.8955e-06
  18  11.0055
  19  0.000829243
  20  5.25274
  21  0.000122764
  22  5.00674e-06
  23  9.55855e-06
  24  12.4886
  25  8.91942
  26  0.166507
  27  0.197936
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.193e-08  6.878e-04  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.053e+00  1.979e-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:  9.004e-01  1.665e-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: 4.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635709/likelihoodResults_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.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) = 5423.70730165
delta logL = -0.0899001531689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5423.61740772
delta logL = -6.22658899374e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49256E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    4.5589       1.0000          .0000       5.0000    
     3 'Normalizat'    .90008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0529       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5423.617     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      194 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.6460        .42118E-03** at limit **
   2  alpha         .65673        .90530       -.21915E-02     .0000    
   3  Normalizat    .90036        1.2356       -.12248E-04   -.79876E-04
   4  Prefactor     1.0526        1.1878        .15894E-04   -.56371E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 0.656732
  Normalizat = 0.900363
  Prefactor  = 1.05257
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5423.617     FROM HESSE     STATUS=FAILED         7 CALLS      201 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.6460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .66818E-01    .90530       -.21915E-02   -.82908    
   3  Normalizat    .90036        1.2356       -.12248E-04   -.96447    
   4  Prefactor     1.0526        1.1878        .15894E-04   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.31716e-11
Minuit parameter uncertainties:
  1  3.44704e-06
  2  0.95546
  3  1.27811
  4  1.21963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635709': 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): 101
logL (Free Index) = 5423.61740149
delta logL = 2.01907823794e-09

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  0.000e+00  3.447e-06  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  6.567e-01  9.555e-01  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.053e+00  1.220e+00  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:  9.004e-01  1.278e+00  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/635709/cmap_HighResolution_698630401_698889601_4FGL_J1359.7+4012_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-05', job_status='DONE', photon_flux_upper_limit='4.27e-08', time_completed='2023-02-24 02:01:59.363629', job_id='635709', GAL2='1.05', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1677232919.36', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.02e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1772' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 02:01:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 635709: <4FGL_J1359.7+4012_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 01:50:15 2023
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:50:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:50:17 2023
Terminated at Fri Feb 24 02:02:00 2023
Results reported at Fri Feb 24 02:02:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1772 209.928 40.2153 698630401 698889601 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 :                                   593.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

