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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin1749
RA = 35.281, Dec = 35.9359
tmin = 692668801, tmax = 692928001
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='941330', job_status='RUN', time_executed='2022-12-17 00:06:04.665342', time_epoch_executed='1671264364.67' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941330

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941330/ft1_4FGL_J0221.1+3556_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941330/ft2_4FGL_J0221.1+3556_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941330/ft1_4FGL_J0221.1+3556_daily_bin1749.fits outfile=/scratch/kocevski/941330/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1749.fits ra=35.281 dec=35.9359 rad=12.0 tmin=692668801.0 tmax=692928001.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 4.09
user 3.46
sys 0.24

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

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

Number of photons that the gtmktime cut: 859

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941330/ft1_filtered_4FGL_J0221.1+3556_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/941330/ft2_4FGL_J0221.1+3556_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/941330/ltcube_692668801_692928001_4FGL_J0221.1+3556_daily_bin1749.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/941330/ft2_4FGL_J0221.1+3556_daily_bin1749.fits
.....................!
real 13.04
user 11.56
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941330/ft1_filtered_4FGL_J0221.1+3556_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/941330/ft2_4FGL_J0221.1+3556_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/941330/ltcube_692668801_692928001_4FGL_J0221.1+3556_daily_bin1749.fits outfile=/scratch/kocevski/941330/expmap_692668801_692928001_4FGL_J0221.1+3556_daily_bin1749.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/941330/ltcube_692668801_692928001_4FGL_J0221.1+3556_daily_bin1749.fits
.....................!
real 193.41
user 185.16
sys 5.58

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/941330/ft1_filtered_4FGL_J0221.1+3556_daily_bin1749.fits scfile=/scratch/kocevski/941330/ft2_4FGL_J0221.1+3556_daily_bin1749.fits outfile=/scratch/kocevski/941330/cmap_692668801_692928001_4FGL_J0221.1+3556_daily_bin1749.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941330/ft1_filtered_4FGL_J0221.1+3556_daily_bin1749.fits scfile=/scratch/kocevski/941330/ft2_4FGL_J0221.1+3556_daily_bin1749.fits outfile=/scratch/kocevski/941330/cmap_HighResolution_692668801_692928001_4FGL_J0221.1+3556_daily_bin1749.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14838E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .53291E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19773       1.0000          .0000       .10000E+07
     4 'Prefactor '    .67296E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .57935E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    33.649       1.0000          .0000       .10000E+07
     7 'norm      '    .12296E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.2860       1.0000          .0000       .10000E+07
     9 'norm      '    .17116E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.8497       1.0000          .0000       .10000E+07
    11 'norm      '    66.231       1.0000          .0000       .10000E+07
    12 'norm      '    .71217       1.0000          .0000       .10000E+07
    13 'Prefactor '    .15900E-03   1.0000          .0000       .10000E+07
    14 'norm      '    2.4747       1.0000          .0000       .10000E+07
    15 'norm      '    4.1051       1.0000          .0000       .10000E+07
    16 'Prefactor '    .72644E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .22639E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .29013E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3704       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82710       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=   9117.420     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1517 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31641E-08    2.3975        .32221E-07** at limit **
   2  norm           .0000        .30740       -.46453E-07** at limit **
   3  Prefactor     .19893        .90941       -.92903E-07** at limit **
   4  Prefactor     .11102E-09    1.1657       -.67839E-07** at limit **
   5  Prefactor     .14044E-07    2.8530       -.53141E-06** at limit **
   6  Prefactor     33.626        1.3237       -.13146E-07    .64595E-01
   7  norm          .16653E-09    1.3875       -.17879E-07** at limit **
   8  Prefactor     2.3306        6.6080        .37162E-06    .15272E-01
   9  norm          .67057E-07    4.2450        .10025E-06** at limit **
  10  norm          1.8491        .67159       -.23500E-07   -.85550E-02
  11  norm          66.170        3.7702       -.39376E-07    .41214    
  12  norm          .71187        .31263       -.10668E-07   -.63869E-02
  13  Prefactor     .99920E-09    2.6195       -.10297E-06** at limit **
  14  norm          2.5393        5.5863       -.13228E-06   -.56325E-03
  15  norm          4.1063        1.9571        .58590E-08    .65384E-04
  16  Prefactor     .15099E-07    19.421       -.84529E-07** at limit **
  17  norm          .93259E-08    5.2993       -.33571E-06** at limit **
  18  Prefactor     .21139E-06    3.3969       -.35790E-06** at limit **
  19  Normalizat    1.3700        .23049       -.27770E-05   -.11684E-04
  20  Prefactor     .82713        .10611        .16533E-05    .59686E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16414e-09
  norm       = 0
  Prefactor  = 0.198934
  Prefactor  = 1.11022e-10
  Prefactor  = 1.40443e-08
  Prefactor  = 33.6257
  norm       = 1.66533e-10
  Prefactor  = 2.33055
  norm       = 6.70575e-08
  norm       = 1.84907
  norm       = 66.1697
  norm       = 0.711871
  Prefactor  = 9.99201e-10
  norm       = 2.53931
  norm       = 4.10631
  Prefactor  = 1.5099e-08
  norm       = 9.32587e-09
  Prefactor  = 2.11386e-07
  Normalizat = 1.37001
  Prefactor  = 0.827133
 **********
 **   18 **HESSE 
 **********

 FCN=   9117.420     FROM HESSE     STATUS=OK           337 CALLS     1854 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31641E-08    .53663        .25484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .30276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .19893        5.9554        .87069E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    1.1650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .14044E-07    5.6533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.626        36.179        .17241E-03   -1.5592    
   7  norm          .16653E-09    1.3876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3306        6.6182        .67871E-03   -1.5677    
   9  norm          .67057E-07    4.4498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8491        .67496        .76631E-03   -1.5681    
  11  norm          66.170        61.797        .12288E-03   -1.5545    
  12  norm          .71187        .31338        .59726E-03   -1.5691    
  13  Prefactor     .99920E-09    2.6159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5393        5.6427        .64968E-03   -1.5676    
  15  norm          4.1063        1.9625        .49732E-03   -1.5667    
  16  Prefactor     .15099E-07    19.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .93259E-08    6.1620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .21139E-06    4.9283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3700        .20049        .71804E-01   -.81500    
  20  Prefactor     .82713        .91336E-01    .44069E-01   -.98736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03758e-05
