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


Performing analysis on: 4FGL_J0222.0-1616_weekly_bin279
RA = 35.5197, Dec = -16.2787
tmin = 407721601, tmax = 408326401
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='478120', job_status='RUN', time_executed='2021-07-04 15:05:15.236539', time_epoch_executed='1625436315.24' WHERE source_name='4FGL J0222.0-1616' and cadence='weekly' and bin_id='279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478120

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478120/ft1_4FGL_J0222.0-1616_weekly_bin279.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478120/ft1_4FGL_J0222.0-1616_weekly_bin279.fits outfile=/scratch/kocevski/478120/ft1_filteredMKT_4FGL_J0222.0-1616_weekly_bin279.fits ra=35.5197 dec=-16.2787 rad=12.0 tmin=407721601.0 tmax=408326401.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.80
user 8.18
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.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/478120/ft1_filteredMKT_4FGL_J0222.0-1616_weekly_bin279.fits evtable="EVENTS" outfile="/scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.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.74
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits" evtable="EVENTS" scfile=/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits sctable="SC_DATA" outfile=/scratch/kocevski/478120/ltcube_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.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/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits
.....................!
real 27.37
user 25.70
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits evtable="EVENTS" scfile=/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits sctable="SC_DATA" expcube=/scratch/kocevski/478120/ltcube_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.fits outfile=/scratch/kocevski/478120/expmap_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.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/478120/ltcube_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.fits
.....................!
real 195.48
user 185.33
sys 4.94

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

Setting source of interest to:
4FGL J0222.0-1616 @ 35.5197 -16.2787

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits scfile=/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits outfile=/scratch/kocevski/478120/cmap_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.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.5197 yref=-16.2787 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 1.39
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits scfile=/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits outfile=/scratch/kocevski/478120/cmap_HighResolution_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.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.5197 yref=-16.2787 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 1.07
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits evtable="EVENTS" scfile=/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478120/Model_4FGL_J0222.0-1616_weekly_bin279.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/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits.....................!
real 61.34
user 51.75
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits', '/scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits', expMap='/scratch/kocevski/478120/expmap_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.fits', expCube='/scratch/kocevski/478120/ltcube_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478120/Model_4FGL_J0222.0-1616_weekly_bin279.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.0-1616'

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  2.143e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478120/ft1_filtered_4FGL_J0222.0-1616_weekly_bin279.fits
Spacecraft file(s): /scratch/kocevski/478120/ft2_4FGL_J0222.0-1616_weekly_bin279.fits
Exposure map: /scratch/kocevski/478120/expmap_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.fits
Exposure cube: /scratch/kocevski/478120/ltcube_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478120/Model_4FGL_J0222.0-1616_weekly_bin279.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) = 5725.66886985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.939       1.0000         .10000E-03   10000.    
     3 'norm      '    .58714       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5308       1.0000         .10000E-03   10000.    
    10 'norm      '    .10745E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7042       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.605       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.407       1.0000         .10000E-03   10000.    
    16 'norm      '    .53422       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.917       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98748       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5725.660     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2244 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0382        1.5603        .17422E-06    .17960E-04
   2  Prefactor     45.938        48.038       -.25194E-06   -.17663E-04
   3  norm          .58672        2.0058        .22589E-06   -.40639E-03
   4  Prefactor     4.8178        3.4532        .66680E-07   -.12186E-04
   5  Prefactor     14.648        12.220        .11665E-07   -.20458E-04
   6  Prefactor     .10000E-03    7.4420        .19553E-06** at limit **
   7  Prefactor     3.4383        3.9905       -.55487E-06   -.17496E-03
   8  Prefactor     .10000E-03    3.4842        .11878E-06** at limit **
   9  Prefactor     1.5294        47.618        .38635E-06   -.33611E-04
  10  norm          .10000E-03    85.161       -.40728E-05** at limit **
  11  Prefactor     6.7052        6.5517        .38068E-05    .62291E-03
  12  Prefactor     .10000E-03    22.076        .72150E-05** at limit **
  13  Prefactor     40.605        17.605        .55614E-08   -.22799E-04
  14  Prefactor     .10000E-03    23.052       -.92626E-05** at limit **
  15  Prefactor     16.406        19.046       -.45617E-07   -.25190E-04
  16  norm          .53432        1.4545        .15947E-06   -.36700E-03
  17  Prefactor     3.2010        4.1467        .15120E-05   -.23180E-02
  18  Prefactor     .10000E-03    40.669        .44745E-05** at limit **
  19  Prefactor     15.918        15.059       -.80274E-07   -.32983E-04
  20  Normalizat    .98754        .17093       -.14997E-05    .98042E-04
  21  Prefactor     .72284        .16126        .27120E-06   -.38568E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0382
  Prefactor  = 45.9379
  norm       = 0.586719
  Prefactor  = 4.81777
  Prefactor  = 14.6478
  Prefactor  = 0.0001
  Prefactor  = 3.43832
  Prefactor  = 0.0001
  Prefactor  = 1.52938
  norm       = 0.0001
  Prefactor  = 6.70519
  Prefactor  = 0.000100001
  Prefactor  = 40.6054
  Prefactor  = 0.000100003
  Prefactor  = 16.4063
  norm       = 0.534318
  Prefactor  = 3.201
  Prefactor  = 0.000100001
  Prefactor  = 15.9176
  Normalizat = 0.987542
  Prefactor  = 0.722843
 **********
 **   18 **HESSE 
 **********

 FCN=   5725.660     FROM HESSE     STATUS=OK           329 CALLS     2573 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0382        1.3932        .11159E-02   -1.5504    
   2  Prefactor     45.938        48.086        .59156E-04   -1.4351    
   3  norm          .58672        2.0527        .18284E-02   -1.5555    
   4  Prefactor     4.8178        3.4550        .11490E-03   -1.5269    
   5  Prefactor     14.648        12.236        .10465E-03   -1.4942    
   6  Prefactor     .10000E-03    7.4584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4383        3.9925        .15388E-03   -1.5337    
   8  Prefactor     .10000E-03    3.5094        .13791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5294        48.291        .34496E-03   -1.5461    
  10  norm          .10000E-03    86.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7052        6.5948        .15497E-03   -1.5190    
  12  Prefactor     .10000E-03    22.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.605        17.603        .62905E-04   -1.4433    
  14  Prefactor     .10000E-03    23.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.406        19.065        .98879E-04   -1.4898    
  16  norm          .53432        1.4307        .14088E-03   -1.5562    
  17  Prefactor     3.2010        7.5331        .11323E-02   -1.5350    
  18  Prefactor     .10000E-03    40.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.918        15.090        .10039E-03   -1.4910    
  20  Normalizat    .98754        .19994        .22055E-03   -.93449    
  21  Prefactor     .72284        .18922        .25567E-03   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01031e-08
