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 81 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.4+0202_daily_bin1752
RA = 209.859, Dec = 2.0424
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='264972', job_status='RUN', time_executed='2022-12-26 01:02:25.540175', time_epoch_executed='1672045345.54' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264972

Creating custom pfile directory:
/scratch/kocevski/264972/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/264972/ft1_4FGL_J1359.4+0202_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/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264972/ft1_4FGL_J1359.4+0202_daily_bin1752.fits outfile=/scratch/kocevski/264972/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin1752.fits ra=209.859 dec=2.0424 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 2.93
user 2.65
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264972/ft2_4FGL_J1359.4+0202_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/264972/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/264972/ft1_filtered_4FGL_J1359.4+0202_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.46
user 0.29
sys 0.15

Number of photons that the gtmktime cut: 548

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264972/ft1_filtered_4FGL_J1359.4+0202_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/264972/ltcube_693446401_693705601_4FGL_J1359.4+0202_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/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits
.....................!
real 14.00
user 13.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264972/ft1_filtered_4FGL_J1359.4+0202_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/264972/ltcube_693446401_693705601_4FGL_J1359.4+0202_daily_bin1752.fits outfile=/scratch/kocevski/264972/expmap_693446401_693705601_4FGL_J1359.4+0202_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/264972/ltcube_693446401_693705601_4FGL_J1359.4+0202_daily_bin1752.fits
.....................!
real 159.00
user 153.12
sys 4.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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1359.4+0202 @ 209.859 2.0424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/264972/ft1_filtered_4FGL_J1359.4+0202_daily_bin1752.fits scfile=/scratch/kocevski/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits outfile=/scratch/kocevski/264972/cmap_693446401_693705601_4FGL_J1359.4+0202_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.859 yref=2.0424 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.70
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264972/ft1_filtered_4FGL_J1359.4+0202_daily_bin1752.fits scfile=/scratch/kocevski/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits outfile=/scratch/kocevski/264972/cmap_HighResolution_693446401_693705601_4FGL_J1359.4+0202_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.859 yref=2.0424 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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264972/ft1_filtered_4FGL_J1359.4+0202_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264972/ft2_4FGL_J1359.4+0202_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264972/Model_4FGL_J1359.4+0202_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/264972/ft1_filtered_4FGL_J1359.4+0202_daily_bin1752.fits.....................!
real 40.89
user 38.41
sys 1.24

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

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

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.682e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26279E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.0450       1.0000          .0000       .10000E+07
     3 'norm      '    .40843E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18372       1.0000          .0000       .10000E+07
     5 'norm      '    .87330E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .62850E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33312E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.6220       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20378E-02   1.0000          .0000       .10000E+07
    10 'norm      '    26.404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11729E-05   1.0000          .0000       .10000E+07
    12 'norm      '    11.782       1.0000          .0000       .10000E+07
    13 'norm      '    5.7490       1.0000          .0000       .10000E+07
    14 'norm      '    .97764       1.0000          .0000       .10000E+07
    15 'Prefactor '    69.923       1.0000          .0000       .10000E+07
    16 'Prefactor '    .42668E-02   1.0000          .0000       .10000E+07
    17 'norm      '    28.560       1.0000          .0000       .10000E+07
    18 'Normalizat'    .94117       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5934.888     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1554 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.1967       -.31978E-07** at limit **
   2  Prefactor     6.0335        9.6192        .46371E-07   -.90143E-04
   3  norm           .0000        1.5349       -.35016E-07** at limit **
   4  Prefactor      .0000        36.981        .15331E-07** at limit **
   5  norm           .0000        11.693        .17297E-08** at limit **
   6  Prefactor      .0000        2.6535        .63024E-07** at limit **
   7  Prefactor      .0000        8.8952        .16994E-07** at limit **
   8  Prefactor     2.6226        2.5634        .13732E-07   -.16088E-03
   9  Prefactor      .0000        50.352       -.21436E-06** at limit **
  10  norm          26.445        5.1463       -.64274E-08    .16331E-03
  11  Prefactor      .0000        5.2456       -.24664E-07** at limit **
  12  norm          11.905        11.296        .76826E-07   -.23522E-03
  13  norm          5.7504        10.095        .32080E-07   -.11611E-03
  14  norm          1.8104        92.535        .76645E-06   -.13303E-03
  15  Prefactor     63.633        88.238       -.20950E-06    .31113E-04
  16  Prefactor     .55511E-10    66.382       -.42029E-06** at limit **
  17  norm          28.935        22.937        .14005E-07   -.83340E-05
  18  Normalizat    .94320        .24336        .18403E-06   -.11781E-05
  19  Prefactor     1.0437        .17604       -.43378E-06   -.19220E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 6.03348
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.62263
  Prefactor  = 0
  norm       = 26.4448
  Prefactor  = 0
  norm       = 11.9055
  norm       = 5.75037
  norm       = 1.81036
  Prefactor  = 63.6327
  Prefactor  = 5.55112e-11
  norm       = 28.9352
  Normalizat = 0.943196
  Prefactor  = 1.04367
 **********
 **   18 **HESSE 
 **********

 FCN=   5934.888     FROM HESSE     STATUS=OK           306 CALLS     1860 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.1890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0335        9.6395        .40813E-03   -1.5659    
   3  norm           .0000        1.4927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        36.755        .12073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        11.667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.6357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        8.8829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6226        2.5543        .62957E-03   -1.5676    
   9  Prefactor      .0000        49.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.445        5.1544        .19465E-03   -1.5605    
  11  Prefactor      .0000        5.2653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.905        11.293        .29160E-03   -1.5639    
  13  norm          5.7504        10.111        .41866E-03   -1.5660    
  14  norm          1.8104        93.749        .42972E-03   -1.5681    
  15  Prefactor     63.633        88.454        .11960E-03   -1.5548    
  16  Prefactor     .55511E-10    66.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          28.935        22.916        .18715E-03   -1.5600    
  18  Normalizat    .94320        .20504        .66746E-01   -.94958    
  19  Prefactor     1.0437        .14786        .40264E-01   -.91288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1761e-08
