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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin1740
RA = 35.281, Dec = 35.9359
tmin = 690336001, tmax = 690595201
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='822894', job_status='RUN', time_executed='2022-11-20 00:13:26.309531', time_epoch_executed='1668932006.31' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822894

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822894/ft1_4FGL_J0221.1+3556_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822894/ft2_4FGL_J0221.1+3556_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822894/ft1_4FGL_J0221.1+3556_daily_bin1740.fits outfile=/scratch/kocevski/822894/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1740.fits ra=35.281 dec=35.9359 rad=12.0 tmin=690336001.0 tmax=690595201.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 2.96
user 2.72
sys 0.20

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

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

Number of photons that the gtmktime cut: 166

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822894/ft1_filtered_4FGL_J0221.1+3556_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822894/ft2_4FGL_J0221.1+3556_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822894/ltcube_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.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/822894/ft2_4FGL_J0221.1+3556_daily_bin1740.fits
.....................!
real 14.46
user 14.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822894/ft1_filtered_4FGL_J0221.1+3556_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822894/ft2_4FGL_J0221.1+3556_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822894/ltcube_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.fits outfile=/scratch/kocevski/822894/expmap_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.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/822894/ltcube_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.fits
.....................!
real 191.55
user 186.46
sys 4.73

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/822894/ft1_filtered_4FGL_J0221.1+3556_daily_bin1740.fits scfile=/scratch/kocevski/822894/ft2_4FGL_J0221.1+3556_daily_bin1740.fits outfile=/scratch/kocevski/822894/cmap_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822894/ft1_filtered_4FGL_J0221.1+3556_daily_bin1740.fits scfile=/scratch/kocevski/822894/ft2_4FGL_J0221.1+3556_daily_bin1740.fits outfile=/scratch/kocevski/822894/cmap_HighResolution_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15248E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .22672E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20306E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16320E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .81608E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    164.21       1.0000          .0000       .10000E+07
     7 'norm      '    .11125E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    14.120       1.0000          .0000       .10000E+07
     9 'norm      '    4.9512       1.0000          .0000       .10000E+07
    10 'norm      '    .33056E-04   1.0000          .0000       .10000E+07
    11 'norm      '    965.21       1.0000          .0000       .10000E+07
    12 'norm      '    .42560       1.0000          .0000       .10000E+07
    13 'Prefactor '    .62170E-01   1.0000          .0000       .10000E+07
    14 'norm      '    26.061       1.0000          .0000       .10000E+07
    15 'norm      '    .69176E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .65396E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .18614E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21870E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4803       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=   1966.776     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2085 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.2292        .59211E-07** at limit **
   2  norm          .13323E-08    5.4867       -.15823E-05** at limit **
   3  Prefactor     .16653E-09    11.170        .49996E-06** at limit **
   4  Prefactor     .44409E-09    1.9650       -.10938E-05** at limit **
   5  Prefactor      .0000        32.088        .41511E-06** at limit **
   6  Prefactor     166.40        126.84        .12938E-05    .21268E-02
   7  norm           .0000        5.8609       -.10260E-06** at limit **
   8  Prefactor     14.016        18.271        .11863E-05   -.16797E-01
   9  norm          4.7621        8.9080        .71529E-06    .23273E-02
  10  norm          .21094E-08    3.3695       -.24319E-05** at limit **
  11  norm          965.37        11.246        .53549E-07   -.19842    
  12  norm          .42506        .43021        .13951E-08    .35112E-02
  13  Prefactor     .14433E-08    119.34        .42506E-05** at limit **
  14  norm          26.107        5.3113       -.23841E-06   -.14381    
  15  norm           .0000        14.433        .21693E-06** at limit **
  16  Prefactor     .41189E-07    247.54        .76339E-05** at limit **
  17  norm          .62351E-05    396.24        .44069E-05** at limit **
  18  Prefactor     .18874E-08    46.415       -.29605E-05** at limit **
  19  Normalizat    .10000E-01    .30139        .64266E-04** at limit **
  20  Prefactor     1.4807        .14476       -.30025E-04    .69151E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.33227e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 166.404
  norm       = 0
  Prefactor  = 14.0165
  norm       = 4.7621
  norm       = 2.10942e-09
  norm       = 965.366
  norm       = 0.425062
  Prefactor  = 1.44329e-09
  norm       = 26.1067
  norm       = 0
  Prefactor  = 4.11893e-08
  norm       = 6.23512e-06
  Prefactor  = 1.88738e-09
  Normalizat = 0.01
  Prefactor  = 1.48072
 **********
 **   18 **HESSE 
 **********

 FCN=   1966.776     FROM HESSE     STATUS=OK           347 CALLS     2432 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.2202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .13323E-08    1.3706        .28084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    11.160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44409E-09    1.9645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        32.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     166.40        127.37        .78044E-04   -1.5450    
   7  norm           .0000        5.8594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.016        18.539        .26630E-03   -1.5633    
   9  norm          4.7621        10.912        .45175E-03   -1.5664    
  10  norm          .21094E-08    2.3947        .18383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          965.37        591.88        .32203E-04   -1.5086    
  12  norm          .42506        .42488        .64390E-03   -1.5695    
  13  Prefactor     .14433E-08    14.775        .10348E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.107        21.459        .19593E-03   -1.5606    
  15  norm           .0000        14.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .41189E-07    247.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .62351E-05    410.86        .17130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18874E-08    46.313        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25396        .23903       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4807        .16441        .30037E-01   -.78081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47329e-05
