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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1445
RA = 35.3809, Dec = 25.2305
tmin = 613872001, tmax = 614131201
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='328737', job_status='RUN', time_executed='2021-08-15 18:43:38.496593', time_epoch_executed='1629078218.5' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/328737

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/328737/ft1_4FGL_J0221.5+2513_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/328737/ft2_4FGL_J0221.5+2513_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/328737/ft1_4FGL_J0221.5+2513_daily_bin1445.fits outfile=/scratch/kocevski/328737/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1445.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=613872001.0 tmax=614131201.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 10.28
user 2.06
sys 8.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/328737/ft2_4FGL_J0221.5+2513_daily_bin1445.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/328737/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/328737/ft1_filtered_4FGL_J0221.5+2513_daily_bin1445.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 7.96
user 0.34
sys 7.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/328737/ft1_filtered_4FGL_J0221.5+2513_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/328737/ft2_4FGL_J0221.5+2513_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/328737/ltcube_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.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/328737/ft2_4FGL_J0221.5+2513_daily_bin1445.fits
.....................!
real 24.40
user 14.58
sys 9.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/328737/ft1_filtered_4FGL_J0221.5+2513_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/328737/ft2_4FGL_J0221.5+2513_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/328737/ltcube_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.fits outfile=/scratch/kocevski/328737/expmap_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.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/328737/ltcube_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.fits
.....................!
real 201.62
user 185.47
sys 15.36

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/328737/ft1_filtered_4FGL_J0221.5+2513_daily_bin1445.fits scfile=/scratch/kocevski/328737/ft2_4FGL_J0221.5+2513_daily_bin1445.fits outfile=/scratch/kocevski/328737/cmap_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.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 8.42
user 0.37
sys 7.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/328737/ft1_filtered_4FGL_J0221.5+2513_daily_bin1445.fits scfile=/scratch/kocevski/328737/ft2_4FGL_J0221.5+2513_daily_bin1445.fits outfile=/scratch/kocevski/328737/cmap_HighResolution_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.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 8.44
user 0.38
sys 7.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.893       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .69634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1417       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.264       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1528       1.0000         .10000E-03   10000.    
    14 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.603       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7041       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.657       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.000       1.0000         .10000E-03   10000.    
    24 'norm      '    7.8160       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70994       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90118       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=   4388.457     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3105 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.887        33.752       -.74005E-05   -.28674E-05
   2  Prefactor     .10000E-03    48.287       -.14942E-04** at limit **
   3  norm          .69629        .53750        .76364E-07    .21097E-03
   4  Prefactor     .10000E-03    7.3739        .40126E-07** at limit **
   5  Prefactor     .10000E-03    20.170       -.12394E-05** at limit **
   6  norm          .10000E-03    10.678       -.14331E-06** at limit **
   7  Prefactor     .10000E-03    53.663        .14794E-04** at limit **
   8  Prefactor     3.1410        3.5083        .19309E-06   -.35676E-03
   9  Prefactor     24.929        13.570        .85214E-06   -.36068E-05
  10  Prefactor     .10000E-03    2.7161       -.10623E-06** at limit **
  11  norm          .10000E-03    2.5025       -.34613E-07** at limit **
  12  Prefactor     14.257        21.271        .37746E-06   -.22439E-04
  13  norm          1.1528        .94199        .58628E-07   -.22010E-04
  14  norm          .10000E-03    106.47       -.65142E-05** at limit **
  15  Prefactor     61.488        52.950       -.30141E-05   -.67421E-05
  16  Prefactor     38.634        88.397        .46034E-04   -.11130E-05
  17  norm          6.7613        4.1864        .47403E-07   -.17799E-03
  18  Prefactor     .10000E-03    8.8277       -.17505E-06** at limit **
  19  norm          3.7042        1.2049       -.60191E-07    .17588E-07
  20  Prefactor     38.656        39.676        .14654E-05   -.10181E-04
  21  Prefactor     1.7530        60.864        .12106E-05   -.15305E-03
  22  Prefactor     .10000E-03    23.472        .16425E-05** at limit **
  23  Prefactor     38.972        79.084       -.37627E-04    .64776E-07
  24  norm          7.8092        17.122        .30738E-06   -.23407E-04
  25  Normalizat    .71014        .29354       -.53015E-05    .22894E-05
  26  Prefactor     .90114        .12626        .53391E-06   -.65557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8867
  Prefactor  = 0.0001
  norm       = 0.696291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14104
  Prefactor  = 24.9292
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2572
  norm       = 1.15279
  norm       = 0.0001
  Prefactor  = 61.4884
  Prefactor  = 38.6338
  norm       = 6.76125
  Prefactor  = 0.0001
  norm       = 3.70423
  Prefactor  = 38.6563
  Prefactor  = 1.75302
  Prefactor  = 0.0001
  Prefactor  = 38.972
  norm       = 7.80915
  Normalizat = 0.710143
  Prefactor  = 0.901136
 **********
 **   18 **HESSE 
 **********

 FCN=   4388.457     FROM HESSE     STATUS=OK           458 CALLS     3563 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.887        33.783        .10379E-03   -1.4936    
   2  Prefactor     .10000E-03    48.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .69629        .53801        .41064E-04   -1.5541    
   4  Prefactor     .10000E-03    7.4352        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1410        3.4999        .12245E-03   -1.5353    
   9  Prefactor     24.929        13.500        .80223E-04   -1.4709    
  10  Prefactor     .10000E-03    2.7264        .10662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5083        .10227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.257        21.206        .10605E-03   -1.4953    
  13  norm          1.1528        .95201        .53189E-04   -1.5493    
  14  norm          .10000E-03    106.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.488        52.921        .51169E-04   -1.4138    
  16  Prefactor     38.634        88.384        .64510E-04   -1.4464    
  17  norm          6.7613        4.1724        .99338E-04   -1.5188    
  18  Prefactor     .10000E-03    8.8503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7042        1.2176        .35786E-04   -1.5323    
  20  Prefactor     38.656        40.057        .64465E-04   -1.4464    
  21  Prefactor     1.7530        58.799        .30993E-03   -1.5443    
  22  Prefactor     .10000E-03    23.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     38.972        79.091        .64182E-04   -1.4459    
  24  norm          7.8092        17.233        .14343E-03   -1.5149    
  25  Normalizat    .71014        .32104        .39394E-03   -1.0349    
  26  Prefactor     .90114        .14180        .17123E-03   -.96101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62775e-10
