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


Performing analysis on: 4FGL_J0005.9+3824_weekly_bin333
RA = 1.4986, Dec = 38.401
tmin = 440380801, tmax = 440985601
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='732671', job_status='RUN', time_executed='2021-07-02 20:46:10.269853', time_epoch_executed='1625283970.27' WHERE source_name='4FGL J0005.9+3824' and cadence='weekly' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732671

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732671/ft1_4FGL_J0005.9+3824_weekly_bin333.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732671/ft1_4FGL_J0005.9+3824_weekly_bin333.fits outfile=/scratch/kocevski/732671/ft1_filteredMKT_4FGL_J0005.9+3824_weekly_bin333.fits ra=1.4986 dec=38.401 rad=12.0 tmin=440380801.0 tmax=440985601.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.84
user 7.45
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.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/732671/ft1_filteredMKT_4FGL_J0005.9+3824_weekly_bin333.fits evtable="EVENTS" outfile="/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.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.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits" evtable="EVENTS" scfile=/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits sctable="SC_DATA" outfile=/scratch/kocevski/732671/ltcube_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.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/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits
.....................!
real 30.72
user 30.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/732671/ltcube_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.fits outfile=/scratch/kocevski/732671/expmap_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.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/732671/ltcube_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.fits
.....................!
real 191.43
user 186.49
sys 4.57

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 158 point sources and 1 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 J0005.9+3824 @ 1.4986 38.401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits scfile=/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits outfile=/scratch/kocevski/732671/cmap_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.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=1.4986 yref=38.401 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits scfile=/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits outfile=/scratch/kocevski/732671/cmap_HighResolution_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.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=1.4986 yref=38.401 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.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/732671/Model_4FGL_J0005.9+3824_weekly_bin333.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits.....................!
real 198.84
user 196.99
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits', '/scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits', expMap='/scratch/kocevski/732671/expmap_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.fits', expCube='/scratch/kocevski/732671/ltcube_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/732671/Model_4FGL_J0005.9+3824_weekly_bin333.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0005.9+3824'

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  7.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
24         alpha:  2.552e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
25          beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/732671/ft1_filtered_4FGL_J0005.9+3824_weekly_bin333.fits
Spacecraft file(s): /scratch/kocevski/732671/ft2_4FGL_J0005.9+3824_weekly_bin333.fits
Exposure map: /scratch/kocevski/732671/expmap_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.fits
Exposure cube: /scratch/kocevski/732671/ltcube_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/732671/Model_4FGL_J0005.9+3824_weekly_bin333.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) = 20471.9151807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89335E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39304E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .82117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6327       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0819       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .85678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.815       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5822       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54107E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.659       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7707       1.0000         .10000E-03   10000.    
    17 'norm      '    7.6937       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2479       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1572       1.0000         .10000E-03   10000.    
    20 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3029       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9695       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80605       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0934       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   20471.81     FROM MIGRAD    STATUS=FAILED      1235 CALLS     3999 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.830        .36564E-03** at limit **
   2  Prefactor     .10021E-03    8.8802        .10347    ** at limit **
   3  norm          .81336        18.069        .49101E-02    .34888E-02
   4  Prefactor     2.6332        2.4706        .20897E-03    .25918E-03
   5  Prefactor     7.0804        4.2075        .75371E-03    .25896E-02
   6  Prefactor     .10000E-03    .45662        .93764E-03** at limit **
   7  Prefactor     .83711        30.180        .52109E-02    .26545E-03
   8  Prefactor     .10000E-03    22.071        .18142E-02** at limit **
   9  Prefactor     13.816        14.258        .10776E-03   -.10254E-03
  10  norm          2.5821        1.3222        .11370E-03   -.31796E-03
  11  Prefactor     .36943        1.5622        .27561E-02    .68811E-03
  12  Prefactor     .10108E-03    4.6616        .88573E-01** at limit **
  13  Prefactor     3.2590        5.7682        .11218E-02    .28951E-02
  14  Prefactor     10.658        12.285        .12272E-03   -.97454E-04
  15  norm          2.5674        .98072        .84968E-04    .54911E-03
  16  Prefactor     8.7679        6.4358        .13535E-03    .37967E-04
  17  norm          7.6935        3.3908        .72286E-03    .12433E-02
  18  norm          5.2466        5.2113        .17546E-03   -.15550E-05
  19  Prefactor     9.1558        10.386        .13244E-03    .10919E-03
  20  norm          .10000E-03    .67913        .22540E-03** at limit **
  21  Prefactor     5.3016        6.0533        .17453E-03    .10422E-03
  22  Prefactor     .10000E-03    14.287        .18142E-02** at limit **
  23  Prefactor     5.9673        12.777        .16435E-03    .92694E-04
  24  Prefactor     12.239        32.957        .11441E-03    .17647E-03
  25  Prefactor     10.068        5.6072        .63157E-03    .16508E-02
  26  Normalizat    .80619        .14773        .36644E-03   -.58326E-05
  27  Prefactor     1.0934        .71482E-01    .16364E-03    .16979E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   20471.81     FROM SIMPLEX   STATUS=UNCHANGED   1454 CALLS     5453 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.830        .12687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10021E-03    8.8802        .27016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .81336        18.069        .68561E-06   -1.5528    
   4  Prefactor     2.6332        2.4706        .33689E-06   -1.5383    
   5  Prefactor     7.0804        4.2075        .32297E-06   -1.5176    
   6  Prefactor     .10000E-03    .45662        .70801E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83711        30.180        .75532E-06   -1.5525    
   8  Prefactor     .10000E-03    22.071        .77717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.816        14.258        .34874E-06   -1.4964    
  10  norm          2.5821        1.3222        .32252E-06   -1.5387    
  11  Prefactor     .36943        1.5622        .37992E-06   -1.5586    
  12  Prefactor     .10108E-03    4.6616        .19453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2590        5.7682        .47112E-06   -1.5347    
  14  Prefactor     10.658        12.285        .56139E-06   -1.5055    
  15  norm          2.5674        .98072        .36458E-06   -1.5387    
  16  Prefactor     8.7679        6.4358        .47789E-06   -1.5116    
  17  norm          7.6935        3.3908        .40724E-06   -1.5153    
  18  norm          5.2466        5.2113        .49678E-06   -1.5250    
  19  Prefactor     9.1558        10.386        .47144E-06   -1.5103    
  20  norm          .10000E-03    .67913        .97625E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3016        6.0533        .21290E-06   -1.5247    
  22  Prefactor     .10000E-03    14.287        .45017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9673        12.777        .29287E-06   -1.5219    
  24  Prefactor     12.239        32.957        .28289E-06   -1.5008    
  25  Prefactor     10.068        5.6072        .29870E-06   -1.5073    
  26  Normalizat    .80619        .14773        .17817E-06   -.99839    
  27  Prefactor     1.0934        .71482E-01    .17912E-06   -.89676    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20471.81     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     5950 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.835        .73129E-04** at limit **
   2  Prefactor     .10021E-03    8.3561        .10740    ** at limit **
   3  norm          .81356        17.825        .98202E-03    .12457E-04
   4  Prefactor     2.6332        2.4690        .83587E-05   -.25026E-04
   5  Prefactor     7.0802        4.2052        .30148E-04   -.10559E-04
   6  Prefactor     .10000E-03    .45667        .18753E-03** at limit **
   7  Prefactor     .83688        30.172        .20843E-03   -.61088E-05
   8  Prefactor     .10000E-03    22.090        .36285E-03** at limit **
   9  Prefactor     13.816        14.259        .43106E-05    .42198E-05
  10  norm          2.5821        1.3221        .45481E-05   -.41994E-04
  11  Prefactor     .36943        1.5529        .11024E-03    .53625E-05
  12  Prefactor     .10106E-03    4.5533        .90112E-01** at limit **
  13  Prefactor     3.2585        5.7621        .44871E-04   -.40538E-05
  14  Prefactor     10.658        12.278        .49089E-05    .37055E-05
  15  norm          2.5674        .98064        .33987E-05   -.26760E-05
  16  Prefactor     8.7679        6.4339        .54138E-05   -.16799E-05
  17  norm          7.6934        3.3902        .28915E-04   -.94364E-06
  18  norm          5.2466        5.2111        .70185E-05   -.25917E-06
  19  Prefactor     9.1558        10.382        .52977E-05   -.17168E-05
  20  norm          .10000E-03    .67915        .45079E-04** at limit **
  21  Prefactor     5.3015        6.0534        .69813E-05   -.78165E-06
  22  Prefactor     .10000E-03    14.287        .36285E-03** at limit **
  23  Prefactor     5.9672        12.775        .65739E-05   -.55340E-06
  24  Prefactor     12.239        32.899        .45765E-05   -.99366E-05
  25  Prefactor     10.067        5.5953        .25263E-04   -.55802E-04
  26  Normalizat    .80620        .14740        .14658E-04   -.26681E-04
  27  Prefactor     1.0934        .71509E-01    .65456E-05   -.38905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  norm       = 0.813557
  Prefactor  = 2.63322
  Prefactor  = 7.08017
  Prefactor  = 0.0001
  Prefactor  = 0.836879
  Prefactor  = 0.0001
  Prefactor  = 13.8159
  norm       = 2.58208
  Prefactor  = 0.36943
  Prefactor  = 0.00010106
  Prefactor  = 3.25846
  Prefactor  = 10.6581
  norm       = 2.56738
  Prefactor  = 8.76791
  norm       = 7.69342
  norm       = 5.24659
  Prefactor  = 9.15575
  norm       = 0.0001
  Prefactor  = 5.30155
  Prefactor  = 0.0001
  Prefactor  = 5.96717
  Prefactor  = 12.2388
  Prefactor  = 10.0674
  Normalizat = 0.806196
  Prefactor  = 1.09344
 **********
 **   18 **HESSE 
 **********

 FCN=   20471.81     FROM HESSE     STATUS=OK           482 CALLS     6432 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.823        .14626E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10021E-03    8.5366        .10594       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .81356        17.721        .39281E-04   -1.5528    
   4  Prefactor     2.6332        2.4685        .16717E-05   -1.5383    
   5  Prefactor     7.0802        4.2060        .12059E-05   -1.5176    
   6  Prefactor     .10000E-03    .45667        .37506E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83688        30.131        .83374E-05   -1.5525    
   8  Prefactor     .10000E-03    22.090        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.816        14.288        .86212E-06   -1.4964    
  10  norm          2.5821        1.3219        .90962E-06   -1.5387    
  11  Prefactor     .36943        1.5526        .44097E-05   -1.5586    
  12  Prefactor     .10106E-03    4.5780        .89749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2585        5.7644        .17948E-05   -1.5347    
  14  Prefactor     10.658        12.310        .98178E-06   -1.5055    
  15  norm          2.5674        .98049        .67974E-06   -1.5387    
  16  Prefactor     8.7679        6.4391        .10828E-05   -1.5116    
  17  norm          7.6934        3.3909        .57829E-05   -1.5153    
  18  norm          5.2466        5.2111        .70185E-05   -1.5250    
  19  Prefactor     9.1558        10.394        .10595E-05   -1.5103    
  20  norm          .10000E-03    .67915        .90158E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3015        6.0534        .69813E-05   -1.5247    
  22  Prefactor     .10000E-03    14.288        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9672        12.775        .65739E-05   -1.5219    
  24  Prefactor     12.239        31.986        .91530E-06   -1.5008    
  25  Prefactor     10.067        5.5662        .10105E-05   -1.5073    
  26  Normalizat    .80620        .14730        .29315E-05   -.99839    
  27  Prefactor     1.0934        .71448E-01    .13091E-05   -.89676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71769e-11