Minuit parameter uncertainties:
  1  1.39327
  2  48.127
  3  2.0529
  4  3.45511
  5  12.2382
  6  1.00228e-05
  7  3.9928
  8  5.13183e-06
  9  17.2025
  10  0.000280767
  11  6.59547
  12  0.000344572
  13  17.6057
  14  0.000568188
  15  19.0723
  16  1.43084
  17  7.53533
  18  0.000299495
  19  15.0937
  20  0.200092
  21  0.189385
Done.

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

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  5.132e-06  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  7.228e-01  1.894e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  9.875e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.520 -16.279
Photon Flux Upper Limit: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478120/likelihoodResults_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.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): 102
logL (Free Index) = 5725.66103998
delta logL = -0.0013565908157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5725.65968329
delta logL = 9.97979441308e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3693       1.0000          .0000       10.000    
     3 'Normalizat'    .98750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   5725.660     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      230 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    28.604        .14477E-02** at limit **
   2  Index         2.3053        7.0440        .50000        .67062E-04
   3  Normalizat    .98754        .10637E-01    .22055E-03   -.19622E-03
   4  Prefactor     .72284        .10757E-01    .25567E-03   -.13327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101832
  Index      = 2.3053
  Normalizat = 0.98754
  Prefactor  = 0.722845
 **********
 **   18 **HESSE 
 **********

 FCN=   5725.660     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      259 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10183E-03    119.21        .28955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3053        6.0159        .50000       -.56918    
   3  Normalizat    .98754        .22295E-01    .44110E-04   -.93449    
   4  Prefactor     .72284        .22546E-01    .10227E-04   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.30836e-08
Minuit parameter uncertainties:
  1  0.0296186
  2  240.986
  3  0.022295
  4  0.0225468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478120': 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): 102
logL (Free Index) = 5725.65968182
delta logL = 1.57245176524e-06

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  1.018e-04  2.962e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.305e+00  2.410e+02  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  7.228e-01  2.255e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  9.875e-01  2.230e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.520 -16.279

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/478120/cmap_HighResolution_407721601_408326401_4FGL_J0222.0-1616_weekly_bin279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-07-04 15:16:45.743647', job_id='478120', GAL2='0.72', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1625437005.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='279' AND source_name='4FGL J0222.0-1616' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 15:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 478120: <4FGL_J0222.0-1616_weekly_bin279> in cluster <slac> Done

Job <4FGL_J0222.0-1616_weekly_bin279> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jul  4 15:01:54 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 15:01:56 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:01:56 2021
Terminated at Sun Jul  4 15:16:49 2021
Results reported at Sun Jul  4 15:16:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.0-1616_weekly_bin279 35.5197 -16.2787 407721601 408326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0222.0-1616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   625.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             287.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

