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


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin508
RA = 35.6696, Dec = 43.0357
tmin = 546220801, tmax = 546825601
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='486428', job_status='RUN', time_executed='2021-07-04 15:26:10.168178', time_epoch_executed='1625437570.17' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486428

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486428/ft1_4FGL_J0222.6+4302_weekly_bin508.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486428/ft2_4FGL_J0222.6+4302_weekly_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486428/ft1_4FGL_J0222.6+4302_weekly_bin508.fits outfile=/scratch/kocevski/486428/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin508.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=546220801.0 tmax=546825601.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 9.65
user 7.90
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486428/ft2_4FGL_J0222.6+4302_weekly_bin508.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/486428/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/486428/ft1_filtered_4FGL_J0222.6+4302_weekly_bin508.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.42
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486428/ft1_filtered_4FGL_J0222.6+4302_weekly_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/486428/ft2_4FGL_J0222.6+4302_weekly_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/486428/ltcube_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.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/486428/ft2_4FGL_J0222.6+4302_weekly_bin508.fits
.....................!
real 31.80
user 29.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486428/ft1_filtered_4FGL_J0222.6+4302_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/486428/ft2_4FGL_J0222.6+4302_weekly_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/486428/ltcube_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.fits outfile=/scratch/kocevski/486428/expmap_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.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/486428/ltcube_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.fits
.....................!
real 202.23
user 186.21
sys 4.81

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/486428/ft1_filtered_4FGL_J0222.6+4302_weekly_bin508.fits scfile=/scratch/kocevski/486428/ft2_4FGL_J0222.6+4302_weekly_bin508.fits outfile=/scratch/kocevski/486428/cmap_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.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.16
user 0.44
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486428/ft1_filtered_4FGL_J0222.6+4302_weekly_bin508.fits scfile=/scratch/kocevski/486428/ft2_4FGL_J0222.6+4302_weekly_bin508.fits outfile=/scratch/kocevski/486428/cmap_HighResolution_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.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 4.10
user 0.43
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1133       1.0000         .10000E-03   10000.    
     4 'norm      '    .17983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38761E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.125       1.0000         .10000E-03   10000.    
    10 'norm      '    13.470       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8653       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14899E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    30.186       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6639       1.0000         .10000E-03   10000.    
    20 'norm      '    .68905       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0271       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53427E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.298       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4381       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3843.138     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     2574 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.351        2.2579        .16895E-05   -.48852E-02
   2  Prefactor     .10005E-03    66.017        .38027E-04** at limit **
   3  norm          5.1139        4.0987       -.52766E-06   -.26693E-04
   4  norm          .17530        6.5739        .80977E-05    .56914E-03
   5  Prefactor     16.519        1.0175       -.99073E-07    .15970E-03
   6  Prefactor     .10000E-03    3.5673        .40169E-06** at limit **
   7  Prefactor     .10000E-03    21.735        .34429E-05** at limit **
   8  Prefactor     .11232E-03    4.8667       -.27328E-04** at limit **
   9  Prefactor     25.128        1.0910       -.11664E-07    .58013E-03
  10  norm          13.468        3.4684        .11391E-04    .12087E-01
  11  Prefactor     .10000E-03    10.027       -.52176E-05** at limit **
  12  norm          .10000E-03    .75260        .72902E-06** at limit **
  13  norm          .10000E-03    .44823       -.56012E-07** at limit **
  14  Prefactor     .11284E-03    209.64       -.14020E-03** at limit **
  15  Prefactor     .10000E-03    9.5696        .10657E-05** at limit **
  16  norm          3.8581        2.4114       -.12018E-04    .62688E-03
  17  Prefactor     .96545E-02    19.057       -.69484E-04    .24902E-02
  18  norm          30.191        1.3007        .19844E-07    .21827E-03
  19  Prefactor     3.6639        4.1576        .42642E-05    .19815E-04
  20  norm          .71978        44.653        .15374E-03   -.27341E-03
  21  Prefactor     4.0832        8.1229        .20369E-04    .15161E-03
  22  Prefactor     .15686E-03    5.1884       -.30894E-04** at limit **
  23  norm          13.300        2.3911       -.39288E-06   -.90965E-04
  24  Normalizat    1.4379        .42534        .16455E-05    .63838E-04
  25  Prefactor     .97479        .15403       -.13434E-04   -.23704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.3508
  Prefactor  = 0.000100052
  norm       = 5.11389
  norm       = 0.175299
  Prefactor  = 16.5191
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000112318
  Prefactor  = 25.1279
  norm       = 13.468
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000112842
  Prefactor  = 0.000100002
  norm       = 3.85806
  Prefactor  = 0.00965446
  norm       = 30.1909
  Prefactor  = 3.66393
  norm       = 0.719785
  Prefactor  = 4.08315
  Prefactor  = 0.000156858
  norm       = 13.2996
  Normalizat = 1.43794
  Prefactor  = 0.974792
 **********
 **   18 **HESSE 
 **********

 FCN=   3843.138     FROM HESSE     STATUS=OK           495 CALLS     3069 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.351        116.32        .10345E-02   -1.3762    
   2  Prefactor     .10005E-03    66.212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1139        4.1016        .44450E-02   -1.5256    
   4  norm          .17530        1.9170        .42226E-01   -1.5624    
   5  Prefactor     16.519        21.148        .24637E-02   -1.4895    
   6  Prefactor     .10000E-03    3.5518        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11232E-03    494.42        .10639E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.128        22.267        .19979E-02   -1.4705    
  10  norm          13.468        8.3082        .27284E-02   -1.4974    
  11  Prefactor     .10000E-03    10.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .73942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .33840        .17412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11284E-03    229.51        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8581        13.776        .51313E-02   -1.5315    
  17  Prefactor     .96545E-02    1752.4        .90973E-02   -1.5688    
  18  norm          30.191        28.896        .18231E-02   -1.4608    
  19  Prefactor     3.6639        4.1801        .52756E-02   -1.5325    
  20  norm          .71978        8.6159        .97174E-01   -1.5538    
  21  Prefactor     4.0832        73.502        .50237E-02   -1.5304    
  22  Prefactor     .15686E-03    661.05        .10562E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.300        2.7510        .27460E-02   -1.4978    
  24  Normalizat    1.4379        .41218        .10179       -.79537    
  25  Prefactor     .97479        .14184        .45953E-01   -.93575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15052e-06
