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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1745
RA = 149.471, Dec = 34.3975
tmin = 691632001, tmax = 691891201
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='642930', job_status='RUN', time_executed='2022-12-05 00:26:47.519707', time_epoch_executed='1670228807.52' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642930/ft1_4FGL_J0957.8+3423_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642930/ft2_4FGL_J0957.8+3423_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642930/ft1_4FGL_J0957.8+3423_daily_bin1745.fits outfile=/scratch/kocevski/642930/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1745.fits ra=149.471 dec=34.3975 rad=12.0 tmin=691632001.0 tmax=691891201.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.36
user 2.14
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642930/ft2_4FGL_J0957.8+3423_daily_bin1745.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/642930/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/642930/ft1_filtered_4FGL_J0957.8+3423_daily_bin1745.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 492

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642930/ft1_filtered_4FGL_J0957.8+3423_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/642930/ft2_4FGL_J0957.8+3423_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/642930/ltcube_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.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/642930/ft2_4FGL_J0957.8+3423_daily_bin1745.fits
.....................!
real 12.45
user 12.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642930/ft1_filtered_4FGL_J0957.8+3423_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/642930/ft2_4FGL_J0957.8+3423_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/642930/ltcube_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.fits outfile=/scratch/kocevski/642930/expmap_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.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/642930/ltcube_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.fits
.....................!
real 190.50
user 184.79
sys 5.18

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/642930/ft1_filtered_4FGL_J0957.8+3423_daily_bin1745.fits scfile=/scratch/kocevski/642930/ft2_4FGL_J0957.8+3423_daily_bin1745.fits outfile=/scratch/kocevski/642930/cmap_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642930/ft1_filtered_4FGL_J0957.8+3423_daily_bin1745.fits scfile=/scratch/kocevski/642930/ft2_4FGL_J0957.8+3423_daily_bin1745.fits outfile=/scratch/kocevski/642930/cmap_HighResolution_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15053E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.8658       1.0000          .0000       .10000E+07
     3 'norm      '    1.9030       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.070       1.0000          .0000       .10000E+07
     5 'norm      '    .45535E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .26157E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.2262       1.0000          .0000       .10000E+07
     8 'norm      '    .22279E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21615E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17436       1.0000          .0000       .10000E+07
    11 'Prefactor '    49.704       1.0000          .0000       .10000E+07
    12 'Prefactor '    .68115E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .36592E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .48431       1.0000          .0000       .10000E+07
    15 'norm      '    3.7592       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.4721       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.3277       1.0000          .0000       .10000E+07
    18 'norm      '    3.7702       1.0000          .0000       .10000E+07
    19 'Prefactor '    .87868E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.6958       1.0000          .0000       .10000E+07
    21 'Prefactor '    .13806E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    11.470       1.0000          .0000       .10000E+07
    23 'Normalizat'    .76625       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1408       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=   5627.780     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2091 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-08    23.360       -.31329E-06** at limit **
   2  Prefactor     3.8615        4.7949       -.39650E-07   -.83117E-03
   3  norm          1.9051        2.2811       -.45931E-07   -.20374E-02
   4  Prefactor     15.179        21.782        .16123E-06    .10286E-01
   5  norm          .94369E-09    6.7929        .30612E-06** at limit **
   6  Prefactor      .0000        1.0156       -.29643E-07** at limit **
   7  Prefactor     6.2127        5.2104        .29147E-07    .61311E-03
   8  norm           .0000        13.295       -.15725E-07** at limit **
   9  Prefactor     .55511E-10    30.737        .11681E-06** at limit **
  10  Prefactor     .10383E-05    19.787       -.33908E-06** at limit **
  11  Prefactor     50.165        45.220        .20601E-06   -.72549E-02
  12  Prefactor     .27200E-08    3.6010       -.33966E-08** at limit **
  13  Prefactor      .0000        4.7853        .16502E-06** at limit **
  14  Prefactor     .48274        2.3038        .23114E-07    .73753E-03
  15  norm          3.8049        4.5302        .55668E-07    .18429E-02
  16  Prefactor     1.4722        1.9629        .38548E-07    .28758E-02
  17  Prefactor     7.3194        3.9548        .16207E-07    .22149E-02
  18  norm          3.7177        7.2742        .59789E-07   -.10444E-02
  19  Prefactor     .37486E-05    21.547        .79539E-07** at limit **
  20  Prefactor     5.7447        3.0604        .32876E-07    .65293E-02
  21  Prefactor      .0000        1.6884        .32115E-07** at limit **
  22  Prefactor     11.474        9.4774        .52352E-07   -.78389E-01
  23  Normalizat    .76604        .19848       -.12496E-05    .18203E-03
  24  Prefactor     1.1408        .22616        .19038E-05    .21310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-09
  Prefactor  = 3.86146
  norm       = 1.90506
  Prefactor  = 15.1788
  norm       = 9.4369e-10
  Prefactor  = 0
  Prefactor  = 6.21275
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.03834e-06
  Prefactor  = 50.165
  Prefactor  = 2.72005e-09
  Prefactor  = 0
  Prefactor  = 0.482737
  norm       = 3.80487
  Prefactor  = 1.47224
  Prefactor  = 7.31944
  norm       = 3.71775
  Prefactor  = 3.74856e-06
  Prefactor  = 5.74473
  Prefactor  = 0
  Prefactor  = 11.4744
  Normalizat = 0.766038
  Prefactor  = 1.14085
 **********
 **   18 **HESSE 
 **********

 FCN=   5627.780     FROM HESSE     STATUS=OK           451 CALLS     2542 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-08    23.613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8615        4.8371        .51299E-03   -1.5669    
   3  norm          1.9051        2.3080        .75355E-03   -1.5680    
   4  Prefactor     15.179        23.201        .25775E-03   -1.5630    
   5  norm          .94369E-09    6.7879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.0147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2127        5.2456        .40207E-03   -1.5658    
   8  norm           .0000        13.059        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    29.771        .16933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10383E-05    37.928        .12251E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.165        52.360        .14185E-03   -1.5566    
  12  Prefactor     .27200E-08    3.6034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.7597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .48274        2.3266        .80303E-03   -1.5694    
  15  norm          3.8049        4.5380        .52048E-03   -1.5669    
  16  Prefactor     1.4722        1.9917        .88521E-03   -1.5684    
  17  Prefactor     7.3194        3.9726        .37028E-03   -1.5654    
  18  norm          3.7177        7.3239        .51969E-03   -1.5669    
  19  Prefactor     .37486E-05    40.302        .14267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7447        35.322        .42065E-03   -1.5660    
  21  Prefactor      .0000        1.6872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.474        13.084        .29555E-03   -1.5640    
  23  Normalizat    .76604        .16871        .43168E-01   -1.0134    
  24  Prefactor     1.1408        .19020        .54994E-01   -.88172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49999e-07
