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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1712
RA = 149.471, Dec = 34.3975
tmin = 683078401, tmax = 683337601
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='87584', job_status='RUN', time_executed='2022-09-16 15:03:08.731023', time_epoch_executed='1663365788.73' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87584/ft1_4FGL_J0957.8+3423_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87584/ft1_4FGL_J0957.8+3423_daily_bin1712.fits outfile=/scratch/kocevski/87584/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1712.fits ra=149.471 dec=34.3975 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.80
user 4.52
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.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/87584/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.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.33
sys 0.17

Number of photons that the gtmktime cut: 493

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/87584/ltcube_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.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/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits
.....................!
real 14.57
user 14.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/87584/ltcube_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.fits outfile=/scratch/kocevski/87584/expmap_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.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/87584/ltcube_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.fits
.....................!
real 192.73
user 186.59
sys 5.72

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J0957.8+3423 @ 149.471 34.3975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits scfile=/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits outfile=/scratch/kocevski/87584/cmap_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.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=149.471 yref=34.3975 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.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits scfile=/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits outfile=/scratch/kocevski/87584/cmap_HighResolution_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.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=149.471 yref=34.3975 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87584/Model_4FGL_J0957.8+3423_daily_bin1712.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/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits.....................!
real 50.36
user 48.86
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits', '/scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits', expMap='/scratch/kocevski/87584/expmap_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.fits', expCube='/scratch/kocevski/87584/ltcube_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87584/Model_4FGL_J0957.8+3423_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.8+3423'

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.465e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87584/ft1_filtered_4FGL_J0957.8+3423_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/87584/ft2_4FGL_J0957.8+3423_daily_bin1712.fits
Exposure map: /scratch/kocevski/87584/expmap_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.fits
Exposure cube: /scratch/kocevski/87584/ltcube_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87584/Model_4FGL_J0957.8+3423_daily_bin1712.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) = 5631.05716922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90342E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.2594       1.0000          .0000       .10000E+07
     3 'norm      '    1.1713       1.0000          .0000       .10000E+07
     4 'Prefactor '    .89344E-03   1.0000          .0000       .10000E+07
     5 'norm      '    8.0631       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55036E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .51499E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .24407E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .15281E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .86098E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .84113E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .46759E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .37736E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.1918       1.0000          .0000       .10000E+07
    15 'norm      '    11.012       1.0000          .0000       .10000E+07
    16 'Prefactor '    .48249E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.2867       1.0000          .0000       .10000E+07
    18 'norm      '    1.2841       1.0000          .0000       .10000E+07
    19 'Prefactor '    100.51       1.0000          .0000       .10000E+07
    20 'Prefactor '    .20336E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    15.593       1.0000          .0000       .10000E+07
    22 'Prefactor '    .19908E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .98406       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5631.028     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1999 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-07    5.5279       -.13439E-07** at limit **
   2  Prefactor     2.2630        3.8909       -.28966E-07   -.94742E-03
   3  norm          1.1708        1.2406       -.36047E-08   -.85097E-04
   4  Prefactor     .21261E-07    5.8912       -.23227E-07** at limit **
   5  norm          8.0419        8.6361        .11744E-06   -.55001E-02
   6  Prefactor     .33751E-07    5.8399        .45647E-07** at limit **
   7  Prefactor     .33307E-09    1.7795       -.26329E-07** at limit **
   8  norm          .43299E-08    10.653       -.80860E-07** at limit **
   9  Prefactor      .0000        27.323       -.65635E-07** at limit **
  10  Prefactor     .14766E-07    3.5308        .73165E-07** at limit **
  11  Prefactor     .17208E-07    4.6107        .10066E-06** at limit **
  12  Prefactor     .21871E-07    4.6205       -.72068E-08** at limit **
  13  Prefactor     .36637E-08    6.6337        .55108E-08** at limit **
  14  Prefactor     1.1915        1.6675       -.21728E-10    .98569E-04
  15  norm          10.953        6.1132       -.11000E-07   -.48709E-01
  16  Prefactor     .44409E-09    7.5160        .10469E-06** at limit **
  17  Prefactor     5.2775        5.3137       -.35689E-07   -.14297E-02
  18  norm          1.2828        23.135       -.11525E-06   -.10345E-02
  19  Prefactor     103.14        96.493       -.44530E-06   -.70272E-04
  20  Prefactor      .0000        28.396       -.22491E-07** at limit **
  21  Prefactor     15.577        7.0563        .24519E-07   -.99476E-03
  22  Prefactor     .16098E-08    16.836       -.12578E-06** at limit **
  23  Normalizat    .98356        .23576        .37940E-06    .23616E-04
  24  Prefactor     1.3044        .26798        .60683E-06    .24852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-08
  Prefactor  = 2.263
  norm       = 1.17081
  Prefactor  = 2.12608e-08
  norm       = 8.04186
  Prefactor  = 3.37508e-08
  Prefactor  = 3.33067e-10
  norm       = 4.32987e-09
  Prefactor  = 0
  Prefactor  = 1.4766e-08
  Prefactor  = 1.72085e-08
  Prefactor  = 2.18714e-08
  Prefactor  = 3.66374e-09
  Prefactor  = 1.19154
  norm       = 10.9528
  Prefactor  = 4.44089e-10
  Prefactor  = 5.27752
  norm       = 1.28276
  Prefactor  = 103.139
  Prefactor  = 0
  Prefactor  = 15.5773
  Prefactor  = 1.60982e-09
  Normalizat = 0.983558
  Prefactor  = 1.30437
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.028     FROM HESSE     STATUS=OK           443 CALLS     2442 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-07    14.100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2630        3.9202        .68315E-03   -1.5678    
   3  norm          1.1708        1.2557        .10597E-02   -1.5686    
   4  Prefactor     .21261E-07    14.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0419        8.7105        .35285E-03   -1.5651    
   6  Prefactor     .33751E-07    6.6100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .33307E-09    1.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .43299E-08    11.475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        27.013        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14766E-07    13.521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17208E-07    13.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21871E-07    5.2677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .36637E-08    6.7464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1915        1.7110        .10425E-02   -1.5686    
  15  norm          10.953        9.7765        .30165E-03   -1.5642    
  16  Prefactor     .44409E-09    12.531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2775        5.3322        .43689E-03   -1.5662    
  18  norm          1.2828        23.320        .97830E-03   -1.5685    
  19  Prefactor     103.14        96.249        .99754E-04   -1.5505    
  20  Prefactor      .0000        28.235        .17015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.577        7.0781        .25337E-03   -1.5629    
  22  Prefactor     .16098E-08    16.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98356        .19724        .45967E-01   -.93583    
  24  Prefactor     1.3044        .22431        .61442E-01   -.83177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73172e-07
