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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1622
RA = 35.3809, Dec = 25.2305
tmin = 659750401, tmax = 660009601
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='158981', job_status='RUN', time_executed='2021-12-07 13:14:31.311242', time_epoch_executed='1638911671.31' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158981/ft1_4FGL_J0221.5+2513_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158981/ft2_4FGL_J0221.5+2513_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158981/ft1_4FGL_J0221.5+2513_daily_bin1622.fits outfile=/scratch/kocevski/158981/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1622.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=659750401.0 tmax=660009601.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.39
user 2.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158981/ft2_4FGL_J0221.5+2513_daily_bin1622.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/158981/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/158981/ft1_filtered_4FGL_J0221.5+2513_daily_bin1622.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158981/ft1_filtered_4FGL_J0221.5+2513_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/158981/ft2_4FGL_J0221.5+2513_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/158981/ltcube_659750401_660009601_4FGL_J0221.5+2513_daily_bin1622.fits outfile=/scratch/kocevski/158981/expmap_659750401_660009601_4FGL_J0221.5+2513_daily_bin1622.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/158981/ltcube_659750401_660009601_4FGL_J0221.5+2513_daily_bin1622.fits
.....................!
real 191.48
user 186.41
sys 4.55

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/158981/ft1_filtered_4FGL_J0221.5+2513_daily_bin1622.fits scfile=/scratch/kocevski/158981/ft2_4FGL_J0221.5+2513_daily_bin1622.fits outfile=/scratch/kocevski/158981/cmap_659750401_660009601_4FGL_J0221.5+2513_daily_bin1622.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158981/ft1_filtered_4FGL_J0221.5+2513_daily_bin1622.fits scfile=/scratch/kocevski/158981/ft2_4FGL_J0221.5+2513_daily_bin1622.fits outfile=/scratch/kocevski/158981/cmap_HighResolution_659750401_660009601_4FGL_J0221.5+2513_daily_bin1622.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.799       1.0000         .10000E-03   10000.    
     2 'Prefactor '    304.41       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91461E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9812       1.0000         .10000E-03   10000.    
    19 'norm      '    .13169E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    203.42       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    396.47       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15608E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    79.374       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7439       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71845       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=   921.3867     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3590 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.806        146.85       -.12891E-05    .50572E-05
   2  Prefactor     304.70        380.26       -.19543E-05    .54752E-05
   3  norm          2.0362        2.3069       -.15446E-06   -.10681E-03
   4  Prefactor     .10007E-03    165.92       -.10528E-04** at limit **
   5  Prefactor     .10000E-03    83.914       -.10112E-05** at limit **
   6  norm          .10000E-03    17.348       -.71402E-06** at limit **
   7  Prefactor     .10000E-03    278.05       -.98018E-06** at limit **
   8  Prefactor     9.6030        9.2202       -.99449E-07    .12083E-03
   9  Prefactor     .10000E-03    45.796       -.11610E-05** at limit **
  10  Prefactor     .10000E-03    10.112       -.19644E-06** at limit **
  11  norm          .10000E-03    65.448       -.10929E-06** at limit **
  12  Prefactor     .10000E-03    144.31       -.95003E-06** at limit **
  13  norm          .10000E-03    11.011       -.82318E-06** at limit **
  14  norm          .10000E-03    217.10        .58151E-06** at limit **
  15  Prefactor     .10000E-03    1488.9       -.38460E-05** at limit **
  16  Prefactor     .10000E-03    248.24       -.66526E-06** at limit **
  17  norm          .10000E-03    22.005       -.58426E-06** at limit **
  18  Prefactor     4.8388        471.17       -.22038E-05   -.91051E-05
  19  norm          .10000E-03    18.924       -.73179E-05** at limit **
  20  Prefactor     203.21        298.03       -.19731E-05    .17540E-04
  21  Prefactor     .10000E-03    101.49       -.12371E-05** at limit **
  22  Prefactor     396.65        407.06        .11859E-05   -.32262E-05
  23  Prefactor     .10004E-03    9207.5       -.28856E-04** at limit **
  24  norm          79.413        152.73        .19237E-05   -.45902E-05
  25  Normalizat    1.7429        .88499        .19469E-04    .53190E-04
  26  Prefactor     .71885        .43493       -.10439E-04    .14220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8062
  Prefactor  = 304.696
  norm       = 2.03624
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.60305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.83878
  norm       = 0.0001
  Prefactor  = 203.209
  Prefactor  = 0.0001
  Prefactor  = 396.653
  Prefactor  = 0.000100041
  norm       = 79.4133
  Normalizat = 1.74288
  Prefactor  = 0.718852
 **********
 **   18 **HESSE 
 **********

 FCN=   921.3867     FROM HESSE     STATUS=OK           440 CALLS     4030 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.806        147.26        .82110E-04   -1.4732    
   2  Prefactor     304.70        380.06        .11642E-03   -1.2199    
   3  norm          2.0362        2.2989        .43450E-04   -1.5423    
   4  Prefactor     .10007E-03    178.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    83.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.455        .12364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    278.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6030        9.2290        .85702E-04   -1.5088    
   9  Prefactor     .10000E-03    46.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.116        .94315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    65.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    144.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.227        .98603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    217.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1512.7        .20820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    248.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    22.099        .13919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8388        473.69        .18019E-03   -1.5268    
  19  norm          .10000E-03    18.905        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     203.21        296.28        .14168E-03   -1.2847    
  21  Prefactor     .10000E-03    101.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     396.65        406.88        .10250E-03   -1.1698    
  23  Prefactor     .10004E-03    9203.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          79.413        152.65        .22539E-03   -1.3923    
  25  Normalizat    1.7429        .89247        .35408E-03   -.71164    
  26  Prefactor     .71885        .43810        .24656E-03   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34886e-10