Minuit parameter uncertainties:
  1  3.78005e-06
  2  0.00267682
  3  7.59607
  4  2.46858
  5  4.20614
  6  5.79062e-08
  7  10.048
  8  6.87633e-06
  9  14.2912
  10  1.32196
  11  1.51456
  12  0.00440692
  13  5.76538
  14  12.3125
  15  0.980499
  16  6.43965
  17  3.39101
  18  5.21154
  19  10.3959
  20  1.19899e-08
  21  6.05411
  22  1.3215e-06
  23  12.7809
  24  32.0308
  25  5.56649
  26  0.147373
  27  0.0714539
Done.

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

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  8.136e-01  7.596e+00  1.000e-04  1.000e+04 ( 1.000e-12)
24         alpha:  2.552e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
25          beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.093e+00  7.145e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.062e-01  1.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 1.499 38.401
Photon Flux Upper Limit: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/732671/likelihoodResults_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.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) = 20468.7012582
delta logL = 3.1054534085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20468.6827077
delta logL = 3.12400391884

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20468.68     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      295 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22432        .31341        .11028E-02   -.15508E-02
   2  alpha         .12914E-09    .81433        .50000    ** at limit **
   3  Normalizat    .80637        .13610        .36626E-03   -.27315E-04
   4  Prefactor     1.0930        .70298E-01    .16362E-03   -.22140E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.224317
  alpha      = 1.29139e-10
  Normalizat = 0.806374
  Prefactor  = 1.09301
 **********
 **   18 **HESSE 
 **********

 FCN=   20468.68     FROM HESSE     STATUS=OK            31 CALLS      326 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22432        .29887        .44111E-04   -1.5613    
   2  alpha         .12914E-09    .74235        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80637        .13617        .14650E-04   -.99833    
   4  Prefactor     1.0930        .70338E-01    .32724E-04   -.89690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82533e-11