Minuit parameter uncertainties:
  1  0.000771071
  2  3.92021
  3  1.25572
  4  0.00109941
  5  8.71049
  6  0.000944917
  7  4.78936e-05
  8  0.0004456
  9  3.88128e-05
  10  0.000893739
  11  0.000949202
  12  0.000678871
  13  0.000313468
  14  1.71105
  15  9.77647
  16  0.000153312
  17  5.33218
  18  10.9388
  19  96.2505
  20  3.39762e-05
  21  7.07809
  22  0.000328491
  23  0.197383
  24  0.224473
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  3.664e-09  3.135e-04  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.304e+00  2.245e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.836e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 6.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87584/likelihoodResults_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.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) = 5631.03338833
delta logL = -0.00507316813582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.02831517
delta logL = -1.18270691019e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5631.014     FROM MIGRAD    STATUS=FAILED       124 CALLS      309 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94721E-01    141.18        .12724E-03** at limit **
   2  Index         3.7630        6.0271        .11091E-01   -.19543E-04
   3  Normalizat    .97275        .11042        .26440E-03   -.49964E-03
   4  Prefactor     1.3118        .11879        .27110E-03   -.38208E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5631.014     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      406 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94721E-01    141.18        .21273E-04** at limit **
   2  Index         3.7630        6.0271        .32537E-02   -.19543E-04
   3  Normalizat    .97275        .11042        .18188E-03   -.49964E-03
   4  Prefactor     1.3118        .11879        .39894E-04   -.38208E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5631.014     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      437 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94730E-01    14.877        .25447E-04** at limit **
   2  Index         3.7629        6.4900        .44365E-03   -.28778E-04
   3  Normalizat    .97275        .23698        .52880E-04   -.47784E-03
   4  Prefactor     1.3118        .26892        .54221E-04   -.36659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0947301
  Index      = 3.76294
  Normalizat = 0.972746
  Prefactor  = 1.31178
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.014     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94730E-01    3.6446        .10179E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7629        3.9018        .17746E-04   -.25001    
   3  Normalizat    .97275        .23446        .10576E-04   -.93949    
   4  Prefactor     1.3118        .26851        .10844E-04   -.82958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94134e-10
Minuit parameter uncertainties:
  1  1.17516
  2  4.53623
  3  0.234704
  4  0.268798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87584': 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) = 5631.01414528
delta logL = 0.0141698841944

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  9.473e-02  1.175e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  3.763e+00  4.536e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.312e+00  2.688e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.727e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.471 34.398

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/87584/cmap_HighResolution_683078401_683337601_4FGL_J0957.8+3423_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2022-09-16 15:13:23.570362', job_id='87584', GAL2='1.31', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1663366403.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.42e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1712' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:13:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 87584: <4FGL_J0957.8+3423_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1712> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 15:00:29 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:02:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:02:46 2022
Terminated at Fri Sep 16 15:13:24 2022
Results reported at Fri Sep 16 15:13:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1712 149.471 34.3975 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.8+3423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            775 sec.

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

