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 39 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin1768
RA = 35.281, Dec = 35.9359
tmin = 697593601, tmax = 697852801
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='258355', job_status='RUN', time_executed='2023-02-12 00:09:03.116035', time_epoch_executed='1676189343.12' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258355

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258355/ft1_4FGL_J0221.1+3556_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258355/ft1_4FGL_J0221.1+3556_daily_bin1768.fits outfile=/scratch/kocevski/258355/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1768.fits ra=35.281 dec=35.9359 rad=12.0 tmin=697593601.0 tmax=697852801.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.66
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.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/258355/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.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.22
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 916

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/258355/ltcube_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.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/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits
.....................!
real 15.13
user 14.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/258355/ltcube_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.fits outfile=/scratch/kocevski/258355/expmap_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.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/258355/ltcube_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.fits
.....................!
real 191.09
user 186.22
sys 4.44

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits scfile=/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits outfile=/scratch/kocevski/258355/cmap_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits scfile=/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits outfile=/scratch/kocevski/258355/cmap_HighResolution_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258355/Model_4FGL_J0221.1+3556_daily_bin1768.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/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits.....................!
real 119.62
user 117.22
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits', '/scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits', expMap='/scratch/kocevski/258355/expmap_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.fits', expCube='/scratch/kocevski/258355/ltcube_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258355/Model_4FGL_J0221.1+3556_daily_bin1768.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  0.000e+00  1.000e+06 ( 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 -5.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/258355/ft1_filtered_4FGL_J0221.1+3556_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/258355/ft2_4FGL_J0221.1+3556_daily_bin1768.fits
Exposure map: /scratch/kocevski/258355/expmap_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.fits
Exposure cube: /scratch/kocevski/258355/ltcube_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258355/Model_4FGL_J0221.1+3556_daily_bin1768.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) = 10049.8551659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90563       1.0000          .0000       .10000E+07
     2 'norm      '    .16598E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23539E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52936       1.0000          .0000       .10000E+07
     5 'Prefactor '    .43443E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .57115E-01   1.0000          .0000       .10000E+07
     7 'norm      '    3.1869       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22166E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .15210E-06   1.0000          .0000       .10000E+07
    10 'norm      '    1.3249       1.0000          .0000       .10000E+07
    11 'norm      '    .25241E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .47768       1.0000          .0000       .10000E+07
    13 'Prefactor '    .43087       1.0000          .0000       .10000E+07
    14 'norm      '    .58891       1.0000          .0000       .10000E+07
    15 'norm      '    2.2228       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10276E-01   1.0000          .0000       .10000E+07
    17 'norm      '    26.556       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5541       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10049.83     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1534 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90541        .80629        .68823E-08   -.20788E-02
   2  norm           .0000        .24656        .75843E-06** at limit **
   3  Prefactor     .28018E-05    67.238        .45016E-05** at limit **
   4  Prefactor     .52199        3.9020       -.95994E-06   -.14266E-02
   5  Prefactor     .45974E-06    22.590       -.58847E-05** at limit **
   6  Prefactor     .42133E-07    42.272        .22779E-05** at limit **
   7  norm          3.1688        5.4677        .60102E-06    .10723E-02
   8  Prefactor     .18874E-08    9.9439       -.83041E-06** at limit **
   9  norm          .55511E-10    1.7296        .20810E-07** at limit **
  10  norm          1.3255        .61384       -.15975E-06    .61914E-02
  11  norm          .88263E-08    36.096        .16045E-05** at limit **
  12  norm          .47786        .25365        .21814E-07    .91571E-02
  13  Prefactor     .43197        5.2851        .20659E-05    .22154E-02
  14  norm          .61137        3.5956       -.54053E-06   -.88730E-03
  15  norm          2.2227        1.7973       -.12881E-06   -.39004E-03
  16  Prefactor     .44031E-06    20.103        .24591E-05** at limit **
  17  norm          26.595        1.6938        .18240E-06   -.23006E-01
  18  Prefactor     2.6481        5.4243        .93395E-06    .79554E-01
  19  Normalizat    1.1869        .23668       -.45630E-05   -.53174E-05
  20  Prefactor     1.0648        .10936       -.78765E-05    .92191E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.905409
  norm       = 0
  Prefactor  = 2.80181e-06
  Prefactor  = 0.52199
  Prefactor  = 4.59743e-07
  Prefactor  = 4.2133e-08
  norm       = 3.16875
  Prefactor  = 1.88738e-09
  norm       = 5.55112e-11
  norm       = 1.32546
  norm       = 8.82627e-09
  norm       = 0.477865
  Prefactor  = 0.431967
  norm       = 0.611367
  norm       = 2.22266
  Prefactor  = 4.40314e-07
  norm       = 26.5948
  Prefactor  = 2.64813
  Normalizat = 1.18692
  Prefactor  = 1.06483
 **********
 **   18 **HESSE 
 **********

 FCN=   10049.83     FROM HESSE     STATUS=OK           339 CALLS     1873 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90541        .80625        .45371E-03   -1.5689    
   2  norm           .0000        .24605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .28018E-05    12.643        .10521E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52199        4.3732        .75809E-03   -1.5694    
   5  Prefactor     .45974E-06    23.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42133E-07    42.127        .15267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1688        5.4814        .56738E-03   -1.5672    
   8  Prefactor     .18874E-08    9.9314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    1.7285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3255        .62157        .95476E-03   -1.5685    
  11  norm          .88263E-08    36.018        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .47786        .25400        .80620E-03   -1.5694    
  13  Prefactor     .43197        5.3438        .85994E-03   -1.5695    
  14  norm          .61137        3.7321        .70228E-03   -1.5692    
  15  norm          2.2227        1.8105        .68941E-03   -1.5678    
  16  Prefactor     .44031E-06    21.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.595        29.699        .19409E-03   -1.5605    
  18  Prefactor     2.6481        14.529        .63859E-03   -1.5675    
  19  Normalizat    1.1869        .21362        .83355E-01   -.87008    
  20  Prefactor     1.0648        .97660E-01    .39107E-01   -.90599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8283e-06
