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


Performing analysis on: 4FGL_J0957.8+3423_weekly_bin752
RA = 149.471, Dec = 34.3975
tmin = 693792001, tmax = 694396801
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='435176', job_status='RUN', time_executed='2023-01-03 01:33:22.354179', time_epoch_executed='1672738402.35' WHERE source_name='4FGL J0957.8+3423' and cadence='weekly' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435176

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435176/ft1_4FGL_J0957.8+3423_weekly_bin752.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435176/ft2_4FGL_J0957.8+3423_weekly_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435176/ft1_4FGL_J0957.8+3423_weekly_bin752.fits outfile=/scratch/kocevski/435176/ft1_filteredMKT_4FGL_J0957.8+3423_weekly_bin752.fits ra=149.471 dec=34.3975 rad=12.0 tmin=693792001.0 tmax=694396801.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 8.86
user 8.43
sys 0.38

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

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

Number of photons that the gtmktime cut: 591

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435176/ft1_filtered_4FGL_J0957.8+3423_weekly_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/435176/ft2_4FGL_J0957.8+3423_weekly_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/435176/ltcube_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.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/435176/ft2_4FGL_J0957.8+3423_weekly_bin752.fits
.....................!
real 37.79
user 37.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435176/ft1_filtered_4FGL_J0957.8+3423_weekly_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/435176/ft2_4FGL_J0957.8+3423_weekly_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/435176/ltcube_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.fits outfile=/scratch/kocevski/435176/expmap_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.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/435176/ltcube_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.fits
.....................!
real 195.17
user 188.29
sys 6.26

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/435176/ft1_filtered_4FGL_J0957.8+3423_weekly_bin752.fits scfile=/scratch/kocevski/435176/ft2_4FGL_J0957.8+3423_weekly_bin752.fits outfile=/scratch/kocevski/435176/cmap_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.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.62
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435176/ft1_filtered_4FGL_J0957.8+3423_weekly_bin752.fits scfile=/scratch/kocevski/435176/ft2_4FGL_J0957.8+3423_weekly_bin752.fits outfile=/scratch/kocevski/435176/cmap_HighResolution_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.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.60
user 0.44
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17402E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69176       1.0000          .0000       .10000E+07
     3 'norm      '    .31530E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.9138       1.0000          .0000       .10000E+07
     5 'norm      '    3.7721       1.0000          .0000       .10000E+07
     6 'Prefactor '    .43853E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10802E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .29513E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.043       1.0000          .0000       .10000E+07
    10 'Prefactor '    21.519       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.5341       1.0000          .0000       .10000E+07
    12 'Prefactor '    .52698E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11419E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.1620       1.0000          .0000       .10000E+07
    15 'norm      '    11.442       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15773E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.2744       1.0000          .0000       .10000E+07
    18 'norm      '    .65166E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    37.638       1.0000          .0000       .10000E+07
    20 'Prefactor '    50.542       1.0000          .0000       .10000E+07
    21 'Prefactor '    .35401E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    8.5170       1.0000          .0000       .10000E+07
    23 'Normalizat'    .94629       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86338       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=   6485.401     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1974 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    13.707       -.51002E-06** at limit **
   2  Prefactor     .71835        2.9985       -.21197E-06    .20800E-02
   3  norm           .0000        .60059       -.53237E-08** at limit **
   4  Prefactor     6.9377        12.518        .18083E-06   -.47566E-01
   5  norm          3.7800        6.3666        .20642E-06    .78867E-02
   6  Prefactor      .0000        1.2349        .74397E-07** at limit **
   7  Prefactor      .0000        .66306        .84754E-07** at limit **
   8  norm          .17764E-08    4.3046       -.52030E-07** at limit **
   9  Prefactor     15.333        1.5545        .90901E-08    .29106E-02
  10  Prefactor     21.839        12.516       -.72109E-09    .73528E-01
  11  Prefactor     9.5220        6.6722        .80393E-08   -.28417E-01
  12  Prefactor      .0000        1.5164       -.45235E-07** at limit **
  13  Prefactor     .55511E-08    1.8049        .97771E-07** at limit **
  14  Prefactor     4.1668        2.0375       -.34585E-09    .16756E-03
  15  norm          11.469        7.1716        .19341E-06    .18905E-01
  16  Prefactor      .0000        1.3121        .16768E-06** at limit **
  17  Prefactor     4.2929        3.7601        .15343E-06    .12275E-02
  18  norm          .11102E-08    4.8546        .39530E-06** at limit **
  19  Prefactor     37.661        1.3145       -.66123E-09   -.12408E-01
  20  Prefactor     51.111        29.149       -.58681E-07   -.35622E-01
  21  Prefactor     .36637E-08    2.4803        .10944E-06** at limit **
  22  Prefactor     8.6305        1.0362       -.47856E-08    .24437E-02
  23  Normalizat    .94506        .17423       -.15976E-05    .23825E-04
  24  Prefactor     .86365        .19973        .24427E-05    .25143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 0.71835
  norm       = 0
  Prefactor  = 6.9377
  norm       = 3.77998
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.77636e-09
  Prefactor  = 15.3328
  Prefactor  = 21.8389
  Prefactor  = 9.52196
  Prefactor  = 0
  Prefactor  = 5.55112e-09
  Prefactor  = 4.16683
  norm       = 11.4692
  Prefactor  = 0
  Prefactor  = 4.29291
  norm       = 1.11022e-09
  Prefactor  = 37.6614
  Prefactor  = 51.1111
  Prefactor  = 3.66374e-09
  Prefactor  = 8.63052
  Normalizat = 0.945063
  Prefactor  = 0.86365
 **********
 **   18 **HESSE 
 **********

 FCN=   6485.401     FROM HESSE     STATUS=OK           445 CALLS     2419 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    13.751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .71835        3.0598        .61380E-03   -1.5691    
   3  norm           .0000        .59798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9377        14.869        .38132E-03   -1.5655    
   5  norm          3.7800        6.5631        .51955E-03   -1.5669    
   6  Prefactor      .0000        1.2195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .66291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .17764E-08    4.3279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.333        17.826        .25798E-03   -1.5630    
  10  Prefactor     21.839        22.158        .21563E-03   -1.5614    
  11  Prefactor     9.5220        19.190        .32431E-03   -1.5646    
  12  Prefactor      .0000        1.5158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-08    4.0506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1668        2.0368        .49380E-03   -1.5667    
  15  norm          11.469        7.2062        .29592E-03   -1.5640    
  16  Prefactor      .0000        1.3109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2929        3.7635        .48708E-03   -1.5667    
  18  norm          .11102E-08    4.8962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.661        47.713        .16302E-03   -1.5585    
  20  Prefactor     51.111        30.260        .14067E-03   -1.5565    
  21  Prefactor     .36637E-08    4.1757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6305        16.869        .34325E-03   -1.5649    
  23  Normalizat    .94506        .15027        .45490E-01   -.94894    
  24  Prefactor     .86365        .17146        .44537E-01   -.97423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05969e-07
