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


Performing analysis on: 4FGL_J0221.1+3556_weekly_bin588
RA = 35.281, Dec = 35.9359
tmin = 594604801, tmax = 595209601
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='468284', job_status='RUN', time_executed='2021-07-04 14:36:50.540017', time_epoch_executed='1625434610.54' WHERE source_name='4FGL J0221.1+3556' and cadence='weekly' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468284

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468284/ft1_4FGL_J0221.1+3556_weekly_bin588.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468284/ft1_4FGL_J0221.1+3556_weekly_bin588.fits outfile=/scratch/kocevski/468284/ft1_filteredMKT_4FGL_J0221.1+3556_weekly_bin588.fits ra=35.281 dec=35.9359 rad=12.0 tmin=594604801.0 tmax=595209601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.37
user 5.91
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.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/468284/ft1_filteredMKT_4FGL_J0221.1+3556_weekly_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.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 2.34
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/468284/ltcube_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.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/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits
.....................!
real 29.15
user 27.26
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/468284/ltcube_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.fits outfile=/scratch/kocevski/468284/expmap_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.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/468284/ltcube_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.fits
.....................!
real 203.11
user 188.56
sys 4.82

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0221.1+3556 @ 35.281 35.9359

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits scfile=/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits outfile=/scratch/kocevski/468284/cmap_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.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.281 yref=35.9359 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.89
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits scfile=/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits outfile=/scratch/kocevski/468284/cmap_HighResolution_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.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.281 yref=35.9359 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468284/Model_4FGL_J0221.1+3556_weekly_bin588.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits.....................!
real 27.33
user 20.66
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits', '/scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits', expMap='/scratch/kocevski/468284/expmap_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.fits', expCube='/scratch/kocevski/468284/ltcube_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468284/Model_4FGL_J0221.1+3556_weekly_bin588.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.1+3556'

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.936e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/468284/ft1_filtered_4FGL_J0221.1+3556_weekly_bin588.fits
Spacecraft file(s): /scratch/kocevski/468284/ft2_4FGL_J0221.1+3556_weekly_bin588.fits
Exposure map: /scratch/kocevski/468284/expmap_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.fits
Exposure cube: /scratch/kocevski/468284/ltcube_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468284/Model_4FGL_J0221.1+3556_weekly_bin588.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 800.989428603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 799.52668874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9899       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63355E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    152.95       1.0000         .10000E-03   10000.    
     7 'norm      '    .28413E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.194       1.0000         .10000E-03   10000.    
     9 'norm      '    .86888E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3502       1.0000         .10000E-03   10000.    
    11 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8835       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .19568E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .87634       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9791       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8560       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .54042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   799.5185     FROM MIGRAD    STATUS=CONVERGED    217 CALLS      617 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2764        .90712E-02** at limit **
   2  norm          .10000E-03    1.8064        .90712E-02** at limit **
   3  Prefactor     .10000E-03    17.381        .90712E-02** at limit **
   4  Prefactor     4.8699        13.840        .45007E-02    .43425E-01
   5  Prefactor     .10000E-03    77.085        .94286E-02** at limit **
   6  Prefactor     160.15        204.26        .81485E-03    .24288E-01
   7  norm          .10000E-03    22.031        .10706E-01** at limit **
   8  Prefactor     47.906        55.241        .14592E-02   -.14985E-03
   9  norm          .10000E-03    62.210        .10426E-01** at limit **
  10  Prefactor     .10001E-03    312.11        .55278E-02** at limit **
  11  norm          .10000E-03    3.0426        .90712E-02** at limit **
  12  norm          .44539        7505.7        .51188E-02    .53026E-02
  13  norm          .10000E-03    .62020        .90712E-02** at limit **
  14  Prefactor     .10000E-03    28.759        .90712E-02** at limit **
  15  norm          .10000E-03    29.624        .10124E-01** at limit **
  16  Prefactor     .10000E-03    235.05        .12721E-01** at limit **
  17  norm          8.8491        1.0016         .0000         .0000    
  18  Prefactor     8.2696        1.0018         .0000         .0000    
  19  norm          3.9791        1.0081         .0000         .0000    
  20  Prefactor     2.2115        1.1373       -.21740E-04   -.66620E-03
  21  Normalizat    .54055        .87482       -.32918E-04    .54034E-06
  22  Prefactor     1.0641        1.1744       -.12222E-04    .12960E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.86988
  Prefactor  = 0.000100001
  Prefactor  = 160.152
  norm       = 0.0001
  Prefactor  = 47.9056
  norm       = 0.000100001
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 0.445387
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84905
  Prefactor  = 8.26963
  norm       = 3.9791
  Prefactor  = 2.21149
  Normalizat = 0.540546
  Prefactor  = 1.06414
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   799.5185     FROM HESSE     STATUS=FAILED        43 CALLS      660 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8699        13.840        .45007E-02   -1.5267    
   5  Prefactor     .10000E-03    77.085        .94286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     160.15        204.26        .81485E-03   -1.3170    
   7  norm          .10000E-03    22.031        .10706E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.906        55.241        .14592E-02   -1.4323    
   9  norm          .10000E-03    62.210        .10426E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    312.11        .55278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .44539        7505.7        .51188E-02   -1.5575    
  13  norm          .10000E-03    .62020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    29.624        .10124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    235.05        .12721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          498.85        489.97         .0000       -1.5113    
  18  Prefactor     8.2696        1.0018         .0000       -1.5133    
  19  norm          3.9791        1.0081         .0000       -1.5309    
  20  Prefactor     2.2115        1.1373       -.21740E-04   -1.5411    
  21  Normalizat    .54055        .87482       -.32918E-04   -1.1057    
  22  Prefactor     1.0641        1.1744       -.12222E-04   -.90621    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.4164e-10
