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


Performing analysis on: 4FGL_J1359.4+0202_daily_bin1754
RA = 209.859, Dec = 2.0424
tmin = 693964801, tmax = 694224001
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='644910', job_status='RUN', time_executed='2023-01-01 01:16:20.667608', time_epoch_executed='1672564580.67' WHERE source_name='4FGL J1359.4+0202' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644910/ft1_4FGL_J1359.4+0202_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644910/ft1_4FGL_J1359.4+0202_daily_bin1754.fits outfile=/scratch/kocevski/644910/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin1754.fits ra=209.859 dec=2.0424 rad=12.0 tmin=693964801.0 tmax=694224001.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 5.15
user 3.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.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/644910/ft1_filteredMKT_4FGL_J1359.4+0202_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.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.33
sys 0.17

Number of photons that the gtmktime cut: 696

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/644910/ltcube_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.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/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits
.....................!
real 16.05
user 15.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/644910/ltcube_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.fits outfile=/scratch/kocevski/644910/expmap_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.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/644910/ltcube_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.fits
.....................!
real 193.26
user 186.97
sys 5.84

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/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits scfile=/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits outfile=/scratch/kocevski/644910/cmap_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits scfile=/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits outfile=/scratch/kocevski/644910/cmap_HighResolution_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.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.58
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644910/Model_4FGL_J1359.4+0202_daily_bin1754.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/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits.....................!
real 56.99
user 55.58
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits', '/scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits', expMap='/scratch/kocevski/644910/expmap_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.fits', expCube='/scratch/kocevski/644910/ltcube_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644910/Model_4FGL_J1359.4+0202_daily_bin1754.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/644910/ft1_filtered_4FGL_J1359.4+0202_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/644910/ft2_4FGL_J1359.4+0202_daily_bin1754.fits
Exposure map: /scratch/kocevski/644910/expmap_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.fits
Exposure cube: /scratch/kocevski/644910/ltcube_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644910/Model_4FGL_J1359.4+0202_daily_bin1754.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) = 7498.71030804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.746       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
     3 'norm      '    .91968       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22093E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .13418E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6688       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40745E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.3608       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.233       1.0000          .0000       .10000E+07
    10 'norm      '    19.247       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.886       1.0000          .0000       .10000E+07
    12 'norm      '    4.3121       1.0000          .0000       .10000E+07
    13 'norm      '    .10356E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .19172E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17747E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    13.647       1.0000          .0000       .10000E+07
    17 'norm      '    .42299E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2578       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90858       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=   7498.668     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1679 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.746        12.957        .97366E-09    .38890E-03
   2  Prefactor      .0000        2.9820        .93277E-08** at limit **
   3  norm          .91998        1.2260       -.99819E-07    .69725E-03
   4  Prefactor     .72164E-08    11.254        .11159E-07** at limit **
   5  norm          .12212E-08    110.35       -.10111E-05** at limit **
   6  Prefactor     2.6697        2.9749        .10274E-06   -.35633E-03
   7  Prefactor     .51237E-07    18.904        .25436E-06** at limit **
   8  Prefactor     1.3612        2.6121       -.85367E-07    .11374E-03
   9  Prefactor     15.232        12.634        .51793E-07   -.11184E-01
  10  norm          19.244        4.0868       -.13547E-08   -.30801E-03
  11  Prefactor     18.887        7.0536        .27830E-08    .25983E-01
  12  norm          4.3109        6.7330       -.31118E-06    .26528E-03
  13  norm          .40301E-07    45.993        .34153E-07** at limit **
  14  norm          .16764E-07    13.986       -.48030E-06** at limit **
  15  Prefactor     .11491E-07    33.027        .91731E-07** at limit **
  16  Prefactor     13.654        8.8588       -.46501E-07   -.35920E-01
  17  norm          .28366E-07    10.897       -.31929E-06** at limit **
  18  Normalizat    1.2573        .22983       -.10661E-06   -.18881E-04
  19  Prefactor     .90887        .15943        .16147E-05   -.21440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.746
  Prefactor  = 0
  norm       = 0.919977
  Prefactor  = 7.21645e-09
  norm       = 1.22125e-09
  Prefactor  = 2.66971
  Prefactor  = 5.12368e-08
  Prefactor  = 1.36119
  Prefactor  = 15.232
  norm       = 19.2444
  Prefactor  = 18.8866
  norm       = 4.31086
  norm       = 4.03011e-08
  norm       = 1.67644e-08
  Prefactor  = 1.14908e-08
  Prefactor  = 13.6543
  norm       = 2.83662e-08
  Normalizat = 1.25734
  Prefactor  = 0.908868
 **********
 **   18 **HESSE 
 **********

 FCN=   7498.668     FROM HESSE     STATUS=OK           306 CALLS     1985 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.746        12.959        .26056E-03   -1.5631    
   2  Prefactor      .0000        2.9868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .91998        1.2330        .44409E-03   -1.5689    
   4  Prefactor     .72164E-08    11.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .12212E-08    109.89        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6697        2.9824        .62359E-03   -1.5675    
   7  Prefactor     .51237E-07    19.928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3612        2.6590        .93583E-03   -1.5685    
   9  Prefactor     15.232        14.171        .25636E-03   -1.5630    
  10  norm          19.244        4.0894        .22802E-03   -1.5620    
  11  Prefactor     18.887        15.473        .23019E-03   -1.5621    
  12  norm          4.3109        6.7402        .48488E-03   -1.5666    
  13  norm          .40301E-07    45.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .16764E-07    14.639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11491E-07    33.252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.654        18.889        .27088E-03   -1.5634    
  17  norm          .28366E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2573        .19149        .61665E-01   -.84849    
  19  Prefactor     .90887        .13298        .45114E-01   -.95832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34725e-08
