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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1551
RA = 35.3809, Dec = 25.2305
tmin = 641347201, tmax = 641606401
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='328916', job_status='RUN', time_executed='2021-08-15 18:45:55.682655', time_epoch_executed='1629078355.68' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/328916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/328916/ft1_4FGL_J0221.5+2513_daily_bin1551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/328916/ft1_4FGL_J0221.5+2513_daily_bin1551.fits outfile=/scratch/kocevski/328916/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1551.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=641347201.0 tmax=641606401.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 8.33
user 2.63
sys 5.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.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/328916/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1551.fits evtable="EVENTS" outfile="/scratch/kocevski/328916/ft1_filtered_4FGL_J0221.5+2513_daily_bin1551.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 6.06
user 0.35
sys 5.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/328916/ft1_filtered_4FGL_J0221.5+2513_daily_bin1551.fits" evtable="EVENTS" scfile=/scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits sctable="SC_DATA" outfile=/scratch/kocevski/328916/ltcube_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.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/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits
.....................!
real 20.11
user 13.57
sys 6.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/328916/ft1_filtered_4FGL_J0221.5+2513_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits sctable="SC_DATA" expcube=/scratch/kocevski/328916/ltcube_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.fits outfile=/scratch/kocevski/328916/expmap_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.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/328916/ltcube_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.fits
.....................!
real 197.46
user 185.23
sys 11.56

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/328916/ft1_filtered_4FGL_J0221.5+2513_daily_bin1551.fits scfile=/scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits outfile=/scratch/kocevski/328916/cmap_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.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 5.64
user 0.40
sys 5.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/328916/ft1_filtered_4FGL_J0221.5+2513_daily_bin1551.fits scfile=/scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits outfile=/scratch/kocevski/328916/cmap_HighResolution_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.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 6.00
user 0.41
sys 5.47

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/328916/ft1_filtered_4FGL_J0221.5+2513_daily_bin1551.fits', '/scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits', expMap='/scratch/kocevski/328916/expmap_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.fits', expCube='/scratch/kocevski/328916/ltcube_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/328916/Model_4FGL_J0221.5+2513_daily_bin1551.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/328916/ft1_filtered_4FGL_J0221.5+2513_daily_bin1551.fits
Spacecraft file(s): /scratch/kocevski/328916/ft2_4FGL_J0221.5+2513_daily_bin1551.fits
Exposure map: /scratch/kocevski/328916/expmap_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.fits
Exposure cube: /scratch/kocevski/328916/ltcube_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/328916/Model_4FGL_J0221.5+2513_daily_bin1551.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) = 199.191697019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14615E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .76234E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    44.564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4025.3       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10278E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    1017.1       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22210E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6715       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11350E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    58.783       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .27744       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=   198.3236     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     4161 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    315.32        .20484E-03** at limit **
   2  Prefactor     .10000E-03    558.45        .27302E-03** at limit **
   3  norm          .10000E-03    10.579       -.25603E-08** at limit **
   4  Prefactor     .10000E-03    1762.6       -.16447E-03** at limit **
   5  Prefactor    10000.0        9999.8        .31228E-03** at limit **
   6  norm         10000.0        6319.4        .53719E-03** at limit **
   7  Prefactor    10000.0        6397.9        .45357E-02** at limit **
   8  Prefactor     .10000E-03    1511.7       -.74344E-03** at limit **
   9  Prefactor    10000.0        6526.0        .45611E-03** at limit **
  10  Prefactor    10000.0        7040.2        .39205E-03** at limit **
  11  norm          44.610        85.476        .58918E-04   -.17905E-04
  12  Prefactor     4018.4        6855.4       -.13950E-02   -.30185E-05
  13  norm          .10000E-03    24.151       -.15344E-06** at limit **
  14  norm         10000.0        5847.3        .75970E-02** at limit **
  15  Prefactor    10000.0        9400.5        .10732E-02** at limit **
  16  Prefactor    10000.0        8596.0        .17292E-02** at limit **
  17  norm          .10000E-03    12.126        .22806E-06** at limit **
  18  Prefactor     .10000E-03    7667.3       -.16673E-02** at limit **
  19  norm          1016.8        733.38       -.12383E-03   -.27107E-06
  20  Prefactor     .10000E-03    1579.7       -.78569E-03** at limit **
  21  Prefactor     5.7552        1722.3        .33975E-03    .20490E-04
  22  Prefactor     .10000E-03    253.51       -.15333E-03** at limit **
  23  Prefactor     .10001E-03    111.90        .46421E-05** at limit **
  24  norm          58.788        78.046        .30153E-06   -.58593E-05
  25  Normalizat    .10000E-01    .45403        .14153E-04** at limit **
  26  Prefactor     .27744        .18230        .18096E-04   -.85958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 44.6101
  Prefactor  = 4018.42
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 1016.75
  Prefactor  = 0.000100003
  Prefactor  = 5.75524
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 58.7878
  Normalizat = 0.01
  Prefactor  = 0.277443
 **********
 **   18 **HESSE 
 **********

 FCN=   198.3236     FROM HESSE     STATUS=OK           434 CALLS     4595 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    315.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    558.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.583        .44796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1763.0        .20931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9999.9        .21284E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        6318.9        .20039E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        6398.6        .18575E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1511.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        6525.2        .20443E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        7040.0        .20831E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          44.610        84.764        .60058E-04   -1.4371    
  12  Prefactor     4018.4        6855.0        .40782E-04   -.19760    
  13  norm          .10000E-03    24.164        .67059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        5846.9        .19472E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9401.5        .19750E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        8595.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.127        .47958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7667.1        .18149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1016.8        731.91        .66166E-04   -.92173    
  20  Prefactor     .10000E-03    1579.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7552        1683.7        .16867E-03   -1.5228    
  22  Prefactor     .10000E-03    253.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    111.96        .14594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          58.788        78.049        .26164E-03   -1.4173    
  25  Normalizat    .10000E-01    .46161        .57922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .27744        .17887        .14068E-03   -1.2361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67919e-09
