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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1760
RA = 209.928, Dec = 40.2153
tmin = 695520001, tmax = 695779201
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='738873', job_status='RUN', time_executed='2023-01-19 01:04:58.476764', time_epoch_executed='1674119098.48' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738873

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738873/ft1_4FGL_J1359.7+4012_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738873/ft2_4FGL_J1359.7+4012_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738873/ft1_4FGL_J1359.7+4012_daily_bin1760.fits outfile=/scratch/kocevski/738873/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1760.fits ra=209.928 dec=40.2153 rad=12.0 tmin=695520001.0 tmax=695779201.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.42
user 2.20
sys 0.19

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

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

Number of photons that the gtmktime cut: 622

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738873/ft1_filtered_4FGL_J1359.7+4012_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/738873/ft2_4FGL_J1359.7+4012_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/738873/ltcube_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.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/738873/ft2_4FGL_J1359.7+4012_daily_bin1760.fits
.....................!
real 16.50
user 16.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738873/ft1_filtered_4FGL_J1359.7+4012_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/738873/ft2_4FGL_J1359.7+4012_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/738873/ltcube_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.fits outfile=/scratch/kocevski/738873/expmap_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.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/738873/ltcube_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.fits
.....................!
real 191.79
user 186.17
sys 5.15

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/738873/ft1_filtered_4FGL_J1359.7+4012_daily_bin1760.fits scfile=/scratch/kocevski/738873/ft2_4FGL_J1359.7+4012_daily_bin1760.fits outfile=/scratch/kocevski/738873/cmap_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.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.58
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738873/ft1_filtered_4FGL_J1359.7+4012_daily_bin1760.fits scfile=/scratch/kocevski/738873/ft2_4FGL_J1359.7+4012_daily_bin1760.fits outfile=/scratch/kocevski/738873/cmap_HighResolution_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738873/ft1_filtered_4FGL_J1359.7+4012_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/738873/ft2_4FGL_J1359.7+4012_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738873/Model_4FGL_J1359.7+4012_daily_bin1760.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/738873/ft1_filtered_4FGL_J1359.7+4012_daily_bin1760.fits.....................!
real 53.66
user 52.28
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.566       1.0000          .0000       .10000E+07
     2 'norm      '    .23304E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .84644       1.0000          .0000       .10000E+07
     4 'norm      '    .88382E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.9368       1.0000          .0000       .10000E+07
     6 'Prefactor '    .27671E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14549E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    15.522       1.0000          .0000       .10000E+07
     9 'Prefactor '    22.392       1.0000          .0000       .10000E+07
    10 'norm      '    .19958E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .31559       1.0000          .0000       .10000E+07
    12 'Prefactor '    .95418       1.0000          .0000       .10000E+07
    13 'norm      '    .16691E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .72325E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .76444E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.1363       1.0000          .0000       .10000E+07
    17 'norm      '    .14040E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .24080E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .27023E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    13.760       1.0000          .0000       .10000E+07
    21 'norm      '    .36815E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .12550E-03   1.0000          .0000       .10000E+07
    23 'norm      '    3.8156       1.0000          .0000       .10000E+07
    24 'Prefactor '    7.1170       1.0000          .0000       .10000E+07
    25 'Prefactor '    .83413       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1676       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89772       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=   6855.483     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1929 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.636        6.5729       -.15262E-07    .11425E-01
   2  norm          .11102E-09    1.6946        .54673E-07** at limit **
   3  norm          1.4270        2.8927        .16711E-07    .10116E-01
   4  norm          .22760E-08    14.000        .25445E-06** at limit **
   5  Prefactor     8.9347        4.4678       -.45067E-07   -.27616E-02
   6  Prefactor     .15650E-05    18.785        .45723E-07** at limit **
   7  Prefactor     .24706E-05    65.682       -.98154E-06** at limit **
   8  Prefactor     15.527        1.0473        .26412E-08   -.42229E-02
   9  Prefactor     23.137        12.456        .14610E-06    .67348E-01
  10  norm          .24314E-07    2.9543       -.16880E-08** at limit **
  11  norm          .31463        .89630       -.82836E-09    .49543E-03
  12  Prefactor     .94433        2.1008        .10785E-07    .49294E-03
  13  norm          .37803E-07    2.9859       -.43666E-07** at limit **
  14  Prefactor     .19829E-05    18.161        .20091E-07** at limit **
  15  Prefactor      .0000        1.2809       -.20155E-07** at limit **
  16  Prefactor     5.2358        4.0313        .13451E-07   -.22438E-01
  17  norm          .57732E-07    2.6112       -.41541E-07** at limit **
  18  Prefactor     .55511E-10    3.0555        .39153E-07** at limit **
  19  Prefactor     .35083E-07    3.2214        .12373E-07** at limit **
  20  Prefactor     13.769        4.5135        .24236E-09    .35990E-03
  21  norm          .16653E-09    5.2208       -.76034E-07** at limit **
  22  norm          .12768E-08    2.9305        .18808E-07** at limit **
  23  norm          3.8324        4.6537       -.31501E-08   -.25917E-03
  24  Prefactor     7.0226        11.880        .36410E-07    .14893E-01
  25  Prefactor     .90948        1.7147       -.54315E-08   -.79439E-02
  26  Normalizat    1.1669        .18970        .13181E-05    .17848E-03
  27  Prefactor     .89727        .22459       -.63466E-06    .10635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6359
  norm       = 1.11022e-10
  norm       = 1.42699
  norm       = 2.27596e-09
  Prefactor  = 8.93471
  Prefactor  = 1.56503e-06
  Prefactor  = 2.47063e-06
  Prefactor  = 15.5269
  Prefactor  = 23.1374
  norm       = 2.43139e-08
  norm       = 0.314627
  Prefactor  = 0.944325
  norm       = 3.78031e-08
  Prefactor  = 1.98291e-06
  Prefactor  = 0
  Prefactor  = 5.23582
  norm       = 5.77316e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 3.5083e-08
  Prefactor  = 13.7689
  norm       = 1.66533e-10
  norm       = 1.27676e-09
  norm       = 3.83243
  Prefactor  = 7.02258
  Prefactor  = 0.909478
  Normalizat = 1.16686
  Prefactor  = 0.897273
 **********
 **   18 **HESSE 
 **********

 FCN=   6855.483     FROM HESSE     STATUS=OK           548 CALLS     2477 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.636        15.674        .22058E-03   -1.5617    
   2  norm          .11102E-09    1.6973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4270        43.787        .49536E-03   -1.5684    
   4  norm          .22760E-08    2.1126        .62233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9347        4.5795        .33504E-03   -1.5648    
   6  Prefactor     .15650E-05    38.517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24706E-05    73.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.527        34.011        .25395E-03   -1.5629    
   9  Prefactor     23.137        36.477        .21138E-03   -1.5612    
  10  norm          .24314E-07    3.3822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .31463        .86530        .29633E-02   -1.5697    
  12  Prefactor     .94433        2.1117        .42136E-03   -1.5689    
  13  norm          .37803E-07    4.0192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19829E-05    37.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.2766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2358        19.075        .44337E-03   -1.5662    
  17  norm          .57732E-07    3.7293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    3.0509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .35083E-07    4.2640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.769        4.5345        .26976E-03   -1.5634    
  21  norm          .16653E-09    5.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .12768E-08    2.9485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8324        4.6699        .51647E-03   -1.5669    
  24  Prefactor     7.0226        14.372        .37578E-03   -1.5655    
  25  Prefactor     .90948        9.1169        .50425E-03   -1.5689    
  26  Normalizat    1.1669        .16741        .35740E-01   -.87633    
  27  Prefactor     .89727        .19183        .66508E-01   -.96236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81858e-07
