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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1756
RA = 149.471, Dec = 34.3975
tmin = 694483201, tmax = 694742401
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='10405', job_status='RUN', time_executed='2023-01-07 00:42:27.748030', time_epoch_executed='1673080947.75' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10405/ft1_4FGL_J0957.8+3423_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10405/ft2_4FGL_J0957.8+3423_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10405/ft1_4FGL_J0957.8+3423_daily_bin1756.fits outfile=/scratch/kocevski/10405/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1756.fits ra=149.471 dec=34.3975 rad=12.0 tmin=694483201.0 tmax=694742401.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 2.96
user 2.74
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10405/ft2_4FGL_J0957.8+3423_daily_bin1756.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/10405/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1756.fits evtable="EVENTS" outfile="/scratch/kocevski/10405/ft1_filtered_4FGL_J0957.8+3423_daily_bin1756.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 196

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10405/ft1_filtered_4FGL_J0957.8+3423_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10405/ft2_4FGL_J0957.8+3423_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/10405/ltcube_694483201_694742401_4FGL_J0957.8+3423_daily_bin1756.fits outfile=/scratch/kocevski/10405/expmap_694483201_694742401_4FGL_J0957.8+3423_daily_bin1756.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/10405/ltcube_694483201_694742401_4FGL_J0957.8+3423_daily_bin1756.fits
.....................!
real 191.43
user 186.02
sys 4.92

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/10405/ft1_filtered_4FGL_J0957.8+3423_daily_bin1756.fits scfile=/scratch/kocevski/10405/ft2_4FGL_J0957.8+3423_daily_bin1756.fits outfile=/scratch/kocevski/10405/cmap_694483201_694742401_4FGL_J0957.8+3423_daily_bin1756.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10405/ft1_filtered_4FGL_J0957.8+3423_daily_bin1756.fits scfile=/scratch/kocevski/10405/ft2_4FGL_J0957.8+3423_daily_bin1756.fits outfile=/scratch/kocevski/10405/cmap_HighResolution_694483201_694742401_4FGL_J0957.8+3423_daily_bin1756.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.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    324.66       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.766       1.0000          .0000       .10000E+07
     3 'norm      '    .36859E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .53956E-03   1.0000          .0000       .10000E+07
     5 'norm      '    2.8080       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29975E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.218       1.0000          .0000       .10000E+07
     8 'norm      '    10.075       1.0000          .0000       .10000E+07
     9 'Prefactor '    .32980E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .25425E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25908       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13242E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .64643E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .83400E-06   1.0000          .0000       .10000E+07
    15 'norm      '    28.714       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22131E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11875E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .18979E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    85.850       1.0000          .0000       .10000E+07
    20 'Prefactor '    .87644E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    3.0940       1.0000          .0000       .10000E+07
    22 'Prefactor '    .62154E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0766       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1247       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=   2231.687     FROM MIGRAD    STATUS=CONVERGED    268 CALLS     2121 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     366.70        284.18        .51624E-07   -.16376E-02
   2  Prefactor     12.336        16.106       -.18913E-06   -.47989E-03
   3  norm           .0000        4.8599       -.56719E-07** at limit **
   4  Prefactor     .55611E-06    80.808       -.47724E-08** at limit **
   5  norm          2.8738        52.869       -.12231E-05    .46522E-04
   6  Prefactor      .0000        3.6960       -.33651E-07** at limit **
   7  Prefactor     18.316        17.326       -.87976E-07   -.78135E-02
   8  norm          10.809        29.933       -.50784E-07    .17696E-01
   9  Prefactor     .66114E-07    37.663        .26869E-06** at limit **
  10  Prefactor      .0000        26.097       -.43972E-07** at limit **
  11  Prefactor     .14433E-08    90.495       -.57634E-06** at limit **
  12  Prefactor     .50293E-07    174.22       -.53136E-06** at limit **
  13  Prefactor      .0000        11.677        .17182E-06** at limit **
  14  Prefactor      .0000        1.8556       -.10158E-06** at limit **
  15  norm          29.091        19.659       -.90266E-07   -.64771E-02
  16  Prefactor      .0000        5.2069       -.10501E-07** at limit **
  17  Prefactor     .27756E-09    19.530        .51791E-07** at limit **
  18  norm           .0000        27.210       -.48363E-06** at limit **
  19  Prefactor     90.628        68.146       -.24841E-06   -.14278    
  20  Prefactor     .27850E-06    75.398        .52441E-06** at limit **
  21  Prefactor     3.1074        4.2287        .54830E-07    .48930E-03
  22  Prefactor     .13535E-02    122.97        .84130E-06** at limit **
  23  Normalizat    1.0730        .35767       -.25098E-05   -.10953E-05
  24  Prefactor     1.1227        .41631        .41990E-05    .12580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 366.704
  Prefactor  = 12.3356
  norm       = 0
  Prefactor  = 5.56111e-07
  norm       = 2.8738
  Prefactor  = 0
  Prefactor  = 18.3161
  norm       = 10.8092
  Prefactor  = 6.61138e-08
  Prefactor  = 0
  Prefactor  = 1.44329e-09
  Prefactor  = 5.02931e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 29.0907
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  norm       = 0
  Prefactor  = 90.6281
  Prefactor  = 2.78499e-07
  Prefactor  = 3.10742
  Prefactor  = 0.00135352
  Normalizat = 1.07304
  Prefactor  = 1.12275
 **********
 **   18 **HESSE 
 **********

 FCN=   2231.687     FROM HESSE     STATUS=OK           441 CALLS     2562 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     366.70        285.92        .55508E-04   -1.5325    
   2  Prefactor     12.336        16.103        .28010E-03   -1.5638    
   3  norm           .0000        4.8466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55611E-06    80.729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8738        53.512        .60680E-03   -1.5674    
   6  Prefactor      .0000        3.6873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.316        17.303        .23438E-03   -1.5622    
   8  norm          10.809        29.967        .31543E-03   -1.5642    
   9  Prefactor     .66114E-07    37.761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        26.053        .16703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14433E-08    90.472        .10807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .50293E-07    167.83        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        11.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.8725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          29.091        19.665        .18665E-03   -1.5600    
  16  Prefactor      .0000        5.1941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .27756E-09    19.462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        27.273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     90.628        81.978        .10793E-03   -1.5518    
  20  Prefactor     .27850E-06    75.403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1074        4.2341        .57629E-03   -1.5673    
  22  Prefactor     .13535E-02    380.75        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0730        .29452        .55885E-01   -.90622    
  24  Prefactor     1.1227        .34234        .64278E-01   -.88743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83846e-06
