aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 127 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 = 7445
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1673
RA = 35.6696, Dec = 43.0357
tmin = 672969601, tmax = 673228801
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='351102', job_status='RUN', time_executed='2022-05-03 00:10:01.578481', time_epoch_executed='1651561801.58' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351102/ft1_4FGL_J0222.6+4302_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351102/ft1_4FGL_J0222.6+4302_daily_bin1673.fits outfile=/scratch/kocevski/351102/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1673.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=672969601.0 tmax=673228801.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 3.07
user 2.80
sys 0.20

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

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

Number of photons that the gtmktime cut: 116

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351102/ft1_filtered_4FGL_J0222.6+4302_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351102/ltcube_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.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/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits
.....................!
real 16.28
user 15.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351102/ft1_filtered_4FGL_J0222.6+4302_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351102/ltcube_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.fits outfile=/scratch/kocevski/351102/expmap_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.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/351102/ltcube_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.fits
.....................!
real 193.27
user 187.15
sys 5.60

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/351102/ft1_filtered_4FGL_J0222.6+4302_daily_bin1673.fits scfile=/scratch/kocevski/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits outfile=/scratch/kocevski/351102/cmap_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.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 0.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351102/ft1_filtered_4FGL_J0222.6+4302_daily_bin1673.fits scfile=/scratch/kocevski/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits outfile=/scratch/kocevski/351102/cmap_HighResolution_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.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.59
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351102/ft1_filtered_4FGL_J0222.6+4302_daily_bin1673.fits', '/scratch/kocevski/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits', expMap='/scratch/kocevski/351102/expmap_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.fits', expCube='/scratch/kocevski/351102/ltcube_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351102/Model_4FGL_J0222.6+4302_daily_bin1673.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/351102/ft1_filtered_4FGL_J0222.6+4302_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351102/ft2_4FGL_J0222.6+4302_daily_bin1673.fits
Exposure map: /scratch/kocevski/351102/expmap_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351102/ltcube_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351102/Model_4FGL_J0222.6+4302_daily_bin1673.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1268.16898687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.175       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.582       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25850E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11712E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60505E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .22710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3234       1.0000         .10000E-03   10000.    
    12 'norm      '    .17883E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70164E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9999.6       1.0000         .10000E-03   10000.    
    16 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    17 'Prefactor '    105.39       1.0000         .10000E-03   10000.    
    18 'norm      '    110.75       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.544       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .93231E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    2.4214       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .54135       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=   1210.130     FROM MIGRAD    STATUS=CONVERGED    299 CALLS     1737 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.055        47.336       -.56737E-05    .36834E-04
   2  Prefactor     12.630        83.521        .13382E-05   -.66832E-05
   3  norm          .10000E-03    .85752        .28196E-06** at limit **
   4  norm          .10000E-03    4.1709        .45183E-06** at limit **
   5  Prefactor     .10000E-03    10.664       -.97592E-06** at limit **
   6  Prefactor     .10000E-03    8.4203        .21612E-06** at limit **
   7  Prefactor     .10000E-03    45.191       -.23627E-05** at limit **
   8  Prefactor     .10000E-03    54.465       -.52829E-06** at limit **
   9  Prefactor     .10000E-03    21.940        .73988E-07** at limit **
  10  norm          .10000E-03    104.39       -.29441E-04** at limit **
  11  Prefactor     .10000E-03    178.83        .91670E-05** at limit **
  12  norm          .10000E-03    16.055        .57546E-07** at limit **
  13  norm          .10000E-03    2.9027       -.89591E-06** at limit **
  14  Prefactor     .10000E-03    629.93        .14478E-04** at limit **
  15  Prefactor    10000.0        1036.0       -.78262E-04** at limit **
  16  norm          10000.        326.42       -.10461E-04** at limit **
  17  Prefactor    10000.0        6516.6       -.78177E-05** at limit **
  18  norm          114.55        164.14        .80898E-05   -.36931E-05
  19  Prefactor     .10000E-03    3.0529       -.10008E-05** at limit **
  20  norm          21.420        15.488        .83048E-06    .16691E-04
  21  Prefactor     .10000E-03    19.817        .48003E-07** at limit **
  22  Prefactor     .10000E-03    89.983       -.11488E-04** at limit **
  23  norm          2.3954        1.4034        .23430E-05   -.60184E-03
  24  Normalizat    .10000E-01    .81025E-01   -.96975E-05** at limit **
  25  Prefactor     .53670        .96674E-01   -.18497E-05    .58809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.0554
  Prefactor  = 12.6302
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 114.548
  Prefactor  = 0.0001
  norm       = 21.4202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39537
  Normalizat = 0.01
  Prefactor  = 0.536696
 **********
 **   18 **HESSE 
 **********

 FCN=   1210.130     FROM HESSE     STATUS=OK           473 CALLS     2210 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.055        48.946        .16658E-02   -1.4523    
   2  Prefactor     12.630        81.822        .29429E-02   -1.6419    
   3  norm          .10000E-03    .85610        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.9067        .15303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.161        .10726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.292        .10328E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.648        .10530E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    103.27        .10101E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    177.50        .55510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.035        .10163E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    630.05        .93480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        1036.0        .10748E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10000.        333.58        .95568E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        6488.7        .97928E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          114.55        163.58        .95553E-03   -1.3563    
  19  Prefactor     .10000E-03    3.0368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.420        15.444        .21574E-02   -1.4782    
  21  Prefactor     .10000E-03    19.132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    88.919        .91020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3954        1.3976        .65758E-02   -1.5398    
  24  Normalizat    .10000E-01    .79568E-01    .13773       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .53670        .96716E-01    .29817E-01   -1.1032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81521e-11
