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 4 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_J2358.3+3830_daily_bin1754
RA = 359.588, Dec = 38.5097
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='661389', job_status='RUN', time_executed='2023-01-01 02:10:38.542030', time_epoch_executed='1672567838.54' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661389

Creating custom pfile directory:
/scratch/kocevski/661389/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/661389/ft1_4FGL_J2358.3+3830_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/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661389/ft1_4FGL_J2358.3+3830_daily_bin1754.fits outfile=/scratch/kocevski/661389/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1754.fits ra=359.588 dec=38.5097 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 3.91
user 3.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/661389/ft2_4FGL_J2358.3+3830_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/661389/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/661389/ft1_filtered_4FGL_J2358.3+3830_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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 988

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/661389/ft1_filtered_4FGL_J2358.3+3830_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/661389/ltcube_693964801_694224001_4FGL_J2358.3+3830_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/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits
.....................!
real 13.36
user 12.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661389/ft1_filtered_4FGL_J2358.3+3830_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/661389/ltcube_693964801_694224001_4FGL_J2358.3+3830_daily_bin1754.fits outfile=/scratch/kocevski/661389/expmap_693964801_694224001_4FGL_J2358.3+3830_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/661389/ltcube_693964801_694224001_4FGL_J2358.3+3830_daily_bin1754.fits
.....................!
real 190.65
user 185.38
sys 4.89

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/661389/ft1_filtered_4FGL_J2358.3+3830_daily_bin1754.fits scfile=/scratch/kocevski/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits outfile=/scratch/kocevski/661389/cmap_693964801_694224001_4FGL_J2358.3+3830_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=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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661389/ft1_filtered_4FGL_J2358.3+3830_daily_bin1754.fits scfile=/scratch/kocevski/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits outfile=/scratch/kocevski/661389/cmap_HighResolution_693964801_694224001_4FGL_J2358.3+3830_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=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.58
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/661389/ft1_filtered_4FGL_J2358.3+3830_daily_bin1754.fits', '/scratch/kocevski/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits', expMap='/scratch/kocevski/661389/expmap_693964801_694224001_4FGL_J2358.3+3830_daily_bin1754.fits', expCube='/scratch/kocevski/661389/ltcube_693964801_694224001_4FGL_J2358.3+3830_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/661389/Model_4FGL_J2358.3+3830_daily_bin1754.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  0.000e+00  1.000e+06 ( 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/661389/ft1_filtered_4FGL_J2358.3+3830_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/661389/ft2_4FGL_J2358.3+3830_daily_bin1754.fits
Exposure map: /scratch/kocevski/661389/expmap_693964801_694224001_4FGL_J2358.3+3830_daily_bin1754.fits
Exposure cube: /scratch/kocevski/661389/ltcube_693964801_694224001_4FGL_J2358.3+3830_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/661389/Model_4FGL_J2358.3+3830_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) = 10620.7492375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22236E-02   1.0000          .0000       .10000E+07
     2 'norm      '    19.101       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9860       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34776E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .35124E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.073       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10520E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .22878E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.9554       1.0000          .0000       .10000E+07
    10 'Prefactor '    .27588E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25102E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .39181       1.0000          .0000       .10000E+07
    13 'Prefactor '    .56812E-01   1.0000          .0000       .10000E+07
    14 'norm      '    2.4372       1.0000          .0000       .10000E+07
    15 'norm      '    .74952E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    23.708       1.0000          .0000       .10000E+07
    17 'norm      '    .35864       1.0000          .0000       .10000E+07
    18 'Prefactor '    35.506       1.0000          .0000       .10000E+07
    19 'Prefactor '    .17986E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .42152E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.6941       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4769       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78056       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10620.73     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     2790 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10436E-06    5.4555        .35959E-05** at limit **
   2  norm          19.113        1.2971        .98272E-07   -.14318E-01
   3  Prefactor     3.9065        3.2718       -.49499E-07   -.53563E-01
   4  Prefactor     .33307E-09    8.2197        .27320E-05** at limit **
   5  Prefactor      .0000        2.3140        .24651E-06** at limit **
   6  Prefactor     21.048        2.7611        .60392E-06   -.62950E-03
   7  Prefactor     .56621E-08    29.220        .34522E-05** at limit **
   8  Prefactor     .22166E-06    5.7942        .36656E-05** at limit **
   9  norm          1.9560        1.3990       -.74870E-07    .22774E-02
  10  Prefactor      .0000        1.5960        .16401E-05** at limit **
  11  Prefactor     .72164E-09    8.5361       -.56273E-05** at limit **
  12  norm          .39207        1.1036        .29918E-07   -.26548E-02
  13  Prefactor     .38858E-09    58.065       -.20376E-04** at limit **
  14  norm          2.4429        4.7542       -.23050E-05    .33796E-02
  15  norm          .22204E-09    3.6397       -.90730E-06** at limit **
  16  Prefactor     23.677        1.6785        .27573E-06   -.46197E-01
  17  norm          .36110        1.0648       -.77474E-06    .39400E-02
  18  Prefactor     35.403        1.6005       -.11465E-06    .54848E-01
  19  Prefactor     .61628E-06    5.8432        .46191E-05** at limit **
  20  Prefactor     .16653E-09    31.807        .34195E-05** at limit **
  21  Prefactor     6.6812        4.5293        .59536E-06    .46786E-01
  22  Normalizat    1.4771        .20455        .37522E-04   -.16316E-03
  23  Prefactor     .78072        .93228E-01   -.22610E-04   -.46809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04361e-07
  norm       = 19.1135
  Prefactor  = 3.9065
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 21.048
  Prefactor  = 5.66214e-09
  Prefactor  = 2.21656e-07
  norm       = 1.95603
  Prefactor  = 0
  Prefactor  = 7.21645e-10
  norm       = 0.392071
  Prefactor  = 3.88578e-10
  norm       = 2.44294
  norm       = 2.22045e-10
  Prefactor  = 23.6768
  norm       = 0.361101
  Prefactor  = 35.4031
  Prefactor  = 6.16285e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 6.68123
  Normalizat = 1.47715
  Prefactor  = 0.780723
 **********
 **   18 **HESSE 
 **********

 FCN=   10620.73     FROM HESSE     STATUS=OK           422 CALLS     3212 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10436E-06    16.982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.113        17.005        .22889E-03   -1.5621    
   3  Prefactor     3.9065        6.7701        .50493E-03   -1.5668    
   4  Prefactor     .33307E-09    8.3190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.2701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.048        13.958        .21790E-03   -1.5616    
   7  Prefactor     .56621E-08    29.234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22166E-06    16.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9560        1.3937        .74168E-03   -1.5680    
  10  Prefactor      .0000        1.5961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72164E-09    8.8191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .39207        1.1152        .90442E-03   -1.5695    
  13  Prefactor     .38858E-09    3.6216        .11264E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4429        5.4949        .65514E-03   -1.5677    
  15  norm          .22204E-09    3.6406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.677        18.739        .20542E-03   -1.5611    
  17  norm          .36110        1.0308        .42254E-02   -1.5696    
  18  Prefactor     35.403        30.426        .16784E-03   -1.5589    
  19  Prefactor     .61628E-06    17.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16653E-09    31.644        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6812        6.2362        .38759E-03   -1.5656    
  22  Normalizat    1.4771        .17868        .68711E-01   -.78422    
  23  Prefactor     .78072        .80256E-01    .43464E-01   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27013e-07