Minuit parameter uncertainties:
  1  285.932
  2  16.1029
  3  6.85733e-06
  4  0.0134005
  5  24.802
  6  1.86929e-06
  7  17.3027
  8  29.9669
  9  0.00316005
  10  1.22227e-05
  11  0.000715866
  12  0.00581116
  13  2.53336e-05
  14  3.15998e-06
  15  19.6647
  16  3.10593e-06
  17  0.000152499
  18  5.09682e-05
  19  81.9788
  20  0.00916476
  21  4.23415
  22  1.43586
  23  0.294966
  24  0.343016
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  2.533e-05  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.123e+00  3.430e-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:  1.073e+00  2.950e-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: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10405/likelihoodResults_694483201_694742401_4FGL_J0957.8+3423_daily_bin1756.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) = 2231.72878847
delta logL = -0.041456879535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2231.68733162
delta logL = -3.36299308401e-08

Fit tolerance = 1e-08

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

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

 FCN=   2231.687     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      215 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.5279        .42118E-03** at limit **
   2  Index         2.7089        1.8259       -.16962E-04     .0000    
   3  Normalizat    1.0730        1.1775       -.21720E-04   -.70388E-04
   4  Prefactor     1.1227        1.1351        .12049E-04   -.68906E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.70888
  Normalizat = 1.07304
  Prefactor  = 1.12275
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2231.687     FROM HESSE     STATUS=FAILED         9 CALLS      224 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.5279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .83089        2.0803       -.16962E-04   -.47600    
   3  Normalizat    1.0730        1.1775       -.21720E-04   -.90622    
   4  Prefactor     1.1227        1.1351        .12049E-04   -.88743    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.32519e-11
Minuit parameter uncertainties:
  1  2.85771e-06
  2  1.88164
  3  1.20824
  4  1.16113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10405': 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) = 2231.68733159
delta logL = -2.45563569479e-11

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  2.858e-06  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.709e+00  1.882e+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.123e+00  1.161e+00  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:  1.073e+00  1.208e+00  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/10405/cmap_HighResolution_694483201_694742401_4FGL_J0957.8+3423_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2023-01-07 00:49:40.371263', job_id='10405', GAL2='1.12', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1673081380.37', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-2.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1756' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 00:49:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 10405: <4FGL_J0957.8+3423_daily_bin1756> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:40:16 2023
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:41:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:41:50 2023
Terminated at Sat Jan  7 00:49:41 2023
Results reported at Sat Jan  7 00:49:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1756 149.471 34.3975 694483201 694742401 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 :                                   434.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   470 sec.
    Turnaround time :                            565 sec.

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

