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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1604
RA = 35.3809, Dec = 25.2305
tmin = 655084801, tmax = 655344001
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='4267', job_status='RUN', time_executed='2021-10-08 00:04:55.072870', time_epoch_executed='1633676695.07' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4267/ft1_4FGL_J0221.5+2513_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4267/ft2_4FGL_J0221.5+2513_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4267/ft1_4FGL_J0221.5+2513_daily_bin1604.fits outfile=/scratch/kocevski/4267/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1604.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=655084801.0 tmax=655344001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.94
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4267/ft2_4FGL_J0221.5+2513_daily_bin1604.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/4267/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4267/ft1_filtered_4FGL_J0221.5+2513_daily_bin1604.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4267/ft1_filtered_4FGL_J0221.5+2513_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4267/ft2_4FGL_J0221.5+2513_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4267/ltcube_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.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/4267/ft2_4FGL_J0221.5+2513_daily_bin1604.fits
.....................!
real 14.83
user 14.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4267/ft1_filtered_4FGL_J0221.5+2513_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4267/ft2_4FGL_J0221.5+2513_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4267/ltcube_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.fits outfile=/scratch/kocevski/4267/expmap_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.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/4267/ltcube_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.fits
.....................!
real 192.23
user 186.37
sys 5.43

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/4267/ft1_filtered_4FGL_J0221.5+2513_daily_bin1604.fits scfile=/scratch/kocevski/4267/ft2_4FGL_J0221.5+2513_daily_bin1604.fits outfile=/scratch/kocevski/4267/cmap_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.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 0.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4267/ft1_filtered_4FGL_J0221.5+2513_daily_bin1604.fits scfile=/scratch/kocevski/4267/ft2_4FGL_J0221.5+2513_daily_bin1604.fits outfile=/scratch/kocevski/4267/cmap_HighResolution_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.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 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70223E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12716E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    131.31       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .41594       1.0000         .10000E-03   10000.    
    14 'norm      '    .11544E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15851E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0436       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.158       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10030E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.6409       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1658.456     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2579 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27243E-03    4.7244       -.19927E-04** at limit **
   2  Prefactor     .98191E-02    8.2848       -.28533E-04    .91136E-03
   3  norm          .10000E-03    6.9775       -.64054E-05** at limit **
   4  Prefactor     131.28        7.6112       -.33494E-05    .11680E-01
   5  Prefactor     .11112E-03    70.129       -.13148E-04** at limit **
   6  norm          .10000E-03    9.5472        .58365E-05** at limit **
   7  Prefactor     .12895E-02    112.98       -.94678E-04** at limit **
   8  Prefactor     .10000E-03    14.974        .36077E-05** at limit **
   9  Prefactor     .10593E-03    40.600        .77877E-04** at limit **
  10  Prefactor     .10000E-03    9.5558        .59412E-05** at limit **
  11  norm          .10000E-03    13.570        .68981E-05** at limit **
  12  Prefactor     .10444E-03    82.711       -.78869E-04** at limit **
  13  norm          .41559        2.7927        .13404E-04    .35614E-04
  14  norm          .11740E-03    44.484        .26671E-04** at limit **
  15  Prefactor     .11756E-03    45.348        .24807E-04** at limit **
  16  Prefactor     .10363E-03    40.927        .81761E-04** at limit **
  17  norm          9.6100        1.1886        .13040E-05    .63089E-02
  18  Prefactor     .10001E-03    31.260       -.11208E-04** at limit **
  19  norm          2.0432        2.4356        .80072E-05    .39586E-04
  20  Prefactor     .11535E-03    60.194       -.70025E-07** at limit **
  21  Prefactor     28.163        1.1308        .13218E-06    .18601E-03
  22  Prefactor     .10001E-03    24.759       -.28323E-04** at limit **
  23  Prefactor     .10955E-03    38.282        .63745E-04** at limit **
  24  norm          .10000E-03    12.194        .54813E-05** at limit **
  25  Normalizat    .10000E-01    6.7624       -.88392E-04** at limit **
  26  Prefactor     1.6409        .16314       -.14789E-04    .18405E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000272427
  Prefactor  = 0.00981905
  norm       = 0.0001
  Prefactor  = 131.277
  Prefactor  = 0.000111121
  norm       = 0.0001
  Prefactor  = 0.00128948
  Prefactor  = 0.0001
  Prefactor  = 0.000105935
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000104442
  norm       = 0.415587
  norm       = 0.000117395
  Prefactor  = 0.000117563
  Prefactor  = 0.000103633
  norm       = 9.60996
  Prefactor  = 0.000100011
  norm       = 2.04316
  Prefactor  = 0.000115354
  Prefactor  = 28.1629
  Prefactor  = 0.000100006
  Prefactor  = 0.000109553
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.64087
 **********
 **   18 **HESSE 
 **********

 FCN=   1658.456     FROM HESSE     STATUS=OK           492 CALLS     3071 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27243E-03    1530.8        .10489E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .98191E-02    7245.7        .90865E-02   -1.5688    
   3  norm          .10000E-03    6.9830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     131.28        225.95        .87845E-03   -1.3411    
   5  Prefactor     .11112E-03    259.58        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12895E-02    754.01        .90712E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10593E-03    126.47        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10444E-03    85.253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .41559        2.8597        .10923E-01   -1.5579    
  14  norm          .11740E-03    213.83        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11756E-03    215.64        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10363E-03    132.89        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.6100        6.7705        .32320E-02   -1.5088    
  18  Prefactor     .10001E-03    31.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0432        2.4581        .72311E-02   -1.5422    
  20  Prefactor     .11535E-03    242.57        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.163        36.568        .18875E-02   -1.4646    
  22  Prefactor     .10001E-03    24.782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10955E-03    117.13        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    1.4157        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.6409        .23689        .28377E-01   -.73667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36568e-06