Minuit parameter uncertainties:
  1  1.77365e-06
  2  9.63949
  3  7.63494e-07
  4  4.41472e-06
  5  4.591e-07
  6  1.99667e-06
  7  1.03785e-06
  8  2.55435
  9  3.78516e-05
  10  5.15442
  11  1.23402e-06
  12  11.2935
  13  10.1114
  14  26.0557
  15  88.4557
  16  0.000103896
  17  22.9164
  18  0.205209
  19  0.147921
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  0.000e+00  3.785e-05  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.044e+00  1.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.432e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264972/likelihoodResults_693446401_693705601_4FGL_J1359.4+0202_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) = 5934.90039354
delta logL = -0.01222294121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5933.88627877
delta logL = 1.00189182935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20175E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.5562       1.0000          .0000       10.000    
     3 'Normalizat'    .85168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0850       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5933.886     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      276 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19960E-01    .29543        .17025E-03** at limit **
   2  Index         5.5609        2.4299        .11862       -.31754E-03
   3  Normalizat    .85146        .50152E-01    .69856E-01   -.15865E-03
   4  Prefactor     1.0852        .36238E-01    .38187E-01   -.16171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0199597
  Index      = 5.5609
  Normalizat = 0.851456
  Prefactor  = 1.08521
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.886     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19960E-01    .74422        .92228E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.5609        7.2440        .43348E-02    .11242    
   3  Normalizat    .85146        .18457        .30909E-03   -.98188    
   4  Prefactor     1.0852        .13134        .19974E-03   -.89941    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12356e-09
Minuit parameter uncertainties:
  1  0.243757
  2  5.04697
  3  0.184709
  4  0.131377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264972': 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): 102
logL (Free Index) = 5933.88627662
delta logL = 1.00189398454

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.996e-02  2.438e-01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  5.561e+00  5.047e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.283e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.085e+00  1.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.515e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 209.859 2.042
Photon Index (Free Index): 5.56 +/- 5.05
Photon Flux (Free Index): 6.42e-08 +/- 5.86e-08
Energy Flux (Free Index): 8.20e-06 +/- 8.93e-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/264972/cmap_HighResolution_693446401_693705601_4FGL_J1359.4+0202_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', comment='SUCCESS', energy_flux2='8.20e-06', dlogl='1.00e+00', photon_flux2='6.42e-08', job_status='DONE', time_completed='2022-12-26 01:09:49.499302', photon_index_error2='5.05', photon_index2='5.56', ts='0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.37e-08', energy_flux_error2='8.93e-06', EG='0.94', time_epoch_completed='1672045789.5', return_code='0', job_id='264972', GAL2='1.09', EG2='0.85', return_code2='102', photon_flux_error2='5.86e-08', ts2='2.12', photon_index='2.39' WHERE bin_id='1752' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:09:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 264972: <4FGL_J1359.4+0202_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin1752> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Dec 26 01:00:23 2022
Job was executed on host(s) <bullet0071>, 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:09:50 2022
Results reported at Mon Dec 26 01:09:50 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   440.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            567 sec.

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

