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


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin589
RA = 35.6696, Dec = 43.0357
tmin = 595209601, tmax = 595814401
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='486544', job_status='RUN', time_executed='2021-07-04 15:27:40.455583', time_epoch_executed='1625437660.46' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486544

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486544/ft1_4FGL_J0222.6+4302_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486544/ft1_4FGL_J0222.6+4302_weekly_bin589.fits outfile=/scratch/kocevski/486544/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin589.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=595209601.0 tmax=595814401.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 6.47
user 5.51
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/486544/ltcube_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.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/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits
.....................!
real 28.39
user 27.27
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/486544/ltcube_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.fits outfile=/scratch/kocevski/486544/expmap_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.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/486544/ltcube_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.fits
.....................!
real 197.72
user 186.90
sys 5.44

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/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits scfile=/scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits outfile=/scratch/kocevski/486544/cmap_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.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 1.30
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits scfile=/scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits outfile=/scratch/kocevski/486544/cmap_HighResolution_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.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 1.18
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486544/Model_4FGL_J0222.6+4302_weekly_bin589.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/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits............................!
real 31.39
user 20.97
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits', '/scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits', expMap='/scratch/kocevski/486544/expmap_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.fits', expCube='/scratch/kocevski/486544/ltcube_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/486544/Model_4FGL_J0222.6+4302_weekly_bin589.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/486544/ft1_filtered_4FGL_J0222.6+4302_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/486544/ft2_4FGL_J0222.6+4302_weekly_bin589.fits
Exposure map: /scratch/kocevski/486544/expmap_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.fits
Exposure cube: /scratch/kocevski/486544/ltcube_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/486544/Model_4FGL_J0222.6+4302_weekly_bin589.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) = 649.705454744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30657E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.129       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.6826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11202E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12136E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32755E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30107E-02   1.0000         .10000E-03   10000.    
    16 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24253E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1835.9       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1971       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .29384E-01   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.

 FCN=   649.6330     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2917 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    725.71       -.38057E-04** at limit **
   2  Prefactor     95.114        108.00       -.94951E-05    .56476E-04
   3  norm          .10000E-03    1.1044        .45387E-07** at limit **
   4  norm          5.6831        2.9645        .17243E-06    .10346E-02
   5  Prefactor     .10000E-03    34.780        .12444E-04** at limit **
   6  Prefactor     .10000E-03    35.388       -.17050E-04** at limit **
   7  Prefactor     .10000E-03    158.22       -.11118E-03** at limit **
   8  Prefactor     .10000E-03    188.38       -.54858E-04** at limit **
   9  Prefactor     .10000E-03    71.561       -.25823E-04** at limit **
  10  norm          .10000E-03    233.78        .77103E-04** at limit **
  11  Prefactor     .10000E-03    264.00        .15482E-03** at limit **
  12  norm          .10000E-03    19.214        .50211E-07** at limit **
  13  norm          .10000E-03    7.0923        .59698E-07** at limit **
  14  Prefactor     .10000E-03    1334.8       -.47536E-04** at limit **
  15  Prefactor     .10000E-03    7395.4       -.81871E-03** at limit **
  16  norm         10000.0        6724.8        .78372E-03** at limit **
  17  Prefactor     .10000E-03    9961.0       -.18414E-02** at limit **
  18  norm          1835.7        976.28       -.50188E-04    .13366E-04
  19  Prefactor     .10000E-03    40.996        .70657E-05** at limit **
  20  norm          .10000E-03    92.623        .59258E-04** at limit **
  21  Prefactor     .10000E-03    2289.0       -.11023E-02** at limit **
  22  Prefactor     .10000E-03    8841.0       -.17419E-02** at limit **
  23  norm          .10000E-03    20.042        .26309E-07** at limit **
  24  Normalizat    1.1974        .71172        .75103E-05    .12756E-03
  25  Prefactor     .29254E-01    .21101        .75052E-06    .10270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 95.1137
  norm       = 0.0001
  norm       = 5.68308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 1835.69
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19741
  Prefactor  = 0.0292545
 **********
 **   18 **HESSE 
 **********

 FCN=   649.6330     FROM HESSE     STATUS=OK           403 CALLS     3320 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    736.69        .36701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     95.114        109.30        .41208E-04   -1.3754    
   3  norm          .10000E-03    1.1063        .26165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.6831        2.9560        .27395E-04   -1.5231    
   5  Prefactor     .10000E-03    34.790        .14692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.627        .14812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    158.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    188.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    71.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    233.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    263.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    19.216        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0963        .66316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1334.9        .21352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7395.6        .19825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        6724.7        .19626E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9961.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1835.7        972.29        .51660E-04   -.68524    
  19  Prefactor     .10000E-03    40.999        .15954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    92.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2289.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8841.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.042        .11151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1974        .61410        .26778E-03   -.86683    
  25  Prefactor     .29254E-01    .14126        .36290E-03   -1.4626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77514e-10
Minuit parameter uncertainties:
  1  0.00078297
  2  109.536
  3  4.68208e-07
  4  2.95606
  5  1.3926e-06
  6  2.57776e-05
  7  5.35841e-05
  8  1.32588e-05
  9  3.26144e-06
  10  4.87233e-05
  11  2.77031e-06
  12  3.54703e-06
  13  4.34675e-06
  14  0.00191958
  15  0.007194
  16  0.00157489
  17  0.00131389
  18  982.811
  19  9.34143e-05
  20  9.71057e-06
  21  3.16136e-05
  22  8.72822e-05
  23  3.51926e-07
  24  0.61785
  25  0.129065
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  4.347e-06  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.925e-02  1.291e-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:  1.197e+00  6.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/486544/likelihoodResults_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.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) = 649.633415889
delta logL = -0.00042123485423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 649.632995716
delta logL = -1.06170114123e-06

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 'alpha     '    1.9034       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29320E-01   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=   649.6330     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7254        .90712E-02** at limit **
   2  alpha         1.9159        3.4039        .42740       -.84448E-05
   3  Normalizat    1.1974        .64623        .60559E-01   -.20423E-05
   4  Prefactor     .29254E-01    .18198        .83262E-01    .21585E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91586
  Normalizat = 1.19741
  Prefactor  = 0.0292536
 **********
 **   18 **HESSE 
 **********

 FCN=   649.6330     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1558        .66663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9159        3.3886        .50000       -.23584    
   3  Normalizat    1.1974        .53442        .26778E-03   -.86683    
   4  Prefactor     .29254E-01    .12834        .36290E-03   -1.4626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21733e-11
Minuit parameter uncertainties:
  1  8.69795e-06
  2  2.43166
  3  0.536881
  4  0.122994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486544': 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) = 649.63299458
delta logL = 7.37309164833e-08

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  8.698e-06  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.916e+00  2.432e+00  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.925e-02  1.230e-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:  1.197e+00  5.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.670 43.036

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/486544/cmap_HighResolution_595209601_595814401_4FGL_J0222.6+4302_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', job_status='DONE', photon_flux_upper_limit='4.02e-06', time_completed='2021-07-04 15:35:38.385134', job_id='486544', GAL2='0.03', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1625438138.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.03', dlogl='7.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='589' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 15:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 486544: <4FGL_J0222.6+4302_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0222.6+4302_weekly_bin589> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 15:22:59 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 15:23:00 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:00 2021
Terminated at Sun Jul  4 15:35:45 2021
Results reported at Sun Jul  4 15:35:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_weekly_bin589 35.6696 43.0357 595209601 595814401 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 :                                   404.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            766 sec.

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