Minuit parameter uncertainties:
  1  1.05573
  2  14.5007
  3  2.42961e-05
  4  227.462
  5  0.107927
  6  9.35983e-05
  7  1.91872
  8  5.4971e-05
  9  0.0549096
  10  0.000173397
  11  2.37116e-05
  12  0.0389744
  13  2.18022
  14  0.122417
  15  0.12353
  16  0.0440414
  17  6.77104
  18  0.00115982
  19  2.45823
  20  0.122553
  21  36.5972
  22  0.000794883
  23  0.0670329
  24  1.02658e-06
  25  9.23098e-06
  26  0.237047
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.174e-04  1.224e-01  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:  1.641e+00  2.370e-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  9.231e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.381 25.230
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4267/likelihoodResults_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1658.45554423
delta logL = -2.32495074215e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1658.4555225
delta logL = -1.51961603478e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10316E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8844       1.0000          .0000       5.0000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6409       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1658.456     FROM MIGRAD    STATUS=FAILED       111 CALLS      279 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10041E-03    8124.5        .18142E-01** at limit **
   2  alpha         1.5618        2.7776        .20000        .14523E-07
   3  Normalizat    .10000E-01    .32386        .19080E-01** at limit **
   4  Prefactor     1.6409        .44573E-01    .16670E-03    .72040E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1658.456     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      446 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10041E-03    8124.5        .20431E-02** at limit **
   2  alpha         1.5618        2.7776        .57220E-06    .14523E-07
   3  Normalizat    .10000E-01    .32386        .74702E-02** at limit **
   4  Prefactor     1.6409        .44573E-01    .12325E-08    .72040E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1658.456     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      474 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10021E-03    1572.4        .36285E-02** at limit **
   2  alpha         1.5995        4.1840        .80000E-02    .23093E-07
   3  Normalizat    .10000E-01    6.7646        .38161E-02** at limit **
   4  Prefactor     1.6409        .15524        .33341E-04    .72136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100213
  alpha      = 1.59947
  Normalizat = 0.01
  Prefactor  = 1.64087
 **********
 **   18 **HESSE 
 **********

 FCN=   1658.456     FROM HESSE     STATUS=OK            29 CALLS      503 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10021E-03    281.22        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5995        4.1038        .16000       -.36849    
   3  Normalizat    .10000E-01    6.7650        .76322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6409        .15518        .66681E-05   -.73667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34773e-09
Minuit parameter uncertainties:
  1  0.0155637
  2  3659.77
  3  1.47131e-06
  4  0.155228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4267': 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) = 1658.45552094
delta logL = 4.22664925281e-08

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.002e-04  1.556e-02  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.599e+00  3.660e+03  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:  1.641e+00  1.552e-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.471e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.381 25.230

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/4267/cmap_HighResolution_655084801_655344001_4FGL_J0221.5+2513_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-04', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-10-08 00:12:03.320446', job_id='4267', GAL2='1.64', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633677123.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.64', dlogl='4.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1604' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 4267: <4FGL_J0221.5+2513_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:42 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:02:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:02:41 2021
Terminated at Fri Oct  8 00:12:04 2021
Results reported at Fri Oct  8 00:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1604 35.3809 25.2305 655084801 655344001 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 :                                   426.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            682 sec.

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

