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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin1776
RA = 35.281, Dec = 35.9359
tmin = 699667201, tmax = 699926401
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='823941', job_status='RUN', time_executed='2023-03-08 00:05:28.052986', time_epoch_executed='1678262728.05' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823941/ft1_4FGL_J0221.1+3556_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823941/ft1_4FGL_J0221.1+3556_daily_bin1776.fits outfile=/scratch/kocevski/823941/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1776.fits ra=35.281 dec=35.9359 rad=12.0 tmin=699667201.0 tmax=699926401.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.95
user 3.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.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/823941/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/823941/ft1_filtered_4FGL_J0221.1+3556_daily_bin1776.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.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 941

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823941/ft1_filtered_4FGL_J0221.1+3556_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/823941/ltcube_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.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/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits
.....................!
real 11.77
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823941/ft1_filtered_4FGL_J0221.1+3556_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/823941/ltcube_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.fits outfile=/scratch/kocevski/823941/expmap_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.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/823941/ltcube_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.fits
.....................!
real 190.13
user 185.95
sys 3.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/823941/ft1_filtered_4FGL_J0221.1+3556_daily_bin1776.fits scfile=/scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits outfile=/scratch/kocevski/823941/cmap_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823941/ft1_filtered_4FGL_J0221.1+3556_daily_bin1776.fits scfile=/scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits outfile=/scratch/kocevski/823941/cmap_HighResolution_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823941/ft1_filtered_4FGL_J0221.1+3556_daily_bin1776.fits', '/scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits', expMap='/scratch/kocevski/823941/expmap_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.fits', expCube='/scratch/kocevski/823941/ltcube_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823941/Model_4FGL_J0221.1+3556_daily_bin1776.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/823941/ft1_filtered_4FGL_J0221.1+3556_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/823941/ft2_4FGL_J0221.1+3556_daily_bin1776.fits
Exposure map: /scratch/kocevski/823941/expmap_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.fits
Exposure cube: /scratch/kocevski/823941/ltcube_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823941/Model_4FGL_J0221.1+3556_daily_bin1776.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) = 9763.12268808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64948E-07   1.0000          .0000       .10000E+07
     2 'norm      '    2.3480       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7622       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26780E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    35.165       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22117E-05   1.0000          .0000       .10000E+07
     7 'norm      '    1.7316       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.3814       1.0000          .0000       .10000E+07
     9 'norm      '    .38828E-05   1.0000          .0000       .10000E+07
    10 'norm      '    1.2977       1.0000          .0000       .10000E+07
    11 'norm      '    .19696       1.0000          .0000       .10000E+07
    12 'norm      '    .16198       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7313       1.0000          .0000       .10000E+07
    14 'norm      '    .61759E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .76428E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    34.721       1.0000          .0000       .10000E+07
    17 'norm      '    1.2344       1.0000          .0000       .10000E+07
    18 'Prefactor '    26.000       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1078       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0065       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=   9763.058     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1516 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .37052       -.88573E-08** at limit **
   2  norm          2.3491        .97347        .12207E-06    .21094E-01
   3  Prefactor     1.8450        11.998       -.13051E-07    .17288E-02
   4  Prefactor     .11102E-09    1.6381       -.79124E-07** at limit **
   5  Prefactor     35.892        28.336       -.36398E-05    .53122E-02
   6  Prefactor     .29865E-07    19.714        .28380E-06** at limit **
   7  norm          1.6798        5.0979       -.93739E-06   -.47676E-02
   8  Prefactor     5.4053        10.170        .13251E-05   -.42265E-02
   9  norm          .55511E-10    1.5072       -.21185E-06** at limit **
  10  norm          1.2972        .52509        .48592E-07    .10549E-01
  11  norm          .51001E-05    10.658       -.42387E-05** at limit **
  12  norm          .16219        .15103       -.43181E-08** at limit **
  13  Prefactor     3.7921        3.8209        .13512E-06    .51644E-02
  14  norm          .55511E-10    1.9632       -.34273E-06** at limit **
  15  norm           .0000        .69213        .14809E-06** at limit **
  16  Prefactor     34.146        37.306       -.63002E-05    .15683E-02
  17  norm          1.1064        67.819        .14588E-04   -.35066E-03
  18  Prefactor     26.146        13.435        .10957E-06   -.30074E-03
  19  Normalizat    1.1056        .22944       -.18959E-05    .12146E-03
  20  Prefactor     1.0072        .10911        .41245E-05    .25867E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 2.34909
  Prefactor  = 1.84495
  Prefactor  = 1.11022e-10
  Prefactor  = 35.8918
  Prefactor  = 2.9865e-08
  norm       = 1.67984
  Prefactor  = 5.40534
  norm       = 5.55112e-11
  norm       = 1.29724
  norm       = 5.10009e-06
  norm       = 0.162191
  Prefactor  = 3.7921
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 34.1463
  norm       = 1.10643
  Prefactor  = 26.1459
  Normalizat = 1.10558
  Prefactor  = 1.00722
 **********
 **   18 **HESSE 
 **********

 FCN=   9763.058     FROM HESSE     STATUS=OK           335 CALLS     1851 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .37026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3491        .97573        .66873E-03   -1.5677    
   3  Prefactor     1.8450        12.047        .78894E-03   -1.5681    
   4  Prefactor     .11102E-09    1.6317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.892        28.809        .16865E-03   -1.5588    
   6  Prefactor     .29865E-07    20.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6798        5.4242        .79742E-03   -1.5682    
   8  Prefactor     5.4053        10.763        .43296E-03   -1.5661    
   9  norm          .55511E-10    1.4984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2972        .53013        .97022E-03   -1.5685    
  11  norm          .51001E-05    153.68        .11830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .16219        .13424        .81436E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7921        3.8250        .52249E-03   -1.5669    
  14  norm          .55511E-10    1.9652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .68218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.146        37.529        .16973E-03   -1.5591    
  17  norm          1.1064        65.265        .10106E-02   -1.5687    
  18  Prefactor     26.146        13.445        .19615E-03   -1.5606    
  19  Normalizat    1.1056        .19874        .78952E-01   -.89573    
  20  Prefactor     1.0072        .94320E-01    .43901E-01   -.92489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21726e-06
