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 20 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1670
RA = 359.588, Dec = 38.5097
tmin = 672192001, tmax = 672451201
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='877258', job_status='RUN', time_executed='2022-04-24 00:52:02.635032', time_epoch_executed='1650786722.64' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877258/ft1_4FGL_J2358.3+3830_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877258/ft1_4FGL_J2358.3+3830_daily_bin1670.fits outfile=/scratch/kocevski/877258/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1670.fits ra=359.588 dec=38.5097 rad=12.0 tmin=672192001.0 tmax=672451201.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.10
user 4.85
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.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/877258/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 884

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/877258/ltcube_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.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/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits
.....................!
real 12.05
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/877258/ltcube_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.fits outfile=/scratch/kocevski/877258/expmap_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.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/877258/ltcube_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.fits
.....................!
real 191.65
user 186.26
sys 5.05

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 154 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2358.3+3830 @ 359.588 38.5097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits scfile=/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits outfile=/scratch/kocevski/877258/cmap_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.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=359.588 yref=38.5097 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/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits scfile=/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits outfile=/scratch/kocevski/877258/cmap_HighResolution_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.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=359.588 yref=38.5097 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877258/Model_4FGL_J2358.3+3830_daily_bin1670.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits.....................!
real 103.73
user 102.26
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits', '/scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits', expMap='/scratch/kocevski/877258/expmap_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.fits', expCube='/scratch/kocevski/877258/ltcube_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877258/Model_4FGL_J2358.3+3830_daily_bin1670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3+3830'

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  8.894e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/877258/ft1_filtered_4FGL_J2358.3+3830_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/877258/ft2_4FGL_J2358.3+3830_daily_bin1670.fits
Exposure map: /scratch/kocevski/877258/expmap_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.fits
Exposure cube: /scratch/kocevski/877258/ltcube_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877258/Model_4FGL_J2358.3+3830_daily_bin1670.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) = 9553.56939907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8091       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.119       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7978       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6634       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8363       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2549       1.0000         .10000E-03   10000.    
    16 'norm      '    16.928       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12806E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.920       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.082       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2664       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9553.566     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2899 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.365        .19337E-06** at limit **
   2  Prefactor     .10000E-03    12.414       -.44237E-05** at limit **
   3  norm          16.398        14.165       -.65047E-07   -.13860E-06
   4  Prefactor     4.3507        5.0412       -.15888E-05   -.22900E-03
   5  Prefactor     1.6857        1.1482        .20839E-06   -.93863E-03
   6  Prefactor     1.8096        2.1618       -.19717E-06    .31970E-05
   7  Prefactor     .10000E-03    6.5621       -.40490E-06** at limit **
   8  Prefactor     .10000E-03    16.218        .55834E-05** at limit **
   9  Prefactor     15.125        33.513        .98163E-05    .15707E-03
  10  norm          2.7980        1.9278       -.25656E-07    .85247E-04
  11  Prefactor     .62054        4.5902       -.36476E-05    .10929E-02
  12  Prefactor     9.6646        14.636       -.54350E-07   -.25392E-04
  13  norm          1.8360        1.4074       -.32661E-07   -.70728E-04
  14  Prefactor     .10000E-03    10.369        .23071E-05** at limit **
  15  norm          3.2494        3.1355       -.29886E-07    .10174E-03
  16  norm          16.930        11.238       -.30380E-06   -.35925E-04
  17  Prefactor     .10000E-03    42.524        .12632E-05** at limit **
  18  norm          .10000E-03    .66079       -.45561E-07** at limit **
  19  Prefactor     3.6708        14.192        .19678E-06   -.89125E-04
  20  Prefactor     .10000E-03    15.231       -.25845E-05** at limit **
  21  Prefactor     39.914        35.965       -.68741E-05   -.17039E-03
  22  Prefactor     20.081        34.428       -.92417E-06   -.10511E-04
  23  Prefactor     .10000E-03    2.4390       -.20721E-07** at limit **
  24  Normalizat    1.2662        .19012        .16354E-05    .17490E-03
  25  Prefactor     .85807        .85089E-01   -.21922E-06    .47732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.3976
  Prefactor  = 4.35067
  Prefactor  = 1.68569
  Prefactor  = 1.80956
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.1246
  norm       = 2.79796
  Prefactor  = 0.620538
  Prefactor  = 9.66458
  norm       = 1.83599
  Prefactor  = 0.0001
  norm       = 3.24943
  norm       = 16.9296
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.67079
  Prefactor  = 0.0001
  Prefactor  = 39.914
  Prefactor  = 20.0813
  Prefactor  = 0.0001
  Normalizat = 1.26618
  Prefactor  = 0.858073
 **********
 **   18 **HESSE 
 **********

 FCN=   9553.566     FROM HESSE     STATUS=OK           431 CALLS     3330 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.398        14.158        .98911E-04   -1.4898    
   4  Prefactor     4.3507        5.0392        .19313E-03   -1.5291    
   5  Prefactor     1.6857        6.1379        .16234E-02   -1.5448    
   6  Prefactor     1.8096        2.1488        .15109E-03   -1.5439    
   7  Prefactor     .10000E-03    6.5802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.125        33.721        .10301E-03   -1.4930    
  10  norm          2.7980        1.9298        .10960E-03   -1.5373    
  11  Prefactor     .62054        10.093        .36826E-02   -1.5550    
  12  Prefactor     9.6646        14.640        .64456E-03   -1.5086    
  13  norm          1.8360        1.3975        .97381E-04   -1.5437    
  14  Prefactor     .10000E-03    10.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2494        3.1361        .82540E-03   -1.5347    
  16  norm          16.930        11.243        .97347E-04   -1.4885    
  17  Prefactor     .10000E-03    43.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1649        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6708        14.370        .10541E-02   -1.5325    
  20  Prefactor     .10000E-03    15.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.914        36.280        .63441E-04   -1.4444    
  22  Prefactor     20.081        34.388        .89378E-04   -1.4811    
  23  Prefactor     .10000E-03    2.4513        .14890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2662        .22641        .32143E-03   -.84582    
  25  Prefactor     .85807        .10010        .17511E-03   -.97622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20601e-09
