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


Performing analysis on: 4FGL_J0126.8+2412_weekly_bin501
RA = 21.7036, Dec = 24.21
tmin = 541987201, tmax = 542592001
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='165526', job_status='RUN', time_executed='2021-07-04 01:30:50.619953', time_epoch_executed='1625387450.62' WHERE source_name='4FGL J0126.8+2412' and cadence='weekly' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165526

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165526/ft1_4FGL_J0126.8+2412_weekly_bin501.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165526/ft1_4FGL_J0126.8+2412_weekly_bin501.fits outfile=/scratch/kocevski/165526/ft1_filteredMKT_4FGL_J0126.8+2412_weekly_bin501.fits ra=21.7036 dec=24.21 rad=12.0 tmin=541987201.0 tmax=542592001.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.61
user 7.79
sys 0.40

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.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/165526/ft1_filteredMKT_4FGL_J0126.8+2412_weekly_bin501.fits evtable="EVENTS" outfile="/scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.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.51
user 0.37
sys 0.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/165526/ltcube_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.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/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits
.....................!
real 26.78
user 25.96
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/165526/ltcube_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.fits outfile=/scratch/kocevski/165526/expmap_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.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/165526/ltcube_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.fits
.....................!
real 193.94
user 185.27
sys 5.52

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

Setting source of interest to:
4FGL J0126.8+2412 @ 21.7036 24.21

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits scfile=/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits outfile=/scratch/kocevski/165526/cmap_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.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=21.7036 yref=24.21 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.88
user 0.41
sys 0.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits scfile=/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits outfile=/scratch/kocevski/165526/cmap_HighResolution_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.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=21.7036 yref=24.21 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.71
user 0.42
sys 0.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165526/Model_4FGL_J0126.8+2412_weekly_bin501.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/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits.....................!
real 158.73
user 156.71
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits', '/scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits', expMap='/scratch/kocevski/165526/expmap_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.fits', expCube='/scratch/kocevski/165526/ltcube_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165526/Model_4FGL_J0126.8+2412_weekly_bin501.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0126.8+2412'

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.716e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/165526/ft1_filtered_4FGL_J0126.8+2412_weekly_bin501.fits
Spacecraft file(s): /scratch/kocevski/165526/ft2_4FGL_J0126.8+2412_weekly_bin501.fits
Exposure map: /scratch/kocevski/165526/expmap_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.fits
Exposure cube: /scratch/kocevski/165526/ltcube_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165526/Model_4FGL_J0126.8+2412_weekly_bin501.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) = 17316.5076098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3299       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.474       1.0000         .10000E-03   10000.    
     5 'norm      '    .23804       1.0000         .10000E-03   10000.    
     6 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.734       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9771       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .94883E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10558E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2523       1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4795       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9639       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1059       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0156       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17316.46     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2866 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6132         .0000    ** at limit **
   2  Prefactor     20.708        10.087         .0000       -.32696E-03
   3  Prefactor     1.3308        3.8544         .0000        .47709E-01
   4  Prefactor     20.448        19.482         .0000        .31817E-03
   5  norm          .23839        .22940         .0000       -.60290E-03
   6  norm          .10000E-03    .27972         .0000    ** at limit **
   7  Prefactor     14.734        8.3487         .0000        .15912E-03
   8  Prefactor     6.9789        23.958         .0000        .14749E-03
   9  Prefactor     5.7091        3.2975         .0000        .17777E-03
  10  Prefactor     .10000E-03    1.9085         .0000    ** at limit **
  11  Prefactor     11.203        7.1034         .0000        .13435E-03
  12  Prefactor     .10000E-03    11.378         .0000    ** at limit **
  13  Prefactor     .10294E-03    22.910         .0000    ** at limit **
  14  norm          .10000E-03    .15134         .0000    ** at limit **
  15  Prefactor     .10000E-03    4.6780         .0000    ** at limit **
  16  Prefactor     .10000E-03    4.5744         .0000    ** at limit **
  17  norm          3.2524        2.1418         .0000        .33525E-03
  18  Prefactor     57.255        50.623         .0000       -.13418E-03
  19  Prefactor     3.4800        4.7458         .0000        .76210E-03
  20  Prefactor     2.9637        4.1609         .0000        .25901E-01
  21  Normalizat    1.1058        .13012         .0000        .13881E-03
  22  Prefactor     1.0155        .79746E-01     .0000        .24182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.7078
  Prefactor  = 1.33083
  Prefactor  = 20.448
  norm       = 0.238392
  norm       = 0.0001
  Prefactor  = 14.7344
  Prefactor  = 6.9789
  Prefactor  = 5.70915
  Prefactor  = 0.0001
  Prefactor  = 11.2034
  Prefactor  = 0.0001
  Prefactor  = 0.000102945
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25245
  Prefactor  = 57.2546
  Prefactor  = 3.47998
  Prefactor  = 2.96372
  Normalizat = 1.10583
  Prefactor  = 1.01552
 **********
 **   18 **HESSE 
 **********

 FCN=   17316.46     FROM HESSE     STATUS=OK           360 CALLS     3226 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6186        .16318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.708        10.120        .88023E-04   -1.4798    
   3  Prefactor     1.3308        3.8164        .19042E-02   -1.5477    
   4  Prefactor     20.448        19.314        .44259E-03   -1.4803    
   5  norm          .23839        .22287        .58589E-04   -1.5610    
   6  norm          .10000E-03    .64943        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.734        8.3502        .10435E-03   -1.4940    
   8  Prefactor     6.9789        23.820        .15188E-03   -1.5180    
   9  Prefactor     5.7091        3.2791        .16168E-03   -1.5230    
  10  Prefactor     .10000E-03    7.2186        .34384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.203        7.1004        .11968E-03   -1.5038    
  12  Prefactor     .10000E-03    11.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10294E-03    20.631        .19100       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .68080        .97972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2524        2.1332        .14805E-03   -1.5347    
  18  Prefactor     57.255        50.618        .53059E-04   -1.4193    
  19  Prefactor     3.4800        4.7214        .21678E-03   -1.5335    
  20  Prefactor     2.9637        4.1560        .11793E-02   -1.5364    
  21  Normalizat    1.1058        .15090        .30231E-03   -.89565    
  22  Prefactor     1.0155        .93586E-01    .19748E-03   -.92214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78412e-09
