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


Performing analysis on: 4FGL_J0957.8+3423_weekly_bin754
RA = 149.471, Dec = 34.3975
tmin = 695001601, tmax = 695606401
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='949791', job_status='RUN', time_executed='2023-01-17 00:55:27.652087', time_epoch_executed='1673945727.65' WHERE source_name='4FGL J0957.8+3423' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949791

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949791/ft1_4FGL_J0957.8+3423_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949791/ft1_4FGL_J0957.8+3423_weekly_bin754.fits outfile=/scratch/kocevski/949791/ft1_filteredMKT_4FGL_J0957.8+3423_weekly_bin754.fits ra=149.471 dec=34.3975 rad=12.0 tmin=695001601.0 tmax=695606401.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.63
user 5.32
sys 0.28

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

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

Number of photons that the gtmktime cut: 355

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949791/ft1_filtered_4FGL_J0957.8+3423_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/949791/ltcube_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.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/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits
.....................!
real 38.92
user 38.14
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949791/ft1_filtered_4FGL_J0957.8+3423_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/949791/ltcube_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.fits outfile=/scratch/kocevski/949791/expmap_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.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/949791/ltcube_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.fits
.....................!
real 194.94
user 187.89
sys 6.30

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/949791/ft1_filtered_4FGL_J0957.8+3423_weekly_bin754.fits scfile=/scratch/kocevski/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits outfile=/scratch/kocevski/949791/cmap_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949791/ft1_filtered_4FGL_J0957.8+3423_weekly_bin754.fits scfile=/scratch/kocevski/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits outfile=/scratch/kocevski/949791/cmap_HighResolution_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.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.59
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/949791/ft1_filtered_4FGL_J0957.8+3423_weekly_bin754.fits', '/scratch/kocevski/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits', expMap='/scratch/kocevski/949791/expmap_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.fits', expCube='/scratch/kocevski/949791/ltcube_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/949791/Model_4FGL_J0957.8+3423_weekly_bin754.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/949791/ft1_filtered_4FGL_J0957.8+3423_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/949791/ft2_4FGL_J0957.8+3423_weekly_bin754.fits
Exposure map: /scratch/kocevski/949791/expmap_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.fits
Exposure cube: /scratch/kocevski/949791/ltcube_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/949791/Model_4FGL_J0957.8+3423_weekly_bin754.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) = 4194.27733968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27634E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    18.709       1.0000          .0000       .10000E+07
     3 'norm      '    .26651E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.426       1.0000          .0000       .10000E+07
     5 'norm      '    .66783E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .57305       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.716       1.0000          .0000       .10000E+07
     8 'norm      '    .46038E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.561       1.0000          .0000       .10000E+07
    10 'Prefactor '    .75445E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13129E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4280       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.1765       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4859       1.0000          .0000       .10000E+07
    15 'norm      '    2.5458       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.6489       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.4790       1.0000          .0000       .10000E+07
    18 'norm      '    .52069E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    61.579       1.0000          .0000       .10000E+07
    20 'Prefactor '    25.731       1.0000          .0000       .10000E+07
    21 'Prefactor '    .55763E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .93133       1.0000          .0000       .10000E+07
    23 'Normalizat'    .56530       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3333       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=   4194.193     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2027 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11063E-04    28.989        .38835E-06** at limit **
   2  Prefactor     18.817        11.184       -.25655E-07    .24222E-02
   3  norm          .55511E-10    2.0714        .26104E-07** at limit **
   4  Prefactor     19.716        27.778        .13223E-06   -.70580E-01
   5  norm          .29921E-07    10.395       -.11744E-06** at limit **
   6  Prefactor     .58998        7.9094        .70917E-07    .86204E-03
   7  Prefactor     13.698        11.732       -.22182E-07   -.50590E-01
   8  norm          .19024E-06    5.0166        .59365E-07** at limit **
   9  Prefactor     26.602        35.246        .32215E-07    .34322E-01
  10  Prefactor     .74163E-07    25.468        .16436E-06** at limit **
  11  Prefactor     .57916E-05    29.642        .22354E-06** at limit **
  12  Prefactor     8.4166        9.7468        .45910E-07    .11993E-02
  13  Prefactor     7.1127        15.829        .12248E-06   -.13941E-02
  14  Prefactor     1.4850        2.2054       -.48773E-07   -.48999E-02
  15  norm          2.5395        8.2907        .42915E-07   -.48879E-03
  16  Prefactor     6.6483        6.9518        .35131E-07    .96428E-03
  17  Prefactor     3.4726        6.2241       -.14433E-07   -.35331E-03
  18  norm          .42266E-06    3.4171       -.69242E-07** at limit **
  19  Prefactor     62.870        36.881       -.36671E-07    .11267E-01
  20  Prefactor     25.612        3.8762        .10191E-07   -.10017E-01
  21  Prefactor     .17064E-06    7.0218        .21010E-07** at limit **
  22  Prefactor     1.1582        8.6861       -.43474E-07   -.29486E-02
  23  Normalizat    .56495        .23362        .14822E-05   -.97804E-04
  24  Prefactor     1.3345        .26871       -.25527E-05   -.23274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1063e-05
  Prefactor  = 18.8175
  norm       = 5.55112e-11
  Prefactor  = 19.7157
  norm       = 2.99205e-08
  Prefactor  = 0.589982
  Prefactor  = 13.6979
  norm       = 1.90237e-07
  Prefactor  = 26.6022
  Prefactor  = 7.41629e-08
  Prefactor  = 5.79164e-06
  Prefactor  = 8.41665
  Prefactor  = 7.11274
  Prefactor  = 1.48505
  norm       = 2.53948
  Prefactor  = 6.64826
  Prefactor  = 3.47262
  norm       = 4.22662e-07
  Prefactor  = 62.8704
  Prefactor  = 25.6122
  Prefactor  = 1.70641e-07
  Prefactor  = 1.15824
  Normalizat = 0.564953
  Prefactor  = 1.33445
 **********
 **   18 **HESSE 
 **********

 FCN=   4194.193     FROM HESSE     STATUS=OK           461 CALLS     2488 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11063E-04    41.589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.817        11.501        .23128E-03   -1.5621    
   3  norm          .55511E-10    2.0733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.716        37.589        .21610E-03   -1.5619    
   5  norm          .29921E-07    10.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .58998        8.2236        .71677E-03   -1.5693    
   7  Prefactor     13.698        13.071        .27020E-03   -1.5634    
   8  norm          .19024E-06    8.4532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.602        56.113        .19052E-03   -1.5605    
  10  Prefactor     .74163E-07    25.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57916E-05    36.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4166        9.8006        .34507E-03   -1.5650    
  13  Prefactor     7.1127        16.816        .37420E-03   -1.5655    
  14  Prefactor     1.4850        2.2408        .87960E-03   -1.5684    
  15  norm          2.5395        8.3124        .63973E-03   -1.5676    
  16  Prefactor     6.6483        7.0987        .38892E-03   -1.5656    
  17  Prefactor     3.4726        6.3869        .54188E-03   -1.5671    
  18  norm          .42266E-06    5.2775        .99995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     62.870        54.095        .12744E-03   -1.5549    
  20  Prefactor     25.612        37.107        .19718E-03   -1.5607    
  21  Prefactor     .17064E-06    9.9671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1582        153.62        .43617E-03   -1.5686    
  23  Normalizat    .56495        .20736        .67060E-01   -1.0949    
  24  Prefactor     1.3345        .23239        .54180E-01   -.82288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21018e-06