Minuit parameter uncertainties:
  1  0.80625
  2  7.06318e-07
  3  0.0119037
  4  3.02178
  5  0.00659531
  6  0.00266464
  7  5.48145
  8  0.000271952
  9  1.52766e-05
  10  0.621574
  11  0.00112741
  12  0.254001
  13  3.03865
  14  3.02104
  15  1.81047
  16  0.00610094
  17  29.6991
  18  12.4058
  19  0.213775
  20  0.0976765
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.325e+00  6.216e-01  0.000e+00  1.000e+06 ( 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 -5.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.065e+00  9.768e-02  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:  1.187e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.71
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 9.35e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 1.70e-05

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) = 10049.822265
delta logL = 0.00791316888899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10049.8214014
delta logL = 0.00877674664844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3075       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3144       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0669       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.

 FCN=   10049.82     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3079        8.4024        .96450E-03    .51875E-02
   2  alpha         2.3143        3.6570        .36851        .42145E-04
   3  Normalizat    1.1797        .96267E-01    .83569E-01    .23313E-04
   4  Prefactor     1.0668        .36444E-01    .39008E-01   -.70510E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30793
  alpha      = 2.3143
  Normalizat = 1.17975
  Prefactor  = 1.06676
 **********
 **   18 **HESSE 
 **********

 FCN=   10049.82     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3079        .62644        .50295E-05   -1.5685    
   2  alpha         2.3143        .45613        .12803E-01   -.74350E-01
   3  Normalizat    1.1797        .23396        .37000E-03   -.87231    
   4  Prefactor     1.0668        .10977        .18574E-03   -.90536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61424e-10
Minuit parameter uncertainties:
  1  0.626436
  2  0.458714
  3  0.234167
  4  0.109796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258355': 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) = 10049.8213993
delta logL = 0.00877883810608

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.308e+00  6.264e-01  0.000e+00  1.000e+06 ( 1.000e-11)
273        alpha:  2.314e+00  4.587e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  4.833e-02  0.000e+00 -5.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.067e+00  1.098e-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:  1.180e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.73
Ra Dec: 35.281 35.936
Photon Index (Free Index): 2.31 +/- 0.46
Photon Flux (Free Index): 9.93e-08 +/- 6.20e-08
Energy Flux (Free Index): 3.56e-05 +/- 1.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/258355/cmap_HighResolution_697593601_697852801_4FGL_J0221.1+3556_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.35e-08', energy_flux2='3.56e-05', photon_flux_error='4.38e-08', dlogl='8.78e-03', energy_flux='3.63e-05', photon_flux2='9.93e-08', job_status='DONE', time_completed='2023-02-12 00:20:35.437439', photon_index_error2='0.46', photon_index2='2.31', ts='9.71', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.19', time_epoch_completed='1676190035.44', return_code='0', job_id='258355', GAL2='1.07', EG2='1.18', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='6.20e-08', ts2='9.73', photon_index='2.25' WHERE bin_id='1768' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 00:20:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 258356: <4FGL_J0221.1+3556_daily_bin1768> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1768> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Feb 12 00:05:31 2023
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:08:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:08:18 2023
Terminated at Sun Feb 12 00:20:32 2023
Results reported at Sun Feb 12 00:20:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1768 35.281 35.9359 697593601 697852801 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 :                                   697.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            901 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 258355: <4FGL_J0221.1+3556_daily_bin1768> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1768> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Feb 12 00:05:31 2023
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:08:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:08:14 2023
Terminated at Sun Feb 12 00:20:35 2023
Results reported at Sun Feb 12 00:20:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1768 35.281 35.9359 697593601 697852801 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 :                                   693.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            904 sec.

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

