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


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin642
RA = 35.6696, Dec = 43.0357
tmin = 627264001, tmax = 627868801
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='486615', job_status='RUN', time_executed='2021-07-04 15:28:38.500507', time_epoch_executed='1625437718.5' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486615

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486615/ft1_4FGL_J0222.6+4302_weekly_bin642.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486615/ft1_4FGL_J0222.6+4302_weekly_bin642.fits outfile=/scratch/kocevski/486615/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin642.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=627264001.0 tmax=627868801.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.04
user 5.23
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.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/486615/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin642.fits evtable="EVENTS" outfile="/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.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 2.62
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits" evtable="EVENTS" scfile=/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits sctable="SC_DATA" outfile=/scratch/kocevski/486615/ltcube_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.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/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits
.....................!
real 33.67
user 31.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits sctable="SC_DATA" expcube=/scratch/kocevski/486615/ltcube_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.fits outfile=/scratch/kocevski/486615/expmap_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.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/486615/ltcube_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.fits
.....................!
real 201.92
user 185.76
sys 5.87

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.
Added 181 point sources and 2 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 J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits scfile=/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits outfile=/scratch/kocevski/486615/cmap_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.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=35.6696 yref=43.0357 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 3.04
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits scfile=/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits outfile=/scratch/kocevski/486615/cmap_HighResolution_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.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=35.6696 yref=43.0357 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.63
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486615/Model_4FGL_J0222.6+4302_weekly_bin642.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits...........................!
real 39.74
user 21.92
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits', '/scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits', expMap='/scratch/kocevski/486615/expmap_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.fits', expCube='/scratch/kocevski/486615/ltcube_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/486615/Model_4FGL_J0222.6+4302_weekly_bin642.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/486615/ft1_filtered_4FGL_J0222.6+4302_weekly_bin642.fits
Spacecraft file(s): /scratch/kocevski/486615/ft2_4FGL_J0222.6+4302_weekly_bin642.fits
Exposure map: /scratch/kocevski/486615/expmap_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.fits
Exposure cube: /scratch/kocevski/486615/ltcube_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/486615/Model_4FGL_J0222.6+4302_weekly_bin642.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) = 915.40390831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10669       1.0000         .10000E-03   10000.    
     4 'norm      '    7.6694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42079E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .32200E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6601       1.0000         .10000E-03   10000.    
    23 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58161       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .26745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+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=   915.0259     FROM MIGRAD    STATUS=CONVERGED   1039 CALLS     3934 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.263        56.224        .64005E-04    .62612E-05
   2  Prefactor     .10000E-03    29.249        .15987E-02** at limit **
   3  norm          .10233        12.983        .12445E-02   -.10688E-02
   4  norm          7.6667        2.6281        .25461E-04    .96447E-04
   5  Prefactor     81.979        59.301        .22186E-03   -.30566E-03
   6  Prefactor     .10000E-03    7.5550        .81188E-03** at limit **
   7  Prefactor     59.175        83.080        .26075E-03   -.18029E-04
   8  Prefactor     .10000E-03    1502.1        .19431E-02** at limit **
   9  Prefactor     .10000E-03    19.182        .12945E-02** at limit **
  10  norm          .10000E-03    19.029        .12894E-02** at limit **
  11  Prefactor     .10000E-03    49.396        .18142E-02** at limit **
  12  norm          .10000E-03    3.0438        .51554E-03** at limit **
  13  norm          1.2218        3.7304        .99813E-04   -.30497E-04
  14  Prefactor     .10001E-03    713.95        .18142E-02** at limit **
  15  Prefactor     .10000E-03    82.142        .18142E-02** at limit **
  16  norm          .10000E-03    242.07        .18142E-02** at limit **
  17  Prefactor     .10000E-03    1161.9        .18142E-02** at limit **
  18  norm          .10001E-03    570.02        .21360E-02** at limit **
  19  Prefactor    10000.0        362.73        .21272E-02** at limit **
  20  norm         10000.0        6149.6        .21184E-02** at limit **
  21  Prefactor    10000.0        9929.6        .19099E-02** at limit **
  22  Prefactor    10000.0        9623.1        .77745E-01** at limit **
  23  norm         10000.0        7226.9        .19576E-02** at limit **
  24  Normalizat    .58077        .58221        .39259E-03   -.18686E-03
  25  Prefactor     .26773        .18160        .18773E-03   -.28739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.2627
  Prefactor  = 0.0001
  norm       = 0.102333
  norm       = 7.66675
  Prefactor  = 81.9793
  Prefactor  = 0.0001
  Prefactor  = 59.1751
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.22179
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100009
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.58077
  Prefactor  = 0.267731
 **********
 **   18 **HESSE 
 **********

 FCN=   915.0259     FROM HESSE     STATUS=OK           401 CALLS     4335 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.263        56.216        .25602E-05   -1.4454    
   2  Prefactor     .10000E-03    29.249        .31974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10233        12.715        .49781E-04   -1.5644    
   4  norm          7.6667        2.6274        .50922E-05   -1.5154    
   5  Prefactor     81.979        59.213        .44371E-04   -1.3895    
   6  Prefactor     .10000E-03    7.5550        .16238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.175        83.067        .10430E-04   -1.4168    
   8  Prefactor     .10000E-03    1502.5        .38862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.182        .25891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    19.029        .25788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0438        .10311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2218        3.7294        .39925E-05   -1.5487    
  14  Prefactor     .10001E-03    713.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    82.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    242.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1161.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    570.02        .42719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        362.72        .42543E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        6149.6        .42369E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        9934.2        .38199E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        9616.7        .15549E-01    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm         10000.0        7226.4        .39152E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .58077        .58031        .78518E-04   -1.0881    
  25  Prefactor     .26773        .18168        .37545E-04   -1.2421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70979e-09
