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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1749
RA = 359.588, Dec = 38.5097
tmin = 692668801, tmax = 692928001
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='966619', job_status='RUN', time_executed='2022-12-17 01:41:11.282969', time_epoch_executed='1671270071.28' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/966619

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/966619/ft1_4FGL_J2358.3+3830_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/966619/ft1_4FGL_J2358.3+3830_daily_bin1749.fits outfile=/scratch/kocevski/966619/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1749.fits ra=359.588 dec=38.5097 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.46
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.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/966619/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.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: 980

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/966619/ltcube_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.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/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits
.....................!
real 12.00
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/966619/ltcube_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.fits outfile=/scratch/kocevski/966619/expmap_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.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/966619/ltcube_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.fits
.....................!
real 190.16
user 185.19
sys 4.67

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/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits scfile=/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits outfile=/scratch/kocevski/966619/cmap_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits scfile=/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits outfile=/scratch/kocevski/966619/cmap_HighResolution_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/966619/Model_4FGL_J2358.3+3830_daily_bin1749.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/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits....................!
real 107.56
user 106.14
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits', '/scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits', expMap='/scratch/kocevski/966619/expmap_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.fits', expCube='/scratch/kocevski/966619/ltcube_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/966619/Model_4FGL_J2358.3+3830_daily_bin1749.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/966619/ft1_filtered_4FGL_J2358.3+3830_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/966619/ft2_4FGL_J2358.3+3830_daily_bin1749.fits
Exposure map: /scratch/kocevski/966619/expmap_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.fits
Exposure cube: /scratch/kocevski/966619/ltcube_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/966619/Model_4FGL_J2358.3+3830_daily_bin1749.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) = 10308.8849658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.197       1.0000          .0000       .10000E+07
     2 'norm      '    25.834       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18563E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.9279       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1396       1.0000          .0000       .10000E+07
     6 'Prefactor '    .94364       1.0000          .0000       .10000E+07
     7 'Prefactor '    .31924E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4069       1.0000          .0000       .10000E+07
     9 'norm      '    6.9163       1.0000          .0000       .10000E+07
    10 'Prefactor '    .42111E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.053       1.0000          .0000       .10000E+07
    12 'norm      '    .47631       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14488E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.0775       1.0000          .0000       .10000E+07
    15 'norm      '    14.584       1.0000          .0000       .10000E+07
    16 'Prefactor '    12.246       1.0000          .0000       .10000E+07
    17 'norm      '    .34888       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10456       1.0000          .0000       .10000E+07
    19 'Prefactor '    52.072       1.0000          .0000       .10000E+07
    20 'Prefactor '    .54497E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.2857       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1037       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99141       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=   10308.84     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1873 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.444        16.225       -.55886E-05    .31023E-01
   2  norm          25.839        10.177       -.23049E-05   -.62538E-01
   3  Prefactor      .0000        2.6085        .11443E-06** at limit **
   4  Prefactor     1.9697        7.1341       -.86906E-06   -.57375E-04
   5  Prefactor     1.1385        2.3299        .22400E-06   -.25320E-02
   6  Prefactor     1.0223        2.5850       -.21447E-05    .16135E-01
   7  Prefactor     .16653E-09    11.436       -.13520E-05** at limit **
   8  Prefactor     2.4072        1.3068        .48042E-06    .42376E-02
   9  norm          6.9213        2.9836       -.90469E-09   -.26760E-02
  10  Prefactor     .11102E-09    1.3034       -.30147E-06** at limit **
  11  Prefactor     13.100        1.0355       -.30788E-07    .38410E-02
  12  norm          .47726        .72140       -.14381E-07   -.10448E-02
  13  Prefactor     .55511E-10    5.6977        .37480E-06** at limit **
  14  norm          1.0802        2.7472       -.14157E-06    .14586E-02
  15  norm          14.608        1.1153        .14094E-06    .28177E-01
  16  Prefactor     12.215        6.1730       -.21207E-05   -.32964E-01
  17  norm          .34988        1.3798        .33673E-06   -.15862E-02
  18  Prefactor      .0000        30.644        .80006E-07** at limit **
  19  Prefactor     53.528        39.345        .10057E-05   -.88190E-02
  20  Prefactor     .55511E-09    9.4463        .10439E-06** at limit **
  21  Prefactor     2.2868        3.0958        .25446E-06    .30511E-03
  22  Normalizat    1.1013        .22652        .25616E-04   -.18503E-04
  23  Prefactor     .99177        .10028       -.53400E-05    .12512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4439
  norm       = 25.8395
  Prefactor  = 0
  Prefactor  = 1.96973
  Prefactor  = 1.13853
  Prefactor  = 1.02227
  Prefactor  = 1.66533e-10
  Prefactor  = 2.40718
  norm       = 6.92132
  Prefactor  = 1.11022e-10
  Prefactor  = 13.1001
  norm       = 0.477262
  Prefactor  = 5.55112e-11
  norm       = 1.0802
  norm       = 14.6075
  Prefactor  = 12.2148
  norm       = 0.349882
  Prefactor  = 0
  Prefactor  = 53.5278
  Prefactor  = 5.55112e-10
  Prefactor  = 2.28684
  Normalizat = 1.10134
  Prefactor  = 0.991769
 **********
 **   18 **HESSE 
 **********

 FCN=   10308.84     FROM HESSE     STATUS=OK           426 CALLS     2299 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.444        22.581        .29915E-03   -1.5640    
   2  norm          25.839        16.719        .19679E-03   -1.5606    
   3  Prefactor      .0000        2.6149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9697        7.1355        .74784E-03   -1.5680    
   5  Prefactor     1.1385        2.4631        .10891E-02   -1.5687    
   6  Prefactor     1.0223        45.175        .42788E-03   -1.5688    
   7  Prefactor     .16653E-09    11.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4072        30.952        .65966E-03   -1.5677    
   9  norm          6.9213        2.9832        .38125E-03   -1.5655    
  10  Prefactor     .11102E-09    1.3066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.100        14.502        .27700E-03   -1.5636    
  12  norm          .47726        .84440        .24075E-02   -1.5694    
  13  Prefactor     .55511E-10    5.7112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0802        2.9737        .11630E-02   -1.5687    
  15  norm          14.608        10.260        .26201E-03   -1.5632    
  16  Prefactor     12.215        15.520        .28600E-03   -1.5638    
  17  norm          .34988        1.4079        .95666E-03   -1.5696    
  18  Prefactor      .0000        30.559        .13808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.528        39.255        .13859E-03   -1.5562    
  20  Prefactor     .55511E-09    9.4811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2868        3.1274        .67876E-03   -1.5678    
  22  Normalizat    1.1013        .19556        .77952E-01   -.89709    
  23  Prefactor     .99177        .86165E-01    .46160E-01   -.93004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77412e-07
