/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 148 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7311
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0221.1+3556_daily_bin757
RA = 35.281, Dec = 35.9359
tmin = 435542401, tmax = 435801601
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='311341', job_status='RUN', time_executed='2021-08-15 17:57:30.646373', time_epoch_executed='1629075450.65' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311341/ft1_4FGL_J0221.1+3556_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311341/ft1_4FGL_J0221.1+3556_daily_bin757.fits outfile=/scratch/kocevski/311341/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin757.fits ra=35.281 dec=35.9359 rad=12.0 tmin=435542401.0 tmax=435801601.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.59
user 4.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.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/311341/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin757.fits evtable="EVENTS" outfile="/scratch/kocevski/311341/ft1_filtered_4FGL_J0221.1+3556_daily_bin757.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.47
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311341/ft1_filtered_4FGL_J0221.1+3556_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/311341/ltcube_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.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/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits
.....................!
real 12.13
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311341/ft1_filtered_4FGL_J0221.1+3556_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/311341/ltcube_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.fits outfile=/scratch/kocevski/311341/expmap_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.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/311341/ltcube_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.fits
.....................!
real 156.06
user 151.13
sys 4.35

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/311341/ft1_filtered_4FGL_J0221.1+3556_daily_bin757.fits scfile=/scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits outfile=/scratch/kocevski/311341/cmap_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.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.47
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311341/ft1_filtered_4FGL_J0221.1+3556_daily_bin757.fits scfile=/scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits outfile=/scratch/kocevski/311341/cmap_HighResolution_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.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.49
user 0.33
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311341/ft1_filtered_4FGL_J0221.1+3556_daily_bin757.fits', '/scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits', expMap='/scratch/kocevski/311341/expmap_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.fits', expCube='/scratch/kocevski/311341/ltcube_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311341/Model_4FGL_J0221.1+3556_daily_bin757.xml', optimizer='MINUIT')

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

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


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/311341/ft1_filtered_4FGL_J0221.1+3556_daily_bin757.fits
Spacecraft file(s): /scratch/kocevski/311341/ft2_4FGL_J0221.1+3556_daily_bin757.fits
Exposure map: /scratch/kocevski/311341/expmap_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.fits
Exposure cube: /scratch/kocevski/311341/ltcube_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311341/Model_4FGL_J0221.1+3556_daily_bin757.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) = 6718.11021556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3197       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2780       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.166       1.0000         .10000E-03   10000.    
     9 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .82743       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0975       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1547       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.6692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    94.407       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .34525       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6718.109     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2334 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3197        1.6217       -.71338E-07   -.41498E-03
   2  norm          1.6492        .99329       -.25698E-07    .64179E-04
   3  Prefactor     10.632        12.290        .84277E-06   -.12723E-04
   4  Prefactor     2.3635        2.9404       -.28047E-05   -.58397E-03
   5  Prefactor     6.2787        24.017        .77694E-06   -.23441E-04
   6  Prefactor     .10000E-03    54.710        .21609E-04** at limit **
   7  norm          .10000E-03    2.2727        .37376E-07** at limit **
   8  Prefactor     20.166        9.9219       -.11824E-06   -.25072E-04
   9  norm          .10000E-03    1.5790        .47182E-07** at limit **
  10  Prefactor     .10000E-03    4.2265       -.64557E-07** at limit **
  11  norm          .82749        .47657        .15954E-07   -.14548E-04
  12  norm          .10000E-03    58.004       -.23777E-04** at limit **
  13  norm          1.0974        .40440       -.38576E-08   -.20388E-03
  14  Prefactor     .10000E-03    1.1008       -.79781E-09** at limit **
  15  norm          2.1545        3.3596       -.88540E-06   -.29889E-03
  16  Prefactor     .10000E-03    9.1587       -.17687E-06** at limit **
  17  norm          7.6690        2.6323        .51879E-06   -.10552E-03
  18  Prefactor     94.400        61.191       -.63033E-05   -.28452E-05
  19  norm          .10000E-03    17.661       -.13448E-06** at limit **
  20  Prefactor     .10000E-03    2.4531       -.96923E-07** at limit **
  21  Normalizat    .34553        .27993        .14690E-05   -.48001E-04
  22  Prefactor     1.2156        .13505        .19026E-06   -.61817E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31973
  norm       = 1.64921
  Prefactor  = 10.6321
  Prefactor  = 2.36354
  Prefactor  = 6.27874
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.1657
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.827487
  norm       = 0.0001
  norm       = 1.09737
  Prefactor  = 0.0001
  norm       = 2.15451
  Prefactor  = 0.0001
  norm       = 7.66895
  Prefactor  = 94.3996
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.345533
  Prefactor  = 1.21563
 **********
 **   18 **HESSE 
 **********

 FCN=   6718.109     FROM HESSE     STATUS=OK           346 CALLS     2680 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3197        1.5967        .11207E-03   -1.5478    
   2  norm          1.6492        .99414        .61297E-04   -1.5451    
   3  Prefactor     10.632        12.252        .12286E-03   -1.5056    
   4  Prefactor     2.3635        2.9513        .15012E-03   -1.5400    
   5  Prefactor     6.2787        23.939        .16021E-03   -1.5207    
   6  Prefactor     .10000E-03    54.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2893        .12058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.166        9.8265        .89192E-04   -1.4810    
   9  norm          .10000E-03    1.6473        .20075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2478        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .82749        .47214        .41134E-04   -1.5526    
  12  norm          .10000E-03    57.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0974        .40240        .30422E-04   -1.5498    
  14  Prefactor     .10000E-03    1.1030        .83961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1545        3.3465        .18272E-03   -1.5414    
  16  Prefactor     .10000E-03    9.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.6690        2.6173        .73891E-04   -1.5154    
  18  Prefactor     94.400        61.106        .41364E-04   -1.3762    
  19  norm          .10000E-03    17.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4569        .12537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .34553        .25279        .56749E-03   -1.2022    
  22  Prefactor     1.2156        .12548        .16057E-03   -.85852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09971e-10