Minuit parameter uncertainties:
  1  1.12375e-05
  2  8.77508e-06
  3  4.80265e-05
  4  13.8488
  5  0.000615877
  6  205.177
  7  5.50077e-05
  8  55.2998
  9  0.000406953
  10  0.00380693
  11  4.11967e-07
  12  105.866
  13  2.53352e-06
  14  5.21569e-05
  15  9.03927e-05
  16  0.000219329
  17  1.0016
  18  1.00184
  19  1.00812
  20  1.13729
  21  0.898733
  22  1.20478
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 799.5184502

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.000e-04  4.120e-07  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.064e+00  1.205e+00  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  5.405e-01  8.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.281 35.936
Photon Flux Upper Limit: 1.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468284/likelihoodResults_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.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) = 799.519606018
delta logL = -0.00115581819387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 799.51845048
delta logL = -2.8002932595e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2453       1.0000          .0000       5.0000    
     3 'Normalizat'    .53996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   799.5184     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      233 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    306.69        .48418E-02** at limit **
   2  alpha         1.9194        4.0355        .16570        .90652E-08
   3  Normalizat    .54055        .18086        .45868E-03    .27274E-04
   4  Prefactor     1.0641        .93387E-01    .17123E-03    .75847E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91938
  Normalizat = 0.540547
  Prefactor  = 1.06414
 **********
 **   18 **HESSE 
 **********

 FCN=   799.5184     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3171        .50287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9194        2.9877        .66280E-02   -.23439    
   3  Normalizat    .54055        .70374        .18347E-04   -1.1057    
   4  Prefactor     1.0641        .36837        .34245E-04   -.90621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37459e-11
Minuit parameter uncertainties:
  1  2.5341e-06
  2  206.075
  3  0.715863
  4  0.369256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468284': 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) = 799.51844889
delta logL = 1.31011347548e-06

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.000e-04  2.534e-06  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  1.919e+00  2.061e+02  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.064e+00  3.693e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  5.405e-01  7.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.281 35.936

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/468284/cmap_HighResolution_594604801_595209601_4FGL_J0221.1+3556_weekly_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-04', job_status='DONE', photon_flux_upper_limit='1.07e-06', time_completed='2021-07-04 14:43:49.567306', job_id='468284', GAL2='1.06', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1625435029.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.06', dlogl='1.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='588' AND source_name='4FGL J0221.1+3556' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 14:43:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 468284: <4FGL_J0221.1+3556_weekly_bin588> in cluster <slac> Done

Job <4FGL_J0221.1+3556_weekly_bin588> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 14:34:36 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 14:34:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 14:34:38 2021
Terminated at Sun Jul  4 14:43:52 2021
Results reported at Sun Jul  4 14:43:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_weekly_bin588 35.281 35.9359 594604801 595209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.1+3556 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   379.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   553 sec.
    Turnaround time :                            556 sec.

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