Minuit parameter uncertainties:
  1  0.000101618
  2  2.96513
  3  3.00621e-07
  4  14.8694
  5  6.56309
  6  1.46542e-06
  7  1.0382e-06
  8  0.000175589
  9  17.8256
  10  22.1582
  11  19.1902
  12  4.07341e-07
  13  0.000300628
  14  2.03684
  15  7.20618
  16  5.09599e-06
  17  3.76352
  18  0.00014718
  19  47.7134
  20  30.2606
  21  0.000247594
  22  16.869
  23  0.150336
  24  0.171566
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  5.551e-09  3.006e-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:  8.636e-01  1.716e-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.451e-01  1.503e-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: 3.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435176/likelihoodResults_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.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) = 6485.41671745
delta logL = -0.0153103658577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6485.40140708
delta logL = -2.49747245107e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15821E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.3257       1.0000          .0000       10.000    
     3 'Normalizat'    .94507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86364       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=   6485.401     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      252 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    .20239        .42118E-03** at limit **
   2  Index         .80036        9.3151        .50000       -.56843E-09
   3  Normalizat    .94506        .15029E-02    .45475E-01   -.43302E-03
   4  Prefactor     .86365        .17872E-02    .44540E-01   -.19541E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Index      = 0.800357
  Normalizat = 0.945061
  Prefactor  = 0.863651
 **********
 **   18 **HESSE 
 **********

 FCN=   6485.401     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    1.0108        .83719E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .80036        7.2393        .50000       -.99715    
   3  Normalizat    .94506        .33584E-02    .21504E-03   -.94894    
   4  Prefactor     .86365        .39938E-02    .26490E-03   -.97423    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.71562e-10
Minuit parameter uncertainties:
  1  3.11586e-05
  2  48485.4
  3  0.00335838
  4  0.00399382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435176': 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) = 6485.40140708
delta logL = 4.83851181343e-10

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  2.220e-10  3.116e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  8.004e-01  4.849e+04  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:  8.637e-01  3.994e-03  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.451e-01  3.358e-03  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/435176/cmap_HighResolution_693792001_694396801_4FGL_J0957.8+3423_weekly_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-03', job_status='DONE', photon_flux_upper_limit='3.80e-08', time_completed='2023-01-03 01:45:16.835386', job_id='435176', GAL2='0.86', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1672739116.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.84e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='752' AND source_name='4FGL J0957.8+3423' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan  3 01:45:16 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 435176: <4FGL_J0957.8+3423_weekly_bin752> in cluster <slac> Done

Job <4FGL_J0957.8+3423_weekly_bin752> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Jan  3 01:30:37 2023
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan  3 01:32:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan  3 01:32:52 2023
Terminated at Tue Jan  3 01:45:17 2023
Results reported at Tue Jan  3 01:45:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_weekly_bin752 149.471 34.3975 693792001 694396801 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            880 sec.

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