Minuit parameter uncertainties:
  1  0.000459866
  2  4.83711
  3  2.308
  4  23.2016
  5  0.000161485
  6  4.39821e-06
  7  5.24563
  8  9.34075e-06
  9  5.90428e-05
  10  0.0125509
  11  52.3609
  12  0.000198168
  13  4.47119e-06
  14  2.11954
  15  4.538
  16  1.99166
  17  3.97265
  18  7.32394
  19  0.0245827
  20  28.4897
  21  1.04544e-05
  22  13.0841
  23  0.168823
  24  0.190311
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  4.471e-06  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.141e+00  1.903e-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:  7.660e-01  1.688e-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: 4.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642930/likelihoodResults_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.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) = 5627.78114426
delta logL = -0.000907557065148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5627.78023683
delta logL = -1.28034116642e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15044E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.1972       1.0000          .0000       10.000    
     3 'Normalizat'    .76599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1409       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=   5627.780     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      258 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    .29885E-01    .42118E-03** at limit **
   2  Index         2.1435        5.4564        .50000        .29559E-09
   3  Normalizat    .76604        .31118E-03    .43165E-01    .10743E-03
   4  Prefactor     1.1408        .36883E-03    .54995E-01   -.25574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  Index      = 2.1435
  Normalizat = 0.76604
  Prefactor  = 1.14084
 **********
 **   18 **HESSE 
 **********

 FCN=   5627.780     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    .17075        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1435        7.8423        .50000       -.60809    
   3  Normalizat    .76604        .74126E-03    .24685E-03   -1.0134    
   4  Prefactor     1.1408        .87858E-03    .24316E-03   -.88172    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.36878e-12
Minuit parameter uncertainties:
  1  1.97163e-05
  2  4301.02
  3  0.000741264
  4  0.000878583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642930': 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) = 5627.7802367
delta logL = -6.63931132294e-11

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  5.551e-10  1.972e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.144e+00  4.301e+03  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.141e+00  8.786e-04  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:  7.660e-01  7.413e-04  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/642930/cmap_HighResolution_691632001_691891201_4FGL_J0957.8+3423_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-03', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2022-12-05 00:36:29.884623', job_id='642930', GAL2='1.14', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1670229389.88', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='-6.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1745' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:36:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 642930: <4FGL_J0957.8+3423_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec  5 00:25:19 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:25:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:25:20 2022
Terminated at Mon Dec  5 00:36:30 2022
Results reported at Mon Dec  5 00:36:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1745 149.471 34.3975 691632001 691891201 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 :                                   584.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            671 sec.

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

