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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1552
RA = 35.3809, Dec = 25.2305
tmin = 641606401, tmax = 641865601
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='328918', job_status='RUN', time_executed='2021-08-15 18:47:57.140033', time_epoch_executed='1629078477.14' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/328918

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/328918/ft1_4FGL_J0221.5+2513_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/328918/ft1_4FGL_J0221.5+2513_daily_bin1552.fits outfile=/scratch/kocevski/328918/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1552.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=641606401.0 tmax=641865601.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 13.05
user 2.36
sys 10.53

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.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/328918/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1552.fits evtable="EVENTS" outfile="/scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.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 10.83
user 0.37
sys 10.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/328918/ltcube_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.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/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits
.....................!
real 28.81
user 16.92
sys 11.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/328918/ltcube_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.fits outfile=/scratch/kocevski/328918/expmap_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.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/328918/ltcube_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.fits
.....................!
real 209.05
user 187.36
sys 18.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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J0221.5+2513 @ 35.3809 25.2305

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits scfile=/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits outfile=/scratch/kocevski/328918/cmap_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.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.3809 yref=25.2305 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 10.96
user 0.39
sys 10.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits scfile=/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits outfile=/scratch/kocevski/328918/cmap_HighResolution_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.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.3809 yref=25.2305 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 10.86
user 0.41
sys 10.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/328918/Model_4FGL_J0221.5+2513_daily_bin1552.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/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits......................!
real 33.98
user 16.61
sys 14.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits', '/scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits', expMap='/scratch/kocevski/328918/expmap_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.fits', expCube='/scratch/kocevski/328918/ltcube_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/328918/Model_4FGL_J0221.5+2513_daily_bin1552.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.5+2513'

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  4.372e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/328918/ft1_filtered_4FGL_J0221.5+2513_daily_bin1552.fits
Spacecraft file(s): /scratch/kocevski/328918/ft2_4FGL_J0221.5+2513_daily_bin1552.fits
Exposure map: /scratch/kocevski/328918/expmap_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.fits
Exposure cube: /scratch/kocevski/328918/ltcube_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/328918/Model_4FGL_J0221.5+2513_daily_bin1552.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) = 257.291173918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11593E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17704E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'norm      '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12894E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    53.548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    315.55       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .40640       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   256.4279     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3605 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    585.26        .27908E-03** at limit **
   2  Prefactor     .10000E-03    1026.2       -.25236E-03** at limit **
   3  norm          .10000E-03    21.114       -.36670E-06** at limit **
   4  Prefactor     15.462        8938.6        .12210E-02    .38379E-05
   5  Prefactor    10000.0        9655.2        .18761E-02** at limit **
   6  norm         10000.0        6999.7        .14342E-02** at limit **
   7  Prefactor    10000.0        5000.7        .17928E-02** at limit **
   8  Prefactor     18.762        29.602       -.36794E-07   -.61385E-05
   9  Prefactor    10000.0        7174.1        .14798E-02** at limit **
  10  Prefactor    10000.0        8547.9        .52231E-03** at limit **
  11  norm          .10000E-03    54.564        .26785E-05** at limit **
  12  Prefactor    10000.0        6513.3        .12588E-02** at limit **
  13  norm          .10000E-03    8.8488        .21970E-07** at limit **
  14  norm         10000.0        6785.7        .12460E-02** at limit **
  15  Prefactor     .10000E-03    2088.8       -.96893E-03** at limit **
  16  Prefactor    10000.0        5238.3        .32994E-03** at limit **
  17  norm          53.547        87.451        .23575E-06    .86531E-05
  18  Prefactor     .10000E-03    39.413       -.13647E-06** at limit **
  19  norm          .10000E-03    2.3005        .15580E-08** at limit **
  20  Prefactor     .10000E-03    90.258        .69981E-04** at limit **
  21  Prefactor     .10000E-03    164.97       -.12835E-03** at limit **
  22  Prefactor     .10000E-03    78.417       -.44251E-04** at limit **
  23  Prefactor     .10000E-03    238.19        .13445E-03** at limit **
  24  norm          315.57        170.03        .70070E-05    .41342E-05
  25  Normalizat    .10000E-01    .22473       -.75919E-06** at limit **
  26  Prefactor     .40636        .22561       -.49066E-05   -.35769E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.4624
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 18.7618
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 53.5467
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 315.567
  Normalizat = 0.01
  Prefactor  = 0.406357
 **********
 **   18 **HESSE 
 **********

 FCN=   256.4279     FROM HESSE     STATUS=OK           434 CALLS     4039 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    584.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1026.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    21.113        .71951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.462        8834.8        .51738E-03   -1.4921    
   5  Prefactor    10000.0        9655.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        7000.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        5000.6        .18402E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.762        29.607        .92460E-04   -1.4841    
   9  Prefactor    10000.0        7174.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        8549.2        .20714E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    54.565        .11573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        6513.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.8512        .46570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        6785.5        .19474E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2088.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        5238.4        .21282E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          53.547        87.615        .54812E-04   -1.4243    
  18  Prefactor     .10000E-03    39.413        .98336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3005        .23742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    90.257        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    164.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    78.418        .13880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    238.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          315.57        170.38        .11441E-03   -1.2136    
  25  Normalizat    .10000E-01    .22480        .23503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .40636        .22599        .16609E-03   -1.1648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24436e-10
