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


Performing analysis on: 4FGL_J0222.6+4302_weekly_bin517
RA = 35.6696, Dec = 43.0357
tmin = 551664001, tmax = 552268801
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='486442', job_status='RUN', time_executed='2021-07-04 15:25:35.244189', time_epoch_executed='1625437535.24' WHERE source_name='4FGL J0222.6+4302' and cadence='weekly' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486442

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486442/ft1_4FGL_J0222.6+4302_weekly_bin517.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486442/ft2_4FGL_J0222.6+4302_weekly_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486442/ft1_4FGL_J0222.6+4302_weekly_bin517.fits outfile=/scratch/kocevski/486442/ft1_filteredMKT_4FGL_J0222.6+4302_weekly_bin517.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=551664001.0 tmax=552268801.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 11.93
user 7.73
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486442/ft1_filtered_4FGL_J0222.6+4302_weekly_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/486442/ft2_4FGL_J0222.6+4302_weekly_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/486442/ltcube_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.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/486442/ft2_4FGL_J0222.6+4302_weekly_bin517.fits
.....................!
real 27.04
user 25.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486442/ft1_filtered_4FGL_J0222.6+4302_weekly_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/486442/ft2_4FGL_J0222.6+4302_weekly_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/486442/ltcube_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.fits outfile=/scratch/kocevski/486442/expmap_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.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/486442/ltcube_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.fits
.....................!
real 198.83
user 186.10
sys 5.20

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/486442/ft1_filtered_4FGL_J0222.6+4302_weekly_bin517.fits scfile=/scratch/kocevski/486442/ft2_4FGL_J0222.6+4302_weekly_bin517.fits outfile=/scratch/kocevski/486442/cmap_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.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.52
user 0.38
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486442/ft1_filtered_4FGL_J0222.6+4302_weekly_bin517.fits scfile=/scratch/kocevski/486442/ft2_4FGL_J0222.6+4302_weekly_bin517.fits outfile=/scratch/kocevski/486442/cmap_HighResolution_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.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.21
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40476E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    121.75       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7457       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.346       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.189       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0287       1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9763       1.0000         .10000E-03   10000.    
    16 'norm      '    18.666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.510       1.0000         .10000E-03   10000.    
    18 'norm      '    112.98       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .32507E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    82.712       1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.066       1.0000         .10000E-03   10000.    
    23 'norm      '    5.5515       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60806       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86220       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=   5806.904     FROM MIGRAD    STATUS=CONVERGED    267 CALLS     2238 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    271.86       -.58219E-04** at limit **
   2  Prefactor     117.25        111.03        .42696E-05    .16366E-05
   3  norm          3.7607        2.0531       -.16111E-06   -.11755E-04
   4  norm          .10000E-03    .80867       -.13541E-06** at limit **
   5  Prefactor     .10000E-03    7.9282        .10359E-05** at limit **
   6  Prefactor     .10000E-03    2.4644       -.39167E-06** at limit **
   7  Prefactor     .10000E-03    9.5715        .45014E-07** at limit **
   8  Prefactor     43.875        75.179        .13336E-04   -.21783E-04
   9  Prefactor     16.299        9.5493       -.14843E-05    .33757E-04
  10  norm          1.9755        3.6254        .98144E-06    .62935E-04
  11  Prefactor     17.958        14.343        .12686E-05    .28700E-04
  12  norm          2.0159        .97576       -.26394E-06    .27683E-03
  13  norm          .10000E-03    .37927       -.45557E-06** at limit **
  14  Prefactor     2329.4        6156.5       -.22088E-03   -.18480E-05
  15  Prefactor     3.9159        19.087        .28261E-05    .11720E-03
  16  norm          17.759        22.523        .16430E-05    .11137E-03
  17  Prefactor     44.926        45.630       -.51095E-05    .38004E-04
  18  norm          100.93        157.58       -.14874E-04    .35712E-05
  19  Prefactor     .10000E-03    6.5916       -.19319E-05** at limit **
  20  norm          .10000E-03    112.38        .24607E-04** at limit **
  21  Prefactor     82.606        36.209       -.23541E-05    .14264E-04
  22  Prefactor     65.267        113.99       -.70705E-05   -.29418E-04
  23  norm          5.4934        1.6989       -.31526E-06   -.11793E-03
  24  Normalizat    .60091        .37759       -.99318E-05   -.88277E-05
  25  Prefactor     .86225        .14674        .55563E-05    .74607E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 117.25
  norm       = 3.76073
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8747
  Prefactor  = 16.299
  norm       = 1.97552
  Prefactor  = 17.9577
  norm       = 2.01593
  norm       = 0.0001
  Prefactor  = 2329.41
  Prefactor  = 3.9159
  norm       = 17.7587
  Prefactor  = 44.9259
  norm       = 100.926
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 82.6056
  Prefactor  = 65.2671
  norm       = 5.4934
  Normalizat = 0.600913
  Prefactor  = 0.862251
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.904     FROM HESSE     STATUS=OK           493 CALLS     2731 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    272.55        .97399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     117.25        111.14        .91186E-03   -1.3538    
   3  norm          3.7607        2.0557        .52155E-02   -1.5320    
   4  norm          .10000E-03    .80850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3912        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.875        74.638        .14101E-02   -1.4382    
   9  Prefactor     16.299        9.5714        .24766E-02   -1.4900    
  10  norm          1.9755        3.6678        .73930E-02   -1.5427    
  11  Prefactor     17.958        14.437        .24151E-02   -1.4860    
  12  norm          2.0159        .98726        .72616E-02   -1.5424    
  13  norm          .10000E-03    .23055        .18824E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2329.4        6156.6        .47519E-02   -.56346    
  15  Prefactor     3.9159        23.332        .58835E-02   -1.5312    
  16  norm          17.759        24.775        .23176E-02   -1.4865    
  17  Prefactor     44.926        45.744        .14858E-02   -1.4366    
  18  norm          100.93        158.15        .94617E-03   -1.3695    
  19  Prefactor     .10000E-03    6.5663        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.547        .91844E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     82.606        36.337        .11041E-02   -1.3888    
  22  Prefactor     65.267        112.79        .13393E-02   -1.4090    
  23  norm          5.4934        1.6679        .42629E-02   -1.5239    
  24  Normalizat    .60091        .36892        .12069       -1.0795    
  25  Prefactor     .86225        .13957        .44521E-01   -.97473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04313e-09