Minuit parameter uncertainties:
  1  1.32224e-05
  2  0.000133145
  3  14.1607
  4  5.0397
  5  6.14018
  6  2.14885
  7  1.63113e-05
  8  0.000198533
  9  33.7636
  10  1.9298
  11  5.00584
  12  14.645
  13  1.39756
  14  3.48088e-05
  15  3.1363
  16  11.2448
  17  6.3004e-05
  18  1.39836e-06
  19  14.3833
  20  8.8972e-05
  21  36.3002
  22  34.4224
  23  5.81551e-06
  24  0.226585
  25  0.100121
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.008e+01  3.442e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  8.581e-01  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.266e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877258/likelihoodResults_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.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) = 9553.5434907
delta logL = 0.0225107570423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9553.53345977
delta logL = 0.0325416898449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.198       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3975       1.0000          .0000       10.000    
     3 'Normalizat'    1.2631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9553.533     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      260 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.193        38.580        .10274E-03    .67722E-04
   2  Index         2.3977        1.0345        .10113E-01    .37165E-04
   3  Normalizat    1.2632        .21237        .32174E-03   -.41521E-03
   4  Prefactor     .85858        .97752E-01    .17506E-03   -.80098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1935
  Index      = 2.39767
  Normalizat = 1.26323
  Prefactor  = 0.85858
 **********
 **   18 **HESSE 
 **********

 FCN=   9553.533     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.193        32.954        .41095E-05   -1.4928    
   2  Index         2.3977        .88645        .40452E-03   -.54740    
   3  Normalizat    1.2632        .21241        .64348E-04   -.84671    
   4  Prefactor     .85858        .97776E-01    .35011E-04   -.97604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62895e-10
Minuit parameter uncertainties:
  1  32.9936
  2  0.892945
  3  0.21256
  4  0.0977961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877258': 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) = 9553.53345958
delta logL = 0.0325418832927

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.519e+01  3.299e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.398e+00  8.929e-01  0.000e+00  1.000e+01 (-1.000e+00)
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  8.586e-01  9.780e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.263e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 359.588 38.510

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/877258/cmap_HighResolution_672192001_672451201_4FGL_J2358.3+3830_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2022-04-24 01:06:50.055668', job_id='877258', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1650787610.06', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.25e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1670' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 01:06:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 877258: <4FGL_J2358.3+3830_daily_bin1670> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1670> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:50:12 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:51:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:51:34 2022
Terminated at Sun Apr 24 01:06:50 2022
Results reported at Sun Apr 24 01:06:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1670 359.588 38.5097 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3+3830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   887.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            998 sec.

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