Minuit parameter uncertainties:
  1  1.62118e-05
  2  10.1211
  3  3.81707
  4  19.3204
  5  0.222871
  6  1.51755e-07
  7  8.35085
  8  23.852
  9  3.27918
  10  2.27037e-06
  11  7.10093
  12  1.01972e-05
  13  0.0155948
  14  3.49902e-06
  15  2.71855e-06
  16  1.90682e-05
  17  2.13322
  18  50.6563
  19  4.72191
  20  4.15641
  21  0.150961
  22  0.0936012
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.120e+01  7.101e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.016e+00  9.360e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.106e+00  1.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 6.78e-06

TS (Fixed Index): 3.84
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165526/likelihoodResults_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.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) = 17316.2168283
delta logL = 0.245764063602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17316.2047817
delta logL = 0.257810688003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.404       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3804       1.0000          .0000       10.000    
     3 'Normalizat'    1.1189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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=   17316.20     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      288 TOTAL
                     EDM=   .97E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.405        7.8443        .11374E-03   -.10395E-04
   2  Index         2.3805        .49606        .11995E-01   -.65892E-05
   3  Normalizat    1.1189        .14663        .30077E-03   -.19050E-04
   4  Prefactor     1.0099        .92155E-01    .19795E-03   -.39054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4048
  Index      = 2.38046
  Normalizat = 1.11888
  Prefactor  = 1.00987
 **********
 **   18 **HESSE 
 **********

 FCN=   17316.20     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.405        7.8644        .45494E-05   -1.5003    
   2  Index         2.3805        .49736        .47979E-03   -.55143    
   3  Normalizat    1.1189        .14676        .12031E-04   -.89148    
   4  Prefactor     1.0099        .92226E-01    .79180E-05   -.92401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03756e-13
Minuit parameter uncertainties:
  1  7.86502
  2  0.498493
  3  0.146813
  4  0.0922405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165526': 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) = 17316.2047814
delta logL = 0.2578109649

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.240e+01  7.865e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.380e+00  4.985e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.010e+00  9.224e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.119e+00  1.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.36
Ra Dec: 21.704 24.210
Photon Index (Free Index): 2.38 +/- 0.50
Photon Flux (Free Index): 3.64e-08 +/- 2.85e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.17e-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/165526/cmap_HighResolution_541987201_542592001_4FGL_J0126.8+2412_weekly_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='1.22e-05', photon_flux_error='2.94e-08', dlogl='2.58e-01', energy_flux='1.07e-05', photon_flux2='3.64e-08', job_status='DONE', time_completed='2021-07-04 02:07:29.151248', photon_index_error2='0.50', photon_index2='2.38', ts='3.84', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='8.17e-06', EG='1.11', time_epoch_completed='1625389649.15', return_code='0', job_id='165526', GAL2='1.01', EG2='1.12', return_code2='0', energy_flux_error='6.78e-06', photon_flux_error2='2.85e-08', ts2='4.36', photon_index='2.76' WHERE bin_id='501' AND source_name='4FGL J0126.8+2412' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 02:07:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 165526: <4FGL_J0126.8+2412_weekly_bin501> in cluster <slac> Done

Job <4FGL_J0126.8+2412_weekly_bin501> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jul  3 21:11:11 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 21:11:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 21:11:12 2021
Terminated at Sun Jul  4 02:07:40 2021
Results reported at Sun Jul  4 02:07:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_weekly_bin501 21.7036 24.21 541987201 542592001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0126.8+2412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1369.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             73.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   17788 sec.
    Turnaround time :                            17789 sec.

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