Minuit parameter uncertainties:
  1  0.0429004
  2  11.5011
  3  1.57918e-05
  4  37.5893
  5  0.00114149
  6  4.40536
  7  13.0713
  8  0.00253607
  9  56.1136
  10  0.00275228
  11  0.0292153
  12  9.80058
  13  16.8162
  14  2.2408
  15  8.31239
  16  7.09872
  17  6.38695
  18  0.00298694
  19  54.0955
  20  37.1069
  21  0.00260842
  22  26.6791
  23  0.207647
  24  0.232575
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  7.113e+00  1.682e+01  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.334e+00  2.326e-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:  5.650e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949791/likelihoodResults_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.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) = 4191.73468132
delta logL = 2.45857958623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4191.4931298
delta logL = 2.70013110595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14350E-02   1.0000          .0000       .10000E+07
     2 'Index     '    6.7946       1.0000          .0000       10.000    
     3 'Normalizat'    .36494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5052       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.

 FCN=   4191.493     FROM MIGRAD    STATUS=CONVERGED    325 CALLS      630 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13952E-02    .16654E-01    .26671E-04** at limit **
   2  Index         6.8058        2.4634        .58299E-01   -.14242E-03
   3  Normalizat    .36508        .20133        .82147E-01    .17667E-04
   4  Prefactor     1.5049        .23382        .51452E-01   -.78985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00139515
  Index      = 6.80576
  Normalizat = 0.365081
  Prefactor  = 1.50488
 **********
 **   18 **HESSE 
 **********

 FCN=   4191.493     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      661 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13952E-02    .17082E-01    .11566E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.8058        2.5994        .24819E-02   -219.54    
   3  Normalizat    .36508        .21160        .36385E-03   -7.4747    
   4  Prefactor     1.5049        .24844        .22745E-03   -2.3676    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93487e-10
Minuit parameter uncertainties:
  1  0.00976372
  2  2.75732
  3  0.212069
  4  0.248644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949791': 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) = 4191.49312169
delta logL = 2.70013920999

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.395e-03  9.764e-03  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  6.806e+00  2.757e+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.505e+00  2.486e-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:  3.651e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.49
Ra Dec: 149.471 34.398
Photon Index (Free Index): 6.81 +/- 2.76
Photon Flux (Free Index): 2.11e-07 +/- 2.89e-06
Energy Flux (Free Index): 2.54e-05 +/- 3.47e-04

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/949791/cmap_HighResolution_695001601_695606401_4FGL_J0957.8+3423_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', energy_flux2='2.54e-05', dlogl='2.70e+00', photon_flux2='2.11e-07', job_status='DONE', time_completed='2023-01-17 01:05:21.751566', photon_index_error2='2.76', photon_index2='6.81', ts='0.22', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='3.47e-04', EG='0.56', time_epoch_completed='1673946321.75', return_code='0', job_id='949791', GAL2='1.50', EG2='0.37', return_code2='102', photon_flux_error2='2.89e-06', ts2='6.49', photon_index='2.16' WHERE bin_id='754' AND source_name='4FGL J0957.8+3423' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:05:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 949791: <4FGL_J0957.8+3423_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0957.8+3423_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:50:23 2023
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:52:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:52:55 2023
Terminated at Tue Jan 17 01:05:22 2023
Results reported at Tue Jan 17 01:05:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_weekly_bin754 149.471 34.3975 695001601 695606401 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 :                                   593.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            899 sec.

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