Minuit parameter uncertainties:
  1  3.92773e-06
  2  8.49771e-05
  3  8.70163e-05
  4  5.75955e-05
  5  3.76895e-05
  6  127.374
  7  1.25936e-05
  8  18.5387
  9  10.9122
  10  0.000141323
  11  591.912
  12  0.424881
  13  0.000290556
  14  21.4589
  15  1.49638e-05
  16  0.00638786
  17  0.101235
  18  0.000589153
  19  3.56883e-06
  20  0.164464
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  2.109e-09  1.413e-04  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.481e+00  1.645e-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.000e-02  3.569e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/822894/likelihoodResults_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.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) = 1966.7761711
delta logL = -0.000413690154119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1966.77576385
delta logL = -6.43601651973e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25885E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    2.1977       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4808       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=   1966.776     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      289 TOTAL
                     EDM=   .55E-15    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    .36978E-03    .27082E-02** at limit **
   2  alpha         2.7688        3.6068        .41538       -.10948E-10
   3  Normalizat    .10000E-01    .21387E-06    .23859    ** at limit **
   4  Prefactor     1.4807        .14402E-03    .30031E-01    .45216E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  alpha      = 2.76884
  Normalizat = 0.01
  Prefactor  = 1.48072
 **********
 **   18 **HESSE 
 **********

 FCN=   1966.776     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      316 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    17.337        .70158E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7688        2.6337        .83076E-01    .10774    
   3  Normalizat    .10000E-01    .93058E-03    .11946E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4807        .75198E-02    .16553E-03   -.78081    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63169e-11
Minuit parameter uncertainties:
  1  7.37315e-05
  2  218823
  3  5.70525e-07
  4  0.00751978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822894': 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) = 1966.77575741
delta logL = 5.07498043589e-10

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  5.551e-11  7.373e-05  0.000e+00  1.000e+06 ( 1.000e-11)
273        alpha:  2.769e+00  2.188e+05  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.481e+00  7.520e-03  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.000e-02  5.705e-07  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/822894/cmap_HighResolution_690336001_690595201_4FGL_J0221.1+3556_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', job_status='DONE', photon_flux_upper_limit='2.62e-07', time_completed='2022-11-20 00:20:11.552602', job_id='822894', GAL2='1.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1668932411.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='5.07e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1740' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:20:11 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 822866: <4FGL_J0221.1+3556_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:17 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:09:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:09:32 2022
Terminated at Sun Nov 20 00:16:52 2022
Results reported at Sun Nov 20 00:16:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1740 35.281 35.9359 690336001 690595201 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 :                                   411.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   440 sec.
    Turnaround time :                            695 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 822894: <4FGL_J0221.1+3556_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:19 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:09:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:09:48 2022
Terminated at Sun Nov 20 00:20:12 2022
Results reported at Sun Nov 20 00:20:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1740 35.281 35.9359 690336001 690595201 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 :                                   407.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             223.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            893 sec.

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

