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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 141 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 = 17148
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0035.9+5950_weekly_bin28
RA = 8.9823, Dec = 59.8334
tmin = 255916801, tmax = 256521601
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='896550', job_status='RUN', time_executed='2021-07-03 15:23:23.184658', time_epoch_executed='1625351003.18' WHERE source_name='4FGL J0035.9+5950' and cadence='weekly' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896550

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896550/ft1_4FGL_J0035.9+5950_weekly_bin28.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896550/ft1_4FGL_J0035.9+5950_weekly_bin28.fits outfile=/scratch/kocevski/896550/ft1_filteredMKT_4FGL_J0035.9+5950_weekly_bin28.fits ra=8.9823 dec=59.8334 rad=12.0 tmin=255916801.0 tmax=256521601.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 3.11
user 2.52
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.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/896550/ft1_filteredMKT_4FGL_J0035.9+5950_weekly_bin28.fits evtable="EVENTS" outfile="/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.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 1.04
user 0.39
sys 0.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits" evtable="EVENTS" scfile=/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits sctable="SC_DATA" outfile=/scratch/kocevski/896550/ltcube_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.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/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits
.....................!
real 32.42
user 31.28
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/896550/ltcube_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.fits outfile=/scratch/kocevski/896550/expmap_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.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/896550/ltcube_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.fits
.....................!
real 193.64
user 185.75
sys 6.08

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 197 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0035.9+5950 @ 8.9823 59.8334

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits scfile=/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits outfile=/scratch/kocevski/896550/cmap_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.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=8.9823 yref=59.8334 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.76
user 0.43
sys 0.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits scfile=/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits outfile=/scratch/kocevski/896550/cmap_HighResolution_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.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=8.9823 yref=59.8334 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.82
user 0.42
sys 0.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/896550/Model_4FGL_J0035.9+5950_weekly_bin28.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 CTB 109
adding source EG_v02
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits.....................!
real 790.38
user 781.22
sys 4.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits', '/scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits', expMap='/scratch/kocevski/896550/expmap_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.fits', expCube='/scratch/kocevski/896550/ltcube_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/896550/Model_4FGL_J0035.9+5950_weekly_bin28.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0035.9+5950'

4FGL J0035.9+5950
   Spectrum: LogParabola
97          norm:  3.538e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
98         alpha:  1.662e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
99          beta:  5.188e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
100           Eb:  3.201e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/896550/ft1_filtered_4FGL_J0035.9+5950_weekly_bin28.fits
Spacecraft file(s): /scratch/kocevski/896550/ft2_4FGL_J0035.9+5950_weekly_bin28.fits
Exposure map: /scratch/kocevski/896550/expmap_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.fits
Exposure cube: /scratch/kocevski/896550/ltcube_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/896550/Model_4FGL_J0035.9+5950_weekly_bin28.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) = 54462.664752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82480       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.701       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2992       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.786       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3019       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6093       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3251       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7973       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.7604       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   54462.64     FROM MIGRAD    STATUS=CONVERGED    291 CALLS     1446 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82480        .82215       -.50898E-08    .74207E-04
   2  Prefactor     23.701        34.146       -.69420E-06   -.10012E-04
   3  norm          4.2992        3.1433        .18412E-06    .12306E-04
   4  norm          .10000E-03    3.3036        .34061E-06** at limit **
   5  norm          21.786        5.4849       -.12567E-06   -.54711E-04
   6  norm          .10000E-03    13.198       -.50039E-07** at limit **
   7  norm          .10000E-03    3.5826        .13503E-05** at limit **
   8  norm          .10000E-03    1.2967       -.12048E-08** at limit **
   9  Prefactor     .10000E-03    3.5409       -.17150E-05** at limit **
  10  norm          4.3018        .93147        .26599E-07   -.12556E-02
  11  Prefactor     2.6093        2.1820       -.33600E-07   -.78761E-04
  12  Prefactor     14.227        13.973       -.50258E-06   -.54342E-05
  13  Prefactor     1.3252        .70509       -.11483E-07   -.49121E-03
  14  norm          2.7974        3.6697       -.13480E-06   -.12263E-04
  15  Normalizat    1.7605        .21493        .31880E-06   -.24518E-04
  16  Prefactor     .93947        .21855E-01   -.31223E-08   -.48961E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.824802
  Prefactor  = 23.7007
  norm       = 4.29916
  norm       = 0.0001
  norm       = 21.7861
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30183
  Prefactor  = 2.60926
  Prefactor  = 14.2273
  Prefactor  = 1.32516
  norm       = 2.79744
  Normalizat = 1.76046
  Prefactor  = 0.939466
 **********
 **   18 **HESSE 
 **********

 FCN=   54462.64     FROM HESSE     STATUS=OK           207 CALLS     1653 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82480        .82947        .20586E-03   -1.5526    
   2  Prefactor     23.701        34.168        .82279E-04   -1.4734    
   3  norm          4.2992        3.1428        .19429E-03   -1.5293    
   4  norm          .10000E-03    3.3118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.786        5.4902        .85814E-04   -1.4774    
   6  norm          .10000E-03    13.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.3215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3018        3.3934        .97117E-03   -1.5293    
  11  Prefactor     2.6093        2.1820        .25253E-03   -1.5385    
  12  Prefactor     14.227        13.986        .10619E-03   -1.4953    
  13  Prefactor     1.3252        .70531        .13979E-03   -1.5478    
  14  norm          2.7974        3.6627        .24325E-03   -1.5373    
  15  Normalizat    1.7605        .22107        .88424E-03   -.70700    
  16  Prefactor     .93947        .22860E-01    .12056E-03   -.94775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21355e-10
