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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1619
RA = 35.3809, Dec = 25.2305
tmin = 658972801, tmax = 659232001
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='158978', job_status='RUN', time_executed='2021-12-07 13:13:40.562563', time_epoch_executed='1638911620.56' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158978/ft1_4FGL_J0221.5+2513_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158978/ft2_4FGL_J0221.5+2513_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158978/ft1_4FGL_J0221.5+2513_daily_bin1619.fits outfile=/scratch/kocevski/158978/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1619.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=658972801.0 tmax=659232001.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.93
user 2.74
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158978/ft1_filtered_4FGL_J0221.5+2513_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/158978/ft2_4FGL_J0221.5+2513_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/158978/ltcube_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.fits outfile=/scratch/kocevski/158978/expmap_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.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/158978/ltcube_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.fits
.....................!
real 192.59
user 186.65
sys 5.54

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/158978/ft1_filtered_4FGL_J0221.5+2513_daily_bin1619.fits scfile=/scratch/kocevski/158978/ft2_4FGL_J0221.5+2513_daily_bin1619.fits outfile=/scratch/kocevski/158978/cmap_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158978/ft1_filtered_4FGL_J0221.5+2513_daily_bin1619.fits scfile=/scratch/kocevski/158978/ft2_4FGL_J0221.5+2513_daily_bin1619.fits outfile=/scratch/kocevski/158978/cmap_HighResolution_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.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.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158978/ft1_filtered_4FGL_J0221.5+2513_daily_bin1619.fits', '/scratch/kocevski/158978/ft2_4FGL_J0221.5+2513_daily_bin1619.fits', expMap='/scratch/kocevski/158978/expmap_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.fits', expCube='/scratch/kocevski/158978/ltcube_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158978/Model_4FGL_J0221.5+2513_daily_bin1619.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/158978/ft1_filtered_4FGL_J0221.5+2513_daily_bin1619.fits
Spacecraft file(s): /scratch/kocevski/158978/ft2_4FGL_J0221.5+2513_daily_bin1619.fits
Exposure map: /scratch/kocevski/158978/expmap_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.fits
Exposure cube: /scratch/kocevski/158978/ltcube_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158978/Model_4FGL_J0221.5+2513_daily_bin1619.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 446.618454499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 440.17928748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.564       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .55989       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3551       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    113.60       1.0000         .10000E-03   10000.    
     6 'norm      '    8.8208       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47830E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10223E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    124.99       1.0000         .10000E-03   10000.    
    11 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .61412E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3820       1.0000         .10000E-03   10000.    
    17 'norm      '    70.972       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31098       1.0000         .10000E-03   10000.    
    19 'norm      '    .13429E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .68191       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2802       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5742       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2433       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .53895E-07   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=   440.0330     FROM MIGRAD    STATUS=CONVERGED    312 CALLS      784 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.637        95.734       -.23388E-04    .21109E-03
   2  Prefactor     .10000E-03    275.24       -.21645E-06** at limit **
   3  norm          3.4114        2.3335        .12327E-06    .70905E-04
   4  Prefactor     15.232        54.543        .17527E-04   -.10014E-02
   5  Prefactor     114.63        15.873       -.11811E-05    .21020E-02
   6  norm          8.9333        15.830        .25696E-06   -.72633E-04
   7  Prefactor     .10770E-03    1468.3        .17962E-04** at limit **
   8  Prefactor     .10000E-03    53.340        .41450E-05** at limit **
   9  Prefactor     .10000E-03    17.703        .15941E-08** at limit **
  10  Prefactor     106.15        30.044        .19317E-05   -.52819E-02
  11  norm          .10000E-03    7.1090       -.51813E-08** at limit **
  12  Prefactor     .10000E-03    21.970       -.14534E-06** at limit **
  13  norm          .10000E-03    1.0162       -.51057E-08** at limit **
  14  norm          .10003E-03    413.94       -.19056E-05** at limit **
  15  Prefactor     371.17        754.55       -.20288E-04    .49575E-03
  16  Prefactor     .10608E-03    494.16       -.31715E-05** at limit **
  17  norm          71.089        18.111        .23072E-05    .10241E-01
  18  Prefactor     .10009E-03    404.45        .21252E-05** at limit **
  19  norm          .10000E-03    15.311        .94185E-07** at limit **
  20  Prefactor     .10015E-03    1234.5       -.19257E-04** at limit **
  21  Prefactor     .10042E-03    1902.7       -.39490E-05** at limit **
  22  Prefactor     2.5180        1.0212         .0000         .0000    
  23  Prefactor     .77603        7.6283        .34530E-05    .62275E-02
  24  norm          1.0397        1.2531         .0000         .0000    
  25  Normalizat    1.2206        .52606        .42340E-05    .13022E-04
  26  Prefactor     .16653E-14    .56486       -.17198E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6372
  Prefactor  = 0.000100003
  norm       = 3.41137
  Prefactor  = 15.2322
  Prefactor  = 114.627
  norm       = 8.9333
  Prefactor  = 0.000107702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.154
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100033
  Prefactor  = 371.173
  Prefactor  = 0.000106076
  norm       = 71.0892
  Prefactor  = 0.000100092
  norm       = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 0.000100419
  Prefactor  = 2.51803
  Prefactor  = 0.776035
  norm       = 1.03974
  Normalizat = 1.22061
  Prefactor  = 1.66533e-15
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   440.0330     FROM HESSE     STATUS=FAILED        93 CALLS      877 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.637        84.514        .19807E-02   -1.4821    
   2  Prefactor     .10000E-03    258.95        .11513E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4114        2.1545        .54109E-02   -1.5339    
   4  Prefactor     15.232        51.639        .30280E-02   -1.4927    
   5  Prefactor     114.63        87.483        .94362E-03   -1.3563    
   6  norm          8.9333        15.297        .33740E-02   -1.5110    
   7  Prefactor     .10770E-03    1477.3        .53936E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    53.058        .96315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.807        .10374E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     106.15        76.574        .90013E-03   -1.3644    
  11  norm          .10000E-03    7.1036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0170        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10003E-03    409.98        .10526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     371.17        708.13        .20356E-02   -1.1831    
  16  Prefactor     .10608E-03    488.41        .92541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          71.089        48.382        .11913E-02   -1.4020    
  18  Prefactor     .10009E-03    397.92        .10473E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10015E-03    1236.7        .11992E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10042E-03    1921.5        .98079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     561.02        558.40         .0000       -1.5391    
  23  Prefactor     .77603        .32088        .34530E-05   -1.5532    
  24  norm          1.0397        1.2531         .0000       -1.5504    
  25  Normalizat    1.2206        1.0843        .42340E-05   -.85968    
  26  Prefactor     .16653E-14    .25504       -.17198E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.36378e-10