Minuit parameter uncertainties:
  1  3.72109e-06
  2  6.20858e-06
  3  6.9384e-07
  4  0.000127536
  5  0.0247276
  6  0.00606585
  7  0.00140404
  8  0.000157005
  9  0.0109369
  10  0.00291587
  11  84.9942
  12  5001.28
  13  6.3525e-05
  14  0.00429274
  15  0.0209811
  16  0.00880518
  17  8.11171e-05
  18  0.00822411
  19  739.26
  20  0.00462321
  21  202.931
  22  0.00045509
  23  0.00218797
  24  78.185
  25  3.07123e-05
  26  0.179228
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e+04  4.293e-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:  2.774e-01  1.792e-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  3.071e-05  1.000e-02  1.000e+01 ( 1.000e+00)

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

TS (Fixed Index): 0.08
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/328916/likelihoodResults_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.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) = 185.542841788
delta logL = 12.7807088839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 185.540508777
delta logL = 12.7830418948

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=   185.5405     FROM MIGRAD    STATUS=CONVERGED      9 CALLS       48 TOTAL
                     EDM=   .98E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

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

 FCN=   185.5405     FROM HESSE     STATUS=OK             5 CALLS       53 TOTAL
                     EDM=   .98E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .58611E-01    .14428E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82031e-14
Minuit parameter uncertainties:
  1  3.68781e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/328916': 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) = 185.540508777
delta logL = 12.7830418948

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  3.688e-08  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:  2.778e-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.007e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 25.65
Ra Dec: 35.381 25.230
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.90e-04 +/- 1.02e-10
Energy Flux (Free Index): 1.83e-01 +/- 1.71e-08

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/328916/cmap_HighResolution_641347201_641606401_4FGL_J0221.5+2513_daily_bin1551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-2.04e+03', comment='SUCCESS', energy_flux2='1.83e-01', dlogl='1.28e+01', photon_flux2='9.90e-04', job_status='DONE', time_completed='2021-08-15 18:52:57.722833', photon_index_error2='0.00', photon_index2='5.00', ts='0.08', fit_tolerance='1e-08', GAL='0.28', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.71e-08', EG='0.01', time_epoch_completed='1629078777.72', return_code='0', job_id='328916', GAL2='0.28', EG2='0.01', return_code2='0', photon_flux_error2='1.02e-10', ts2='25.65', photon_index='1.74' WHERE bin_id='1551' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:52:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 328916: <4FGL_J0221.5+2513_daily_bin1551> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1551> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 18:40:51 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 18:42:10 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:10 2021
Terminated at Sun Aug 15 18:53:01 2021
Results reported at Sun Aug 15 18:53:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1551 35.3809 25.2305 641347201 641606401 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 :                                   501.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            730 sec.

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

