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


Performing analysis on: 4FGL_J0956.7+2516_weekly_bin379
RA = 149.176, Dec = 25.2817
tmin = 468201601, tmax = 468806401
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='110832', job_status='RUN', time_executed='2021-07-16 06:51:38.985856', time_epoch_executed='1626443498.99' WHERE source_name='4FGL J0956.7+2516' and cadence='weekly' and bin_id='379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110832

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110832/ft1_4FGL_J0956.7+2516_weekly_bin379.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110832/ft1_4FGL_J0956.7+2516_weekly_bin379.fits outfile=/scratch/kocevski/110832/ft1_filteredMKT_4FGL_J0956.7+2516_weekly_bin379.fits ra=149.176 dec=25.2817 rad=12.0 tmin=468201601.0 tmax=468806401.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 7.48
user 7.11
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.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/110832/ft1_filteredMKT_4FGL_J0956.7+2516_weekly_bin379.fits evtable="EVENTS" outfile="/scratch/kocevski/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.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.57
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits" evtable="EVENTS" scfile=/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits sctable="SC_DATA" outfile=/scratch/kocevski/110832/ltcube_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.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/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits
.....................!
real 39.73
user 39.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits sctable="SC_DATA" expcube=/scratch/kocevski/110832/ltcube_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.fits outfile=/scratch/kocevski/110832/expmap_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.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/110832/ltcube_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.fits
.....................!
real 169.66
user 163.72
sys 5.23

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/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits scfile=/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits outfile=/scratch/kocevski/110832/cmap_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits scfile=/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits outfile=/scratch/kocevski/110832/cmap_HighResolution_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/110832/Model_4FGL_J0956.7+2516_weekly_bin379.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/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits.....................!
real 92.71
user 91.02
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits', '/scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits', expMap='/scratch/kocevski/110832/expmap_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.fits', expCube='/scratch/kocevski/110832/ltcube_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/110832/Model_4FGL_J0956.7+2516_weekly_bin379.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/110832/ft1_filtered_4FGL_J0956.7+2516_weekly_bin379.fits
Spacecraft file(s): /scratch/kocevski/110832/ft2_4FGL_J0956.7+2516_weekly_bin379.fits
Exposure map: /scratch/kocevski/110832/expmap_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.fits
Exposure cube: /scratch/kocevski/110832/ltcube_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/110832/Model_4FGL_J0956.7+2516_weekly_bin379.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) = 14600.3849998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8052       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5157       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28317       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2218       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1083       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88246       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=   14600.27     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1799 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.660       -.72961E-06** at limit **
   2  norm          .10000E-03    8.8565       -.29750E-06** at limit **
   3  norm          1.6767        .95057        .38732E-08   -.59071E-04
   4  Prefactor     .10000E-03    8.3858        .33842E-06** at limit **
   5  Prefactor     .10000E-03    .84959        .13370E-06** at limit **
   6  Prefactor     5.8049        13.252        .84277E-07   -.28848E-04
   7  Prefactor     .10000E-03    15.633       -.10163E-05** at limit **
   8  Prefactor     10.508        11.454        .70667E-06   -.73540E-04
   9  Prefactor     4.5156        3.7092        .44288E-06    .18085E-03
  10  Prefactor     .10000E-03    4.0221        .12034E-07** at limit **
  11  Prefactor     .28293        .84084        .31813E-06   -.85675E-03
  12  norm          5.2218        3.3038       -.62623E-07   -.16655E-03
  13  Prefactor     4.0646        3.7317       -.27455E-06   -.31787E-03
  14  Prefactor     7.4582        16.483       -.70995E-06   -.83286E-04
  15  Prefactor     2.1317        4.1514        .10331E-05   -.17525E-03
  16  Prefactor     .10000E-03    17.878        .18298E-05** at limit **
  17  Prefactor     3.0951        4.1676        .25063E-06   -.30094E-03
  18  Prefactor     .10000E-03    .33209       -.30878E-07** at limit **
  19  Normalizat    1.1083        .10782       -.49096E-06   -.17091E-03
  20  Prefactor     .88248        .10490       -.34025E-07   -.17170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.67666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.80494
  Prefactor  = 0.0001
  Prefactor  = 10.5077
  Prefactor  = 4.51565
  Prefactor  = 0.0001
  Prefactor  = 0.282934
  norm       = 5.22175
  Prefactor  = 4.06456
  Prefactor  = 7.45815
  Prefactor  = 2.13173
  Prefactor  = 0.000100001
  Prefactor  = 3.09514
  Prefactor  = 0.0001
  Normalizat = 1.1083
  Prefactor  = 0.882479
 **********
 **   18 **HESSE 
 **********

 FCN=   14600.27     FROM HESSE     STATUS=OK           299 CALLS     2098 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.9008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6767        .94861        .85575E-04   -1.5449    
   4  Prefactor     .10000E-03    8.4120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6315        .21051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8049        13.217        .16669E-03   -1.5226    
   7  Prefactor     .10000E-03    15.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.508        11.496        .61801E-03   -1.5060    
   9  Prefactor     4.5156        3.7214        .18946E-03   -1.5283    
  10  Prefactor     .10000E-03    4.0880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .28293        1.0921        .17792E-02   -1.5602    
  12  norm          5.2218        3.3080        .16965E-03   -1.5251    
  13  Prefactor     4.0646        3.6250        .16347E-03   -1.5305    
  14  Prefactor     7.4582        16.639        .14679E-03   -1.5162    
  15  Prefactor     2.1317        4.1136        .25949E-03   -1.5416    
  16  Prefactor     .10000E-03    18.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0951        4.2749        .23051E-03   -1.5356    
  18  Prefactor     .10000E-03    .33817        .67929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1083        .12310        .22039E-03   -.89486    
  20  Prefactor     .88248        .12104        .24776E-03   -.96756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6544e-08