Minuit parameter uncertainties:
  1  33.8262
  2  8.23211e-05
  3  0.538011
  4  3.51245e-05
  5  3.06384e-07
  6  2.58943e-05
  7  6.15375e-07
  8  3.50013
  9  13.5012
  10  1.25783e-05
  11  2.10586e-06
  12  21.2172
  13  0.952027
  14  2.55293e-05
  15  52.9611
  16  88.6855
  17  4.17254
  18  2.05933e-06
  19  1.21766
  20  40.085
  21  20.3265
  22  1.19289e-05
  23  79.3046
  24  17.2441
  25  0.321892
  26  0.141859
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  2.553e-05  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:  9.011e-01  1.419e-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:  7.101e-01  3.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.381 25.230
Photon Flux Upper Limit: 3.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/328737/likelihoodResults_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.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) = 4388.45661137
delta logL = -4.45594178018e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4388.45661136
delta logL = -4.45489158665e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96323E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7436       1.0000          .0000       5.0000    
     3 'Normalizat'    .71014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90114       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.

 FCN=   4388.457     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      244 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    531.20        .18143E-01** at limit **
   2  alpha         2.3672        3.0247        .50000        .16144E-08
   3  Normalizat    .71014        .13951E-01    .39394E-03   -.59738E-05
   4  Prefactor     .90114        .68264E-02    .17123E-03   -.12761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36715
  Normalizat = 0.710142
  Prefactor  = 0.901136
 **********
 **   18 **HESSE 
 **********

 FCN=   4388.457     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6320.0        .36286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3672        2.9822        .50000       -.53164E-01
   3  Normalizat    .71014        .32569E-01    .15758E-04   -1.0349    
   4  Prefactor     .90114        .15937E-01    .34246E-04   -.96101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.05544e-12
Minuit parameter uncertainties:
  1  4.34622e-05
  2  4406.72
  3  0.0325703
  4  0.0159367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/328737': 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): 102
logL (Free Index) = 4388.45656671
delta logL = 1.03731508716e-07

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  4.346e-05  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  2.367e+00  4.407e+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:  9.011e-01  1.594e-02  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:  7.101e-01  3.257e-02  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/328737/cmap_HighResolution_613872001_614131201_4FGL_J0221.5+2513_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-05', job_status='DONE', photon_flux_upper_limit='3.17e-08', time_completed='2021-08-15 18:56:20.828574', job_id='328737', GAL2='0.90', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1629078980.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1445' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 328737: <4FGL_J0221.5+2513_daily_bin1445> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1445> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 18:40:38 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 18:41:08 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:41:08 2021
Terminated at Sun Aug 15 18:56:23 2021
Results reported at Sun Aug 15 18:56:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1445 35.3809 25.2305 613872001 614131201 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 :                                   835.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            945 sec.

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