Minuit parameter uncertainties:
  1  8.25862e-05
  2  1.89708e-07
  3  2.17691
  4  2.01723e-05
  5  0.000563438
  6  36.1789
  7  2.95074e-05
  8  6.61817
  9  0.00109261
  10  0.67496
  11  61.7975
  12  0.313384
  13  0.000101058
  14  5.64274
  15  1.96252
  16  0.00108336
  17  0.000479015
  18  0.00204137
  19  0.200604
  20  0.0913532
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.849e+00  6.750e-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:  8.271e-01  9.135e-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.370e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.24
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 4.76e-08
Energy Flux (Fixed Index): 5.07e-05 +/- 1.85e-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) = 9117.0975769
delta logL = 0.322894900188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9117.09387884
delta logL = 0.326592960801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5731       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5370       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83912       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=   9117.094     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5731        6.6864        .84704E-03    .41826E-02
   2  alpha         2.5370        3.6756        .22252        .62741E-04
   3  Normalizat    1.3312        .97409E-01    .72634E-01    .58480E-04
   4  Prefactor     .83911        .40820E-01    .44224E-01   -.21179E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57313
  alpha      = 2.53701
  Normalizat = 1.33116
  Prefactor  = 0.839111
 **********
 **   18 **HESSE 
 **********

 FCN=   9117.094     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5731        .72723        .39344E-05   -1.5683    
   2  alpha         2.5370        .37098        .90795E-02    .14803E-01
   3  Normalizat    1.3312        .23044        .32140E-03   -.82641    
   4  Prefactor     .83911        .10706        .18693E-03   -.98302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99667e-09
Minuit parameter uncertainties:
  1  0.727234
  2  0.372352
  3  0.230616
  4  0.107082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941330': 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) = 9117.09387884
delta logL = 0.326592961494

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.573e+00  7.272e-01  0.000e+00  1.000e+06 ( 1.000e-11)
273        alpha:  2.537e+00  3.724e-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:  8.391e-01  1.071e-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.331e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.00
Ra Dec: 35.281 35.936
Photon Index (Free Index): 2.54 +/- 0.37
Photon Flux (Free Index): 1.60e-07 +/- 6.34e-08
Energy Flux (Free Index): 4.49e-05 +/- 1.68e-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/941330/cmap_HighResolution_692668801_692928001_4FGL_J0221.1+3556_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='4.49e-05', photon_flux_error='4.76e-08', dlogl='3.27e-01', energy_flux='5.07e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2022-12-17 00:17:22.118883', photon_index_error2='0.37', photon_index2='2.54', ts='15.24', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.37', time_epoch_completed='1671265042.12', return_code='0', job_id='941330', GAL2='0.84', EG2='1.33', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='6.34e-08', ts2='16.00', photon_index='2.25' WHERE bin_id='1749' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:17:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 941330: <4FGL_J0221.1+3556_daily_bin1749> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 00:05:16 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:05:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:05:17 2022
Terminated at Sat Dec 17 00:17:22 2022
Results reported at Sat Dec 17 00:17:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1749 35.281 35.9359 692668801 692928001 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 :                                   654.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            726 sec.

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