Minuit parameter uncertainties:
  1  118.852
  2  383.232
  3  2.29902
  4  0.00702874
  5  6.33864e-05
  6  0.000118822
  7  1.05622e-05
  8  9.23032
  9  0.000290608
  10  2.56229e-05
  11  0.000322041
  12  0.000815108
  13  0.000121586
  14  0.00019296
  15  0.000927116
  16  0.000372713
  17  9.45142e-05
  18  96.5472
  19  0.000185742
  20  298.503
  21  9.74865e-05
  22  409.891
  23  0.0470225
  24  153.411
  25  0.900967
  26  0.440229
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  1.930e-04  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:  7.189e-01  4.402e-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.743e+00  9.010e-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: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158981/likelihoodResults_659750401_660009601_4FGL_J0221.5+2513_daily_bin1622.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) = 921.386697299
delta logL = -2.17978712271e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 921.386675964
delta logL = -4.62565708403e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0248       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71886       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=   921.3867     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      275 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    8472.5        .18142E-01** at limit **
   2  alpha         1.1188        3.5421        .16944        .47889E-08
   3  Normalizat    1.7429        .12884        .35410E-03    .16725E-04
   4  Prefactor     .71885        .61298E-01    .24653E-03    .25011E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100139
  alpha      = 1.11881
  Normalizat = 1.74289
  Prefactor  = 0.718847
 **********
 **   18 **HESSE 
 **********

 FCN=   921.3867     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    272.45        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1188        2.6018        .67776E-02   -.58533    
   3  Normalizat    1.7429        .83465        .70820E-04   -.71164    
   4  Prefactor     .71885        .39876        .98613E-05   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44896e-10
Minuit parameter uncertainties:
  1  0.0123822
  2  2505.08
  3  0.841578
  4  0.400362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158981': 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) = 921.386675466
delta logL = 3.46623210135e-08

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.001e-04  1.238e-02  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.119e+00  2.505e+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:  7.188e-01  4.004e-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.743e+00  8.416e-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/158981/cmap_HighResolution_659750401_660009601_4FGL_J0221.5+2513_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-04', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-12-07 13:20:48.359922', job_id='158981', GAL2='0.72', fit_tolerance='1e-08', EG2='1.74', EG='1.74', time_epoch_completed='1638912048.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1622' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:20:48 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 158981: <4FGL_J0221.5+2513_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1622> 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) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:11:30 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:30 2021
Terminated at Tue Dec  7 13:20:49 2021
Results reported at Tue Dec  7 13:20:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1622 35.3809 25.2305 659750401 660009601 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 :                                   375.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            883 sec.

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