Minuit parameter uncertainties:
  1  81.6729
  2  0.00181263
  3  2.15457
  4  51.7912
  5  87.5813
  6  15.3035
  7  0.218974
  8  0.000195134
  9  2.68726e-06
  10  76.645
  11  2.28139e-07
  12  5.11327e-06
  13  6.43238e-08
  14  0.00745791
  15  725.837
  16  0.109861
  17  48.4092
  18  0.0122046
  19  5.39562e-05
  20  0.0282463
  21  0.0587758
  22  1.02121
  23  0.320884
  24  1.25317
  25  1.10537
  26  4.06487e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 440.032955699

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  7.458e-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:  1.665e-15  4.065e-08  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.221e+00  1.105e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/158978/likelihoodResults_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.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) = 440.03296741
delta logL = -1.17115772582e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 440.032955933
delta logL = -2.34312892644e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0659       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10997E-11   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=   440.0330     FROM MIGRAD    STATUS=FAILED       110 CALLS      296 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    8613.3        .18142E-01** at limit **
   2  alpha         1.3089        3.0024        .17028        .32777E-07
   3  Normalizat    1.2206        .84920E-01    .25019E-03    .18920E-05
   4  Prefactor     .10447E-11    .24917E-01    .74784E-02** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   440.0330     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      463 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    8613.3        .37178E-02** at limit **
   2  alpha         1.3089        3.0024        .70080E-06    .32777E-07
   3  Normalizat    1.2206        .84920E-01    .33351E-07    .18920E-05
   4  Prefactor     .10447E-11    .24917E-01    .91096E-04** at limit **
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   440.0330     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      493 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10050E-03    5791.9        .36285E-02** at limit **
   2  alpha         1.2429        3.9644        .68112E-01    .20783E-07
   3  Normalizat    1.2206        .26806        .50038E-04    .18886E-05
   4  Prefactor     .10425E-11    .24739        .14957E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100503
  alpha      = 1.24292
  Normalizat = 1.2206
  Prefactor  = 1.0425e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   440.0330     FROM HESSE     STATUS=OK            23 CALLS      516 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10050E-03    516.73        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2429        2.8822        .13622E-01   -.52687    
   3  Normalizat    1.2206        .39669        .10008E-04   -.85968    
   4  Prefactor     .10425E-11    .53790        .29914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65242e-09
Minuit parameter uncertainties:
  1  0.0325276
  2  3628.86
  3  0.397679
  4  1.51139e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158978': 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) = 440.032955684
delta logL = 1.48277194967e-08

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.005e-04  3.253e-02  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.243e+00  3.629e+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.042e-12  1.511e-06  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.221e+00  3.977e-01  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/158978/cmap_HighResolution_658972801_659232001_4FGL_J0221.5+2513_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-04', job_status='DONE', photon_flux_upper_limit='2.54e-07', time_completed='2021-12-07 13:19:07.793978', job_id='158978', GAL2='0.00', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1638911947.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='1.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1619' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:19:07 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 158978: <4FGL_J0221.5+2513_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1619> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:06:06 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:11:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:11:23 2021
Terminated at Tue Dec  7 13:19:08 2021
Results reported at Tue Dec  7 13:19:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1619 35.3809 25.2305 658972801 659232001 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 :                                   327.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             430.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   465 sec.
    Turnaround time :                            782 sec.

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