Minuit parameter uncertainties:
  1  5.87373e-06
  2  0.975726
  3  9.42877
  4  2.64231e-05
  5  28.8092
  6  0.00155604
  7  5.42422
  8  10.7627
  9  1.90046e-05
  10  0.530129
  11  0.0559932
  12  0.134235
  13  3.82498
  14  2.05766e-05
  15  7.30634e-06
  16  37.529
  17  16.9957
  18  13.4448
  19  0.198878
  20  0.0943351
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.297e+00  5.301e-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.007e+00  9.434e-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.106e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.38
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 9.15e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 1.45e-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) = 9762.94419706
delta logL = 0.114095120742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9762.93426886
delta logL = 0.124023313338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3905       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0845       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0034       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=   9762.934     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3908        10.744        .92122E-03    .29357E-02
   2  alpha         2.0846        3.5183        .28670        .29842E-04
   3  Normalizat    1.1190        .12028        .78550E-01    .24494E-04
   4  Prefactor     1.0034        .53004E-01    .44554E-01    .11941E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39079
  alpha      = 2.08456
  Normalizat = 1.11902
  Prefactor  = 1.00337
 **********
 **   18 **HESSE 
 **********

 FCN=   9762.934     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3908        .59175        .46691E-05   -1.5684    
   2  alpha         2.0846        .33779        .11357E-01   -.16695    
   3  Normalizat    1.1190        .21440        .34770E-03   -.89143    
   4  Prefactor     1.0034        .10605        .18127E-03   -.92617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69969e-10
Minuit parameter uncertainties:
  1  0.591747
  2  0.338856
  3  0.214569
  4  0.106071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823941': 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) = 9762.93426818
delta logL = 0.124023997707

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.391e+00  5.917e-01  0.000e+00  1.000e+06 ( 1.000e-11)
273        alpha:  2.085e+00  3.389e-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.003e+00  1.061e-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.119e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.60
Ra Dec: 35.281 35.936
Photon Index (Free Index): 2.08 +/- 0.34
Photon Flux (Free Index): 8.07e-08 +/- 4.00e-08
Energy Flux (Free Index): 4.10e-05 +/- 2.17e-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/823941/cmap_HighResolution_699667201_699926401_4FGL_J0221.1+3556_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.15e-08', energy_flux2='4.10e-05', photon_flux_error='3.74e-08', dlogl='1.24e-01', energy_flux='3.56e-05', photon_flux2='8.07e-08', job_status='DONE', time_completed='2023-03-08 00:16:50.509257', photon_index_error2='0.34', photon_index2='2.08', ts='17.38', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.11', time_epoch_completed='1678263410.51', return_code='0', job_id='823941', GAL2='1.00', EG2='1.12', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.00e-08', ts2='17.60', photon_index='2.25' WHERE bin_id='1776' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:16:50 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 823941: <4FGL_J0221.1+3556_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 00:04:55 2023
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:05:00 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:05:00 2023
Terminated at Wed Mar  8 00:16:51 2023
Results reported at Wed Mar  8 00:16:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1776 35.281 35.9359 699667201 699926401 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 :                                   680.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            716 sec.

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