Minuit parameter uncertainties:
  1  12.9589
  2  6.62284e-06
  3  1.23298
  4  0.00057874
  5  0.000729926
  6  2.98239
  7  0.00202098
  8  2.65897
  9  14.1713
  10  4.08938
  11  15.4734
  12  6.74025
  13  0.00271997
  14  0.000990366
  15  0.00123484
  16  18.8893
  17  0.00120169
  18  0.191602
  19  0.133027
Done.

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

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  1.523e+01  1.417e+01  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:  9.089e-01  1.330e-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:  1.257e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 209.859 2.042
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.51e-05

TS (Fixed Index): 1.53
Ra Dec: 209.859 2.042
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644910/likelihoodResults_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.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) = 7497.90985996
delta logL = 0.757931033139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7497.88073433
delta logL = 0.787056658141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9555       1.0000          .0000       .10000E+07
     2 'Index     '    3.3006       1.0000          .0000       10.000    
     3 'Normalizat'    1.1919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93784       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=   7497.881     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9422        50.662        .45154E-03    .46073E-02
   2  Index         3.3015        2.3548        .12063        .18003E-03
   3  Normalizat    1.1920        .63057E-01    .63044E-01    .12697E-04
   4  Prefactor     .93767        .42026E-01    .45486E-01    .11233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94219
  Index      = 3.30152
  Normalizat = 1.19204
  Prefactor  = 0.937668
 **********
 **   18 **HESSE 
 **********

 FCN=   7497.881     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9422        15.048        .11506E-04   -1.5664    
   2  Index         3.3015        1.4761        .42300E-02   -.34659    
   3  Normalizat    1.1920        .23740        .27886E-03   -.86849    
   4  Prefactor     .93767        .16351        .21905E-03   -.94837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50476e-11
Minuit parameter uncertainties:
  1  15.0479
  2  1.50146
  3  0.237616
  4  0.163596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644910': 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) = 7497.88073115
delta logL = 0.787059841556

Extracting fit parameters...

4FGL J1359.4+0202
   Spectrum: PowerLaw
268    Prefactor:  4.942e+00  1.505e+01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  3.302e+00  1.501e+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:  9.377e-01  1.636e-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:  1.192e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 209.859 2.042
Photon Index (Free Index): 3.30 +/- 1.50
Photon Flux (Free Index): 9.81e-08 +/- 6.68e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/644910/cmap_HighResolution_693964801_694224001_4FGL_J1359.4+0202_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='1.73e-05', photon_flux_error='4.50e-08', dlogl='7.87e-01', energy_flux='1.62e-05', photon_flux2='9.81e-08', job_status='DONE', time_completed='2023-01-01 01:26:03.632515', photon_index_error2='1.50', photon_index2='3.30', ts='1.53', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.24e-05', EG='1.26', time_epoch_completed='1672565163.63', return_code='0', job_id='644910', GAL2='0.94', EG2='1.19', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='6.68e-08', ts2='3.22', photon_index='2.39' WHERE bin_id='1754' AND source_name='4FGL J1359.4+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:26:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 644910: <4FGL_J1359.4+0202_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1359.4+0202_daily_bin1754> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Jan  1 01:15:17 2023
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:16:02 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:16:02 2023
Terminated at Sun Jan  1 01:26:04 2023
Results reported at Sun Jan  1 01:26:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.4+0202_daily_bin1754 209.859 2.0424 693964801 694224001 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            647 sec.

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

