aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 5 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0956.7+2516_weekly_bin308
RA = 149.176, Dec = 25.2817
tmin = 425260801, tmax = 425865601
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='109575', job_status='RUN', time_executed='2021-07-16 06:48:39.943105', time_epoch_executed='1626443319.94' WHERE source_name='4FGL J0956.7+2516' and cadence='weekly' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109575

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

Retrieving the FT1 file...

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

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

Retrieving 98 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109575/ft1_4FGL_J0956.7+2516_weekly_bin308.fits


Retrieving the FT1 file...

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

Retrieving 98 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109575/ft1_4FGL_J0956.7+2516_weekly_bin308.fits outfile=/scratch/kocevski/109575/ft1_filteredMKT_4FGL_J0956.7+2516_weekly_bin308.fits ra=149.176 dec=25.2817 rad=12.0 tmin=425260801.0 tmax=425865601.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.79
user 8.46
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.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/109575/ft1_filteredMKT_4FGL_J0956.7+2516_weekly_bin308.fits evtable="EVENTS" outfile="/scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.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.55
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits" evtable="EVENTS" scfile=/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits sctable="SC_DATA" outfile=/scratch/kocevski/109575/ltcube_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.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/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits
.....................!
real 31.10
user 29.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/109575/ltcube_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.fits outfile=/scratch/kocevski/109575/expmap_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.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/109575/ltcube_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.fits
.....................!
real 192.61
user 187.12
sys 4.58

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

Setting source of interest to:
4FGL J0956.7+2516 @ 149.176 25.2817

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits scfile=/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits outfile=/scratch/kocevski/109575/cmap_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.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.176 yref=25.2817 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits scfile=/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits outfile=/scratch/kocevski/109575/cmap_HighResolution_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.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.176 yref=25.2817 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/109575/Model_4FGL_J0956.7+2516_weekly_bin308.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/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits.....................!
real 70.44
user 68.93
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits', '/scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits', expMap='/scratch/kocevski/109575/expmap_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.fits', expCube='/scratch/kocevski/109575/ltcube_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/109575/Model_4FGL_J0956.7+2516_weekly_bin308.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0956.7+2516'

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.112e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/109575/ft1_filtered_4FGL_J0956.7+2516_weekly_bin308.fits
Spacecraft file(s): /scratch/kocevski/109575/ft2_4FGL_J0956.7+2516_weekly_bin308.fits
Exposure map: /scratch/kocevski/109575/expmap_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.fits
Exposure cube: /scratch/kocevski/109575/ltcube_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/109575/Model_4FGL_J0956.7+2516_weekly_bin308.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) = 8548.68930791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    31.071       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12796E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15568E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.185       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.230       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0581       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11753E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10311E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1191       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3501       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81433       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8548.670     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2096 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4827        .20810E-07** at limit **
   2  norm          31.060        27.565        .21892E-06   -.23976E-04
   3  norm          1.0398        .90776       -.63329E-08   -.18465E-04
   4  Prefactor     .10000E-03    26.443        .15548E-05** at limit **
   5  Prefactor     .10000E-03    1.1064        .38899E-07** at limit **
   6  Prefactor     41.183        23.604        .79491E-07   -.17920E-04
   7  Prefactor     21.284        34.800        .19178E-05   -.23742E-04
   8  Prefactor     .10000E-03    13.403       -.35864E-07** at limit **
   9  Prefactor     8.0599        5.0313       -.57784E-06    .11715E-04
  10  Prefactor     .10000E-03    22.623       -.65870E-05** at limit **
  11  Prefactor     .10000E-03    .57257        .17469E-06** at limit **
  12  norm          .10000E-03    2.6916        .18202E-06** at limit **
  13  Prefactor     .10000E-03    2.3861        .22033E-06** at limit **
  14  Prefactor     .10000E-03    18.760        .10367E-05** at limit **
  15  Prefactor     4.1158        3.4886       -.43403E-06   -.17938E-03
  16  Prefactor     23.757        28.528        .15149E-06   -.43255E-05
  17  Prefactor     2.3530        5.4730       -.14897E-05   -.70040E-04
  18  Prefactor     .10000E-03    .86394       -.27208E-06** at limit **
  19  Normalizat    .81420        .13396       -.46967E-06   -.68415E-04
  20  Prefactor     1.1353        .13798        .28908E-06   -.85706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 31.06
  norm       = 1.03977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1829
  Prefactor  = 21.2836
  Prefactor  = 0.0001
  Prefactor  = 8.05989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.11581
  Prefactor  = 23.7572
  Prefactor  = 2.35301
  Prefactor  = 0.0001
  Normalizat = 0.814196
  Prefactor  = 1.13528
 **********
 **   18 **HESSE 
 **********

 FCN=   8548.670     FROM HESSE     STATUS=OK           295 CALLS     2391 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          31.060        27.560        .71881E-04   -1.4593    
   3  norm          1.0398        .88442        .79807E-04   -1.5504    
   4  Prefactor     .10000E-03    26.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6471        .18345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.183        23.556        .62462E-04   -1.4424    
   7  Prefactor     21.284        34.572        .86930E-04   -1.4785    
   8  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0599        5.0179        .14124E-03   -1.5140    
  10  Prefactor     .10000E-03    22.116        .35326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .58266        .68369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7517        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4790        .27770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1158        3.4798        .15212E-03   -1.5302    
  16  Prefactor     23.757        28.521        .82178E-04   -1.4733    
  17  Prefactor     2.3530        5.3072        .26739E-03   -1.5401    
  18  Prefactor     .10000E-03    .87241        .16573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81420        .14922        .23876E-03   -.99544    
  20  Prefactor     1.1353        .15725        .22184E-03   -.88347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35576e-11