Minuit parameter uncertainties:
  1  0.00266275
  2  17.0051
  3  6.77009
  4  0.000101923
  5  7.02523e-06
  6  13.9581
  7  0.000812302
  8  0.00384584
  9  1.39368
  10  2.28888e-06
  11  0.000160568
  12  1.11524
  13  7.24121e-05
  14  5.49496
  15  5.88929e-05
  16  18.7388
  17  1.03075
  18  30.4263
  19  0.00648492
  20  0.000134987
  21  6.23618
  22  0.178751
  23  0.0802682
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.665e-10  1.350e-04  0.000e+00  1.000e+06 ( 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:  7.807e-01  8.027e-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.477e+00  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/661389/likelihoodResults_693964801_694224001_4FGL_J2358.3+3830_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) = 10620.7495771
delta logL = -0.0152159636382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10620.7343612
delta logL = -6.58656063024e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10620.73     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      207 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    34.099        .21560E-05** at limit **
   2  Index         1.7658        5.4059        .41911E-04   -.84834E-11
   3  Normalizat    1.4771        .20309       -.14496E-04    .49310E-05
   4  Prefactor     .78072        .92724E-01    .11322E-04    .50042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Index      = 1.76576
  Normalizat = 1.47715
  Prefactor  = 0.780724
 **********
 **   18 **HESSE 
 **********

 FCN=   10620.73     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .53E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    .44920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7658        5.7016        .42113       -.70344    
   3  Normalizat    1.4771        .54913E-03    .68711E-01   -.78422    
   4  Prefactor     .78072        .25009E-03    .43466E-01   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.26903e-14
Minuit parameter uncertainties:
  1  2.90963e-05
  2  11834.2
  3  0.000549128
  4  0.00025009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661389': 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) = 10620.7343612
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  4.441e-10  2.910e-05  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  1.766e+00  1.183e+04  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:  7.807e-01  2.501e-04  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.477e+00  5.491e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/661389/cmap_HighResolution_693964801_694224001_4FGL_J2358.3+3830_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2023-01-01 02:25:03.223428', job_id='661389', GAL2='0.78', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1672568703.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1754' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 02:25:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 661389: <4FGL_J2358.3+3830_daily_bin1754> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 02:10:20 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 02:10:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 02:10:26 2023
Terminated at Sun Jan  1 02:25:04 2023
Results reported at Sun Jan  1 02:25:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1754 359.588 38.5097 693964801 694224001 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 :                                   866.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             347.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            884 sec.

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