Minuit parameter uncertainties:
  1  116.605
  2  0.00372066
  3  4.10186
  4  1.15911
  5  21.1578
  6  0.000103863
  7  0.000388934
  8  0.157394
  9  22.2747
  10  8.3089
  11  0.0002632
  12  1.40657e-05
  13  8.2512e-06
  14  0.108998
  15  0.000256542
  16  13.7872
  17  8.44387
  18  28.9094
  19  4.18039
  20  4.98115
  21  34.6972
  22  0.392146
  23  2.751
  24  0.413136
  25  0.141891
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  8.251e-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:  9.748e-01  1.419e-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.438e+00  4.131e-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: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486428/likelihoodResults_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.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) = 3843.14810618
delta logL = -0.0103134817514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3843.13779555
delta logL = -2.86011663775e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10302E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9105       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97486       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=   3843.115     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      273 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77588E-03    .11364        .14870E-02** at limit **
   2  alpha         5.0000        3.6646        .42699    ** at limit **
   3  Normalizat    1.3973        .98765E-01    .10306       -.80742E-04
   4  Prefactor     .98240        .33088E-01    .45952E-01   -.11842E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000775882
  alpha      = 5
  Normalizat = 1.39727
  Prefactor  = 0.982395
 **********
 **   18 **HESSE 
 **********

 FCN=   3843.115     FROM HESSE     STATUS=OK            35 CALLS      308 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77588E-03    .59000E-02    .54784E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.5331        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3973        .47146        .45672E-03   -.80708    
   4  Prefactor     .98240        .15437        .18680E-03   -.93319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01562e-10
Minuit parameter uncertainties:
  1  0.00399384
  2  4.64622e-05
  3  0.472931
  4  0.154439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486428': 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) = 3843.11462946
delta logL = 0.0231632303862

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  7.759e-04  3.994e-03  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  5.000e+00  4.646e-05  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:  9.824e-01  1.544e-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.397e+00  4.729e-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/486428/cmap_HighResolution_546220801_546825601_4FGL_J0222.6+4302_weekly_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-04', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-07-04 15:38:12.000100', job_id='486428', GAL2='0.98', fit_tolerance='1e-08', EG2='1.40', EG='1.44', time_epoch_completed='1625438292.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.32e-02', ts2='0.05', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='508' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 15:38:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 486428: <4FGL_J0222.6+4302_weekly_bin508> in cluster <slac> Done

Job <4FGL_J0222.6+4302_weekly_bin508> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 15:22:48 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 15:22:50 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:22:50 2021
Terminated at Sun Jul  4 15:38:16 2021
Results reported at Sun Jul  4 15:38:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_weekly_bin508 35.6696 43.0357 546220801 546825601 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 :                                   634.15 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