Minuit parameter uncertainties:
  1  9.79346e-05
  2  2.59993e-05
  3  0.948618
  4  2.91296e-05
  5  1.04851e-05
  6  13.2241
  7  0.000127129
  8  11.4986
  9  3.72158
  10  1.36467e-06
  11  1.0922
  12  3.30812
  13  3.62522
  14  16.6498
  15  4.11412
  16  0.000232508
  17  4.27536
  18  2.98332e-07
  19  0.123134
  20  0.121075
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.516e+00  3.722e+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:  8.825e-01  1.211e-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:  1.108e+00  1.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.62e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 7.22e-06 +/- 5.95e-06

TS (Fixed Index): 2.16
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110832/likelihoodResults_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.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) = 14600.2441392
delta logL = 0.0242080058633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14600.2411626
delta logL = 0.0271846262185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7997       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3886       1.0000          .0000       10.000    
     3 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87948       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14600.24     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7997        4.0851        .91818E-03   -.63553E-03
   2  Index         2.3886        .66474        .13360E-01    .65092E-04
   3  Normalizat    1.1123        .11943        .22004E-03   -.26242E-03
   4  Prefactor     .87947        .12075        .24813E-03   -.24072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79972
  Index      = 2.38857
  Normalizat = 1.11232
  Prefactor  = 0.879474
 **********
 **   18 **HESSE 
 **********

 FCN=   14600.24     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7997        4.0240        .36727E-04   -1.5270    
   2  Index         2.3886        .65487        .53442E-03   -.54953    
   3  Normalizat    1.1123        .11950        .44008E-04   -.89357    
   4  Prefactor     .87947        .12079        .99254E-05   -.96862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90601e-10
Minuit parameter uncertainties:
  1  4.02423
  2  0.657469
  3  0.119532
  4  0.120832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110832': 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) = 14600.2411626
delta logL = 0.0271846275973

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.800e+00  4.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.389e+00  6.575e-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:  8.795e-01  1.208e-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:  1.112e+00  1.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.39 +/- 0.66
Photon Flux (Free Index): 2.34e-08 +/- 2.31e-08
Energy Flux (Free Index): 7.79e-06 +/- 6.97e-06

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/110832/cmap_HighResolution_468201601_468806401_4FGL_J0956.7+2516_weekly_bin379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', comment='SUCCESS', photon_flux='2.62e-08', energy_flux2='7.79e-06', photon_flux_error='2.15e-08', dlogl='2.72e-02', energy_flux='7.22e-06', photon_flux2='2.34e-08', job_status='DONE', time_completed='2021-07-16 07:06:01.028360', photon_index_error2='0.66', photon_index2='2.39', ts='2.16', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='7.09e-08', energy_flux_error2='6.97e-06', EG='1.11', time_epoch_completed='1626444361.03', return_code='0', job_id='110832', GAL2='0.88', EG2='1.11', return_code2='0', energy_flux_error='5.95e-06', photon_flux_error2='2.31e-08', ts2='2.21', photon_index='2.55' WHERE bin_id='379' AND source_name='4FGL J0956.7+2516' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 16 07:06:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 110832: <4FGL_J0956.7+2516_weekly_bin379> in cluster <slac> Done

Job <4FGL_J0956.7+2516_weekly_bin379> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Jul 16 06:50:31 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 16 06:51:29 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:51:29 2021
Terminated at Fri Jul 16 07:06:01 2021
Results reported at Fri Jul 16 07:06:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_weekly_bin379 149.176 25.2817 468201601 468806401 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            930 sec.

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