Minuit parameter uncertainties:
  1  49.0023
  2  64.423
  3  1.22016e-06
  4  1.34833e-05
  5  1.26423e-05
  6  1.708e-05
  7  2.2853e-05
  8  9.33495e-05
  9  9.46312e-07
  10  0.000393258
  11  0.000875713
  12  1.04016e-05
  13  5.02663e-06
  14  0.000626064
  15  0.00449681
  16  9.98209e-06
  17  0.00573918
  18  164.227
  19  2.0706e-06
  20  15.4466
  21  6.34125e-07
  22  0.000224037
  23  1.39757
  24  1.0803e-07
  25  0.0967455
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  5.027e-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:  5.367e-01  9.675e-02  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.000e-02  1.080e-07  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.86e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351102/likelihoodResults_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.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) = 1210.13170626
delta logL = -0.00156006888164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1210.13014617
delta logL = 2.55904524238e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8838       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53668       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=   1210.130     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      243 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    86.979        .58051E-02** at limit **
   2  alpha         1.5876        3.2916        .50000       -.21757E-06
   3  Normalizat    .10000E-01    .47573E-02    .60131E-03** at limit **
   4  Prefactor     .53670        .21278E-01    .13177E-03    .43786E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.58762
  Normalizat = 0.01
  Prefactor  = 0.536695
 **********
 **   18 **HESSE 
 **********

 FCN=   1210.130     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      270 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    557.90        .59947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5876        2.8978        .50000       -.37358    
   3  Normalizat    .10000E-01    .46002E-01    .12026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .53670        .66204E-01    .52708E-05   -1.1032    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85603e-08
Minuit parameter uncertainties:
  1  1.806e-06
  2  2097.64
  3  2.06752e-08
  4  0.0662135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351102': 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) = 1210.13014496
delta logL = 1.23332893054e-06

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  1.806e-06  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.588e+00  2.098e+03  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:  5.367e-01  6.621e-02  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.000e-02  2.068e-08  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/351102/cmap_HighResolution_672969601_673228801_4FGL_J0222.6+4302_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-03', job_status='DONE', photon_flux_upper_limit='1.86e-06', time_completed='2022-05-03 00:16:38.822760', job_id='351102', GAL2='0.54', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651562198.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1673' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:16:38 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 351201: <4FGL_J0222.6+4302_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:40 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:08:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:08:38 2022
Terminated at Tue May  3 00:15:42 2022
Results reported at Tue May  3 00:15:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1673 35.6696 43.0357 672969601 673228801 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 :                                   397.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   424 sec.
    Turnaround time :                            602 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 351102: <4FGL_J0222.6+4302_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:34 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:44 2022
Terminated at Tue May  3 00:16:39 2022
Results reported at Tue May  3 00:16:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1673 35.6696 43.0357 672969601 673228801 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 :                                   400.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            665 sec.

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