Minuit parameter uncertainties:
  1  22.5814
  2  16.7194
  3  7.8457e-06
  4  7.13552
  5  2.46307
  6  13.5914
  7  8.25492e-05
  8  17.2636
  9  2.98316
  10  2.11929e-05
  11  14.5015
  12  0.844398
  13  3.7686e-05
  14  2.97375
  15  10.2599
  16  15.5205
  17  1.40371
  18  5.33318e-05
  19  39.2548
  20  0.000148376
  21  3.12736
  22  0.195688
  23  0.0861771
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  5.551e-10  1.484e-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:  9.918e-01  8.618e-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.101e+00  1.957e-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: 3.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/966619/likelihoodResults_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.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) = 10308.8884039
delta logL = -0.0503185094894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10308.8380859
delta logL = -4.36362824985e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15118E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .81792       1.0000          .0000       10.000    
     3 'Normalizat'    1.1014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99178       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10308.84     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      212 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6686        .42118E-03** at limit **
   2  Index         3.1539        1.9771       -.50572E-04     .0000    
   3  Normalizat    1.1013        1.1543       -.67198E-05   -.47215E-06
   4  Prefactor     .99177        1.3314        .12564E-05   -.21569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.15391
  Normalizat = 1.10134
  Prefactor  = 0.991768
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10308.84     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1204        2.2089       -.50572E-04   -.37817    
   3  Normalizat    1.1013        1.1543       -.67198E-05   -.89709    
   4  Prefactor     .99177        1.3314        .12564E-05   -.93004    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.15027e-12
Minuit parameter uncertainties:
  1  1.00074e-05
  2  2.04223
  3  1.18244
  4  1.37985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/966619': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 10308.8380854
delta logL = 4.36557456851e-11

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  0.000e+00  1.001e-05  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  3.154e+00  2.042e+00  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:  9.918e-01  1.380e+00  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.101e+00  1.182e+00  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/966619/cmap_HighResolution_692668801_692928001_4FGL_J2358.3+3830_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2022-12-17 01:53:39.274635', job_id='966619', GAL2='0.99', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1671270819.27', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1749' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:53:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 966619: <4FGL_J2358.3+3830_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 01:40:15 2022
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:40:16 2022
Terminated at Sat Dec 17 01:53:40 2022
Results reported at Sat Dec 17 01:53:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1749 359.588 38.5097 692668801 692928001 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 :                                   750.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