Minuit parameter uncertainties:
  1  0.829486
  2  34.1963
  3  3.14287
  4  3.95795e-07
  5  5.49031
  6  4.17039e-07
  7  3.0987e-06
  8  3.61503e-07
  9  1.48127e-06
  10  3.39359
  11  2.18203
  12  13.9892
  13  0.705313
  14  3.66303
  15  0.221196
  16  0.0228601
Done.

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

Extracting fit parameters...

4FGL J0035.9+5950
   Spectrum: LogParabola
97          norm:  4.299e+00  3.143e+00  1.000e-04  1.000e+04 ( 1.000e-13)
98         alpha:  1.662e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
99          beta:  5.188e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
100           Eb:  3.201e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.395e-01  2.286e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.760e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.66
Ra Dec: 8.982 59.833
Photon Index (Fixed Index): 1.66 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 2.21e-05

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) = 54462.6389394
delta logL = 0.000447783168056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 54462.6389377
delta logL = 0.000449469334853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3026       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6435       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   54462.64     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3043        82.590        .48554E-02   -.41384E-03
   2  alpha         1.6439        2.7406        .44719       -.74234E-06
   3  Normalizat    1.7606        .18209        .19838        .12886E-03
   4  Prefactor     .93948        .13197E-01    .27280E-01   -.12339E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.30426
  alpha      = 1.64391
  Normalizat = 1.7606
  Prefactor  = 0.93948
 **********
 **   18 **HESSE 
 **********

 FCN=   54462.64     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3043        3.1687        .19422E-03   -1.5293    
   2  alpha         1.6439        .58243        .41950E-01   -.34951    
   3  Normalizat    1.7606        .21418        .88422E-03   -.70696    
   4  Prefactor     .93948        .22644E-01    .12056E-03   -.94775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58077e-11
Minuit parameter uncertainties:
  1  3.16883
  2  0.588573
  3  0.214299
  4  0.0226442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896550': 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) = 54462.6389373
delta logL = 0.000449888779258

Extracting fit parameters...

4FGL J0035.9+5950
   Spectrum: LogParabola
97          norm:  4.304e+00  3.169e+00  1.000e-04  1.000e+04 ( 1.000e-13)
98         alpha:  1.644e+00  5.886e-01  0.000e+00  5.000e+00 ( 1.000e+00)
99          beta:  5.188e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
100           Eb:  3.201e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.395e-01  2.264e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.761e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 8.982 59.833
Photon Index (Free Index): 1.64 +/- 0.59
Photon Flux (Free Index): 1.49e-08 +/- 1.80e-08
Energy Flux (Free Index): 3.09e-05 +/- 3.21e-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/896550/cmap_HighResolution_255916801_256521601_4FGL_J0035.9+5950_weekly_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='3.09e-05', photon_flux_error='1.12e-08', dlogl='4.50e-04', energy_flux='3.02e-05', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-07-03 16:09:45.449648', photon_index_error2='0.59', photon_index2='1.64', ts='5.66', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.21e-05', EG='1.76', time_epoch_completed='1625353785.45', return_code='0', job_id='896550', GAL2='0.94', EG2='1.76', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='1.80e-08', ts2='5.66', photon_index='1.66' WHERE bin_id='28' AND source_name='4FGL J0035.9+5950' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 16:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 896550: <4FGL_J0035.9+5950_weekly_bin28> in cluster <slac> Done

Job <4FGL_J0035.9+5950_weekly_bin28> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Jul  3 06:05:38 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 06:09:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 06:09:27 2021
Terminated at Sat Jul  3 16:09:49 2021
Results reported at Sat Jul  3 16:09:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0035.9+5950_weekly_bin28 8.9823 59.8334 255916801 256521601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0035.9+5950 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2782.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             76.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   36021 sec.
    Turnaround time :                            36251 sec.

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