Minuit parameter uncertainties:
  1  0.00216336
  2  111.34
  3  2.05573
  4  4.00164e-07
  5  3.13722e-06
  6  3.45013e-06
  7  3.19567e-06
  8  74.7979
  9  9.57229
  10  3.66819
  11  14.4402
  12  0.987265
  13  8.65365e-09
  14  4598.95
  15  19.128
  16  24.789
  17  45.7799
  18  158.813
  19  1.2984e-05
  20  0.000195892
  21  36.3463
  22  113.157
  23  1.66787
  24  0.370448
  25  0.13963
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.000e-04  8.654e-09  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:  8.623e-01  1.396e-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:  6.009e-01  3.704e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486442/likelihoodResults_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.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) = 5806.46749982
delta logL = 0.43641004525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5806.40087058
delta logL = 0.503039286185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17281E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3147       1.0000          .0000       5.0000    
     3 'Normalizat'    .49972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88521       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=   5806.401     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      311 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17384E-01    .29693        .23014E-02    .17725E-02
   2  alpha         4.3126        4.6561        .48809        .35769E-04
   3  Normalizat    .49945        .63382E-01    .13149       -.31930E-05
   4  Prefactor     .88533        .27377E-01    .44816E-01   -.29170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0173839
  alpha      = 4.31258
  Normalizat = 0.499451
  Prefactor  = 0.885333
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.401     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      344 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17384E-01    .92489        .10421E-03   -1.5682    
   2  alpha         4.3126        3.2145        .22924E-01    .81108    
   3  Normalizat    .49945        .23622        .58336E-03   -1.1244    
   4  Prefactor     .88533        .10202        .19103E-03   -.96656    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.61843e-10
Minuit parameter uncertainties:
  1  0.252873
  2  7.07085
  3  0.236691
  4  0.102038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486442': 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) = 5806.40086871
delta logL = 0.50304115677

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.738e-02  2.529e-01  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  4.313e+00  7.071e+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:  8.853e-01  1.020e-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:  4.995e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 35.670 43.036
Photon Index (Free Index): 4.31 +/- 7.07
Photon Flux (Free Index): 1.90e-07 +/- 2.40e-07
Energy Flux (Free Index): 2.78e-05 +/- 2.80e-05

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/486442/cmap_HighResolution_551664001_552268801_4FGL_J0222.6+4302_weekly_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-05', comment='SUCCESS', energy_flux2='2.78e-05', dlogl='5.03e-01', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-07-04 15:38:45.239415', photon_index_error2='7.07', photon_index2='4.31', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='2.80e-05', EG='0.60', time_epoch_completed='1625438325.24', return_code='0', job_id='486442', GAL2='0.89', EG2='0.50', return_code2='102', photon_flux_error2='2.40e-07', ts2='1.10', photon_index='1.89' WHERE bin_id='517' AND source_name='4FGL J0222.6+4302' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 15:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 486442: <4FGL_J0222.6+4302_weekly_bin517> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_weekly_bin517 35.6696 43.0357 551664001 552268801 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 :                                   702.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             303.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