Minuit parameter uncertainties:
  1  15.6742
  2  2.68267e-05
  3  15.8094
  4  0.000139284
  5  4.57947
  6  0.0155283
  7  0.0268925
  8  34.011
  9  36.4771
  10  0.000573357
  11  0.865296
  12  2.11171
  13  0.000779434
  14  0.0172427
  15  8.8838e-06
  16  19.0747
  17  0.000927874
  18  3.00944e-05
  19  0.000773759
  20  4.53449
  21  5.78872e-05
  22  0.000122983
  23  4.66986
  24  14.3724
  25  5.75905
  26  0.167489
  27  0.191971
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.780e-08  7.794e-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:  8.973e-01  1.920e-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.167e+00  1.675e-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: 3.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738873/likelihoodResults_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.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) = 6855.60279449
delta logL = -0.119580513361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6855.48321402
delta logL = -4.05061655329e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17208E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7561       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89723       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=   6855.483     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .41978        .42118E-03** at limit **
   2  alpha         .75756E-01    .32190        .30508E-05     .0000    
   3  Normalizat    1.1669        1.1189       -.17272E-05   -.14096E-04
   4  Prefactor     .89727        1.2423        .70575E-05   -.38467E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 0.0757557
  Normalizat = 1.16686
  Prefactor  = 0.897274
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6855.483     FROM HESSE     STATUS=FAILED         7 CALLS      215 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .41978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .86090E-01    .31156        .30508E-05   -1.3240    
   3  Normalizat    1.1669        1.1189       -.17272E-05   -.87633    
   4  Prefactor     .89727        1.2423        .70575E-05   -.96236    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.4378e-13
Minuit parameter uncertainties:
  1  2.45381e-07
  2  0.318338
  3  1.1431
  4  1.28519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738873': 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) = 6855.48321398
delta logL = 4.71300154459e-09

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  0.000e+00  2.454e-07  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  7.576e-02  3.183e-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:  8.973e-01  1.285e+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:  1.167e+00  1.143e+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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/738873/cmap_HighResolution_695520001_695779201_4FGL_J1359.7+4012_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-05', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2023-01-19 01:16:15.318295', job_id='738873', GAL2='0.90', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1674119775.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.71e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1760' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:16:15 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 738873: <4FGL_J1359.7+4012_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 01:00:19 2023
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:01:05 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:01:05 2023
Terminated at Thu Jan 19 01:16:16 2023
Results reported at Thu Jan 19 01:16:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1760 209.928 40.2153 695520001 695779201 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 :                                   679.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            957 sec.

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