Minuit parameter uncertainties:
  1  56.2917
  2  5.49314e-05
  3  2.28079
  4  2.62746
  5  59.2557
  6  5.86772e-06
  7  83.2301
  8  0.00459498
  9  1.96322e-05
  10  4.57581e-07
  11  5.96069e-05
  12  1.22113e-06
  13  3.73011
  14  0.00557423
  15  0.000302105
  16  0.000950697
  17  0.00190752
  18  0.00448982
  19  0.00452308
  20  0.0161096
  21  0.454172
  22  14.7453
  23  0.048475
  24  0.586549
  25  0.182066
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.222e+00  3.730e+00  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  2.677e-01  1.821e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  5.808e-01  5.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 35.670 43.036
Photon Flux Upper Limit: 1.66e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486615/likelihoodResults_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.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) = 914.225926326
delta logL = 0.79993456218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 914.200462287
delta logL = 0.82539860209

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   914.2005     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8060        2.4849        .77924E-02   -.13401E-03
   2  alpha         .79143        .56341        .18592        .30689E-05
   3  Normalizat    .55918        .48152        .89443E-01    .30282E-04
   4  Prefactor     .26452        .16118        .36255E-01    .66218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80596
  alpha      = 0.791434
  Normalizat = 0.559181
  Prefactor  = 0.264518
 **********
 **   18 **HESSE 
 **********

 FCN=   914.2005     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8060        3.0305        .48281E-04   -1.5439    
   2  alpha         .79143        .68465        .81955E-03   -.75245    
   3  Normalizat    .55918        .52470        .39651E-03   -1.0975    
   4  Prefactor     .26452        .17631        .18723E-03   -1.2441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20403e-11
Minuit parameter uncertainties:
  1  3.03079
  2  0.701819
  3  0.529462
  4  0.176667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486615': 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) = 914.200458732
delta logL = 0.825402156315

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.806e+00  3.031e+00  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  7.914e-01  7.018e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  2.645e-01  1.767e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  5.592e-01  5.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 35.670 43.036
Photon Index (Free Index): 0.79 +/- 0.70
Photon Flux (Free Index): 1.53e-07 +/- 1.88e-07
Energy Flux (Free Index): 2.54e-03 +/- 4.40e-03

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/486615/cmap_HighResolution_627264001_627868801_4FGL_J0222.6+4302_weekly_bin642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-03', comment='SUCCESS', energy_flux2='2.54e-03', dlogl='8.25e-01', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-07-04 15:38:38.124073', photon_index_error2='0.70', photon_index2='0.79', ts='0.14', fit_tolerance='1e-08', GAL='0.27', photon_index_error='0.00', photon_flux_upper_limit='1.66e-06', energy_flux_error2='4.40e-03', EG='0.58', time_epoch_completed='1625438318.12', return_code='0', job_id='486615', GAL2='0.26', EG2='0.56', return_code2='0', photon_flux_error2='1.88e-07', ts2='1.82', photon_index='1.89' WHERE bin_id='642' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 15:38:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0160>
Subject: Job 486615: <4FGL_J0222.6+4302_weekly_bin642> in cluster <slac> Done

Job <4FGL_J0222.6+4302_weekly_bin642> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 15:23:06 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 15:23:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 15:23:08 2021
Terminated at Sun Jul  4 15:38:42 2021
Results reported at Sun Jul  4 15:38:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_weekly_bin642 35.6696 43.0357 627264001 627868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0222.6+4302 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   434.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             224.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