Minuit parameter uncertainties:
  1  1.59673
  2  0.994146
  3  12.2548
  4  2.95153
  5  23.9756
  6  8.20975e-05
  7  2.11811e-06
  8  9.82729
  9  1.73274e-07
  10  3.59248e-06
  11  0.472142
  12  2.11504e-06
  13  0.402401
  14  1.00144e-06
  15  3.34678
  16  2.72781e-07
  17  2.61738
  18  61.1464
  19  1.6339e-05
  20  8.70877e-07
  21  0.253625
  22  0.125508
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.216e+00  1.255e-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:  3.455e-01  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 5.84e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.29e-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) = 6717.35815903
delta logL = 0.750567531494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6717.35351459
delta logL = 0.755211970722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82073       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6047       1.0000          .0000       5.0000    
     3 'Normalizat'    .38673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2036       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=   6717.354     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82024        .52294        .99352E-02   -.57339E-03
   2  alpha         1.6036        .40737        .34324       -.17470E-04
   3  Normalizat    .38673        .24875        .12129        .57407E-04
   4  Prefactor     1.2036        .12724        .34547E-01   -.45131E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.820242
  alpha      = 1.60356
  Normalizat = 0.38673
  Prefactor  = 1.20357
 **********
 **   18 **HESSE 
 **********

 FCN=   6717.354     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82024        .55025        .43361E-04   -1.5527    
   2  alpha         1.6036        .48769        .13099E-01   -.36674    
   3  Normalizat    .38673        .24189        .53741E-03   -1.1799    
   4  Prefactor     1.2036        .12408        .16125E-03   -.86222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93858e-12
Minuit parameter uncertainties:
  1  0.550256
  2  0.491309
  3  0.242543
  4  0.124108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311341': 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) = 6717.35351187
delta logL = 0.755214694765

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.204e+00  1.241e-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:  3.867e-01  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.02
Ra Dec: 35.281 35.936
Photon Index (Free Index): 1.60 +/- 0.49
Photon Flux (Free Index): 3.16e-08 +/- 2.59e-08
Energy Flux (Free Index): 4.94e-05 +/- 5.08e-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/311341/cmap_HighResolution_435542401_435801601_4FGL_J0221.1+3556_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.84e-08', energy_flux2='4.94e-05', photon_flux_error='3.33e-08', dlogl='7.55e-01', energy_flux='2.27e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-08-15 18:06:28.765916', photon_index_error2='0.49', photon_index2='1.60', ts='8.53', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='5.08e-05', EG='0.35', time_epoch_completed='1629075988.77', return_code='0', job_id='311341', GAL2='1.20', EG2='0.39', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.59e-08', ts2='10.02', photon_index='2.25' WHERE bin_id='757' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:06:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 311341: <4FGL_J0221.1+3556_daily_bin757> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 17:50:29 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:54:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:54:55 2021
Terminated at Sun Aug 15 18:06:29 2021
Results reported at Sun Aug 15 18:06:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin757 35.281 35.9359 435542401 435801601 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 :                                   534.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            960 sec.

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