Minuit parameter uncertainties:
  1  8.12053e-07
  2  27.5716
  3  0.884429
  4  8.73002e-05
  5  5.19507e-05
  6  23.5617
  7  34.6046
  8  5.04516e-07
  9  5.01816
  10  4.23091e-05
  11  2.15097e-06
  12  6.51594e-06
  13  2.34835e-05
  14  2.8023e-05
  15  3.47994
  16  28.5369
  17  5.30829
  18  9.89608e-06
  19  0.149296
  20  0.157313
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  8.060e+00  5.018e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.135e+00  1.573e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.142e-01  1.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.58
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 8.02e-06

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) = 8548.48280683
delta logL = 0.187232967692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8548.48261243
delta logL = 0.187427367628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4709       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2432       1.0000          .0000       10.000    
     3 'Normalizat'    .82422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8548.483     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4638        165.12        .32555E-02    .12748E-03
   2  Index         2.2425        6.0654        .22397        .20906E-04
   3  Normalizat    .82426        .74312E-01    .43926E-01    .22195E-04
   4  Prefactor     1.1271        .88056E-01    .36637E-01    .52685E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.46379
  Index      = 2.24249
  Normalizat = 0.824259
  Prefactor  = 1.12711
 **********
 **   18 **HESSE 
 **********

 FCN=   8548.483     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4638        6.0745        .13022E-03   -1.5093    
   2  Index         2.2425        .47139        .79944E-02   -.58416    
   3  Normalizat    .82426        .14424        .23746E-03   -.99175    
   4  Prefactor     1.1271        .15556        .22252E-03   -.88605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54262e-13
Minuit parameter uncertainties:
  1  6.07493
  2  0.472395
  3  0.144305
  4  0.15562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109575': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8548.48261011
delta logL = 0.187429679652

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  9.464e+00  6.075e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.242e+00  4.724e-01  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.127e+00  1.556e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.243e-01  1.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.24 +/- 0.47
Photon Flux (Free Index): 3.99e-08 +/- 2.84e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/109575/cmap_HighResolution_425260801_425865601_4FGL_J0956.7+2516_weekly_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='1.66e-05', photon_flux_error='2.90e-08', dlogl='1.87e-01', energy_flux='1.29e-05', photon_flux2='3.99e-08', job_status='DONE', time_completed='2021-07-16 07:00:23.432829', photon_index_error2='0.47', photon_index2='2.24', ts='4.58', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.81', time_epoch_completed='1626444023.43', return_code='0', job_id='109575', GAL2='1.13', EG2='0.82', return_code2='0', energy_flux_error='8.02e-06', photon_flux_error2='2.84e-08', ts2='4.96', photon_index='2.55' WHERE bin_id='308' AND source_name='4FGL J0956.7+2516' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 16 07:00:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 109575: <4FGL_J0956.7+2516_weekly_bin308> in cluster <slac> Done

Job <4FGL_J0956.7+2516_weekly_bin308> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 16 06:45:29 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 16 06:48:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 16 06:48:26 2021
Terminated at Fri Jul 16 07:00:24 2021
Results reported at Fri Jul 16 07:00:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_weekly_bin308 149.176 25.2817 425260801 425865601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0956.7+2516 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            895 sec.

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