Minuit parameter uncertainties:
  1  0.298868
  2  2.01024e-05
  3  0.13623
  4  0.0703438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732671': 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) = 20468.6827045
delta logL = 3.12400709105

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  2.243e-01  2.989e-01  1.000e-04  1.000e+04 ( 1.000e-12)
24         alpha:  1.291e-10  2.010e-05  0.000e+00  5.000e+00 ( 1.000e+00)
25          beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.093e+00  7.034e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.064e-01  1.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.26
Ra Dec: 1.499 38.401
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 1.46e-09 +/- 1.94e-09
Energy Flux (Free Index): 1.91e-05 +/- 2.54e-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/732671/cmap_HighResolution_440380801_440985601_4FGL_J0005.9+3824_weekly_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-05', comment='SUCCESS', energy_flux2='1.91e-05', dlogl='3.12e+00', photon_flux2='1.46e-09', job_status='DONE', time_completed='2021-07-02 21:45:47.474489', photon_index_error2='0.00', photon_index2='0.00', ts='0.01', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='5.12e-08', energy_flux_error2='2.54e-05', EG='0.81', time_epoch_completed='1625287547.47', return_code='0', job_id='732671', GAL2='1.09', EG2='0.81', return_code2='0', photon_flux_error2='1.94e-09', ts2='6.26', photon_index='2.55' WHERE bin_id='333' AND source_name='4FGL J0005.9+3824' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul  2 21:45:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 732671: <4FGL_J0005.9+3824_weekly_bin333> in cluster <slac> Done

Job <4FGL_J0005.9+3824_weekly_bin333> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul  2 20:40:46 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  2 20:45:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  2 20:45:56 2021
Terminated at Fri Jul  2 21:45:48 2021
Results reported at Fri Jul  2 21:45:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_weekly_bin333 1.4986 38.401 440380801 440985601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0005.9+3824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2436.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             269.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3591 sec.
    Turnaround time :                            3903 sec.

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