Minuit parameter uncertainties:
  1  0.00592567
  2  0.00103508
  3  0.000172014
  4  870.837
  5  0.0134331
  6  0.00318472
  7  0.0582273
  8  29.6305
  9  0.00102057
  10  0.0227503
  11  1.75297e-06
  12  0.000119701
  13  1.16436e-06
  14  0.00115724
  15  3.02913e-05
  16  0.00106214
  17  87.8266
  18  7.37237e-07
  19  1.66606e-07
  20  6.13133e-07
  21  1.14889e-05
  22  2.28496e-05
  23  5.92562e-05
  24  170.65
  25  1.14388e-06
  26  0.226485
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e+04  1.157e-03  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  4.064e-01  2.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.000e-02  1.144e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 3.33345724357e-08

TS (Fixed Index): 0.07
Ra Dec: 35.381 25.230
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -2.04e+03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/328918/likelihoodResults_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.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): 0
logL (Free Index) = 252.111253943
delta logL = 4.316624764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 252.109186954
delta logL = 4.31869175311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   252.1092     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       52 TOTAL
                     EDM=   .31E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        .74849E-01    .85991E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   252.1092     FROM HESSE     STATUS=OK             5 CALLS       57 TOTAL
                     EDM=   .30E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .74449E-01    .19038E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0347e-15
Minuit parameter uncertainties:
  1  8.24443e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/328918': 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) = 252.109186954
delta logL = 4.31869175311

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
232        alpha:  5.000e+00  8.244e-09  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  4.064e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 8.71
Ra Dec: 35.381 25.230
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.90e-04 +/- 2.28e-11
Energy Flux (Free Index): 1.83e-01 +/- 3.82e-09

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/328918/cmap_HighResolution_641606401_641865601_4FGL_J0221.5+2513_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-2.04e+03', comment='SUCCESS', energy_flux2='1.83e-01', dlogl='4.32e+00', photon_flux2='9.90e-04', job_status='DONE', time_completed='2021-08-15 18:56:29.005208', photon_index_error2='0.00', photon_index2='5.00', ts='0.07', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.82e-09', EG='0.01', time_epoch_completed='1629078989.01', return_code='0', job_id='328918', GAL2='0.41', EG2='0.01', return_code2='0', photon_flux_error2='2.28e-11', ts2='8.71', photon_index='1.74' WHERE bin_id='1552' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 328918: <4FGL_J0221.5+2513_daily_bin1552> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1552> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 18:40:52 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 18:42:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 18:42:12 2021
Terminated at Sun Aug 15 18:56:33 2021
Results reported at Sun Aug 15 18:56:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1552 35.3809 25.2305 641606401 641865601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.5+2513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   653.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             176.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            941 sec.

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

