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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1299
RA = 185.378, Dec = 28.2382
tmin = 576028801, tmax = 576288001
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='532356', job_status='RUN', time_executed='2021-09-05 10:01:13.200245', time_epoch_executed='1630861273.2' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532356

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532356/ft1_4FGL_J1221.5+2814_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532356/ft1_4FGL_J1221.5+2814_daily_bin1299.fits outfile=/scratch/kocevski/532356/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1299.fits ra=185.378 dec=28.2382 rad=12.0 tmin=576028801.0 tmax=576288001.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 3.64
user 3.39
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.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/532356/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1299.fits evtable="EVENTS" outfile="/scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/532356/ltcube_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.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/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits
.....................!
real 12.28
user 11.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/532356/ltcube_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.fits outfile=/scratch/kocevski/532356/expmap_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.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/532356/ltcube_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.fits
.....................!
real 190.86
user 185.41
sys 3.93

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits scfile=/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits outfile=/scratch/kocevski/532356/cmap_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.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=185.378 yref=28.2382 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 1.27
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits scfile=/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits outfile=/scratch/kocevski/532356/cmap_HighResolution_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.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=185.378 yref=28.2382 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.72
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/532356/Model_4FGL_J1221.5+2814_daily_bin1299.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/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits.....................!
real 51.86
user 49.99
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits', '/scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits', expMap='/scratch/kocevski/532356/expmap_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.fits', expCube='/scratch/kocevski/532356/ltcube_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532356/Model_4FGL_J1221.5+2814_daily_bin1299.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/532356/ft1_filtered_4FGL_J1221.5+2814_daily_bin1299.fits
Spacecraft file(s): /scratch/kocevski/532356/ft2_4FGL_J1221.5+2814_daily_bin1299.fits
Exposure map: /scratch/kocevski/532356/expmap_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.fits
Exposure cube: /scratch/kocevski/532356/ltcube_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532356/Model_4FGL_J1221.5+2814_daily_bin1299.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5637.0271638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4892       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16902E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1293       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0756       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.747       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2463       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5700       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .62575E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7448       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.729       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3342       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4131       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.030       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90638       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5636.906     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3349 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5633        16.909       -.21339E-05   -.27241E-04
   2  Prefactor     .10000E-03    6.6746        .38968E-07** at limit **
   3  Prefactor     .10000E-03    1.3826       -.21111E-07** at limit **
   4  Prefactor     8.4937        18.679       -.26317E-05   -.42826E-05
   5  Prefactor     1.5007        2.2611        .22555E-06   -.54319E-03
   6  Prefactor     .10008E-03    11.047        .77116E-06** at limit **
   7  norm          1.1292        .95575        .63504E-07   -.95647E-04
   8  Prefactor     8.0755        4.5109       -.24187E-05    .39770E-03
   9  Prefactor     10.727        29.979       -.11200E-04    .33631E-04
  10  Prefactor     .10000E-03    .79666        .38314E-08** at limit **
  11  Prefactor     .10000E-03    1.5376        .79206E-07** at limit **
  12  norm          3.2462        2.7211       -.15897E-06    .12424E-04
  13  Prefactor     1.6531        4.4077       -.48314E-06   -.52898E-03
  14  Prefactor     2.5699        2.2476        .12986E-06    .12505E-04
  15  Prefactor     3.0636        2.2159       -.17440E-07   -.42522E-04
  16  Prefactor     .10000E-03    3.3935        .62637E-07** at limit **
  17  norm          .62676E-01    .16960       -.23286E-06   -.32843E-02
  18  norm          4.7450        4.0341        .40151E-06   -.92127E-04
  19  Prefactor     25.731        13.713       -.36685E-06    .19699E-04
  20  Prefactor     .10000E-03    15.926       -.19492E-05** at limit **
  21  Prefactor     .10000E-03    32.041        .66202E-06** at limit **
  22  Prefactor     .10000E-03    1.4995       -.16409E-06** at limit **
  23  Prefactor     4.3339        5.3142        .35724E-05   -.35757E-03
  24  norm          2.4131        3.3394       -.74806E-06   -.34631E-03
  25  Prefactor     .10000E-03    14.255        .16063E-05** at limit **
  26  norm          .10000E-03    1.4709        .10500E-06** at limit **
  27  norm          15.031        5.2152       -.45477E-07   -.46429E-04
  28  norm          .10000E-03    3.2175        .10606E-06** at limit **
  29  Normalizat    .90685        .18657        .25276E-05   -.54400E-04
  30  Prefactor     1.1348        .20727        .27607E-07    .81662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.49373
  Prefactor  = 1.50072
  Prefactor  = 0.000100078
  norm       = 1.12919
  Prefactor  = 8.07552
  Prefactor  = 10.7266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.24623
  Prefactor  = 1.65312
  Prefactor  = 2.56994
  Prefactor  = 3.0636
  Prefactor  = 0.0001
  norm       = 0.0626764
  norm       = 4.74497
  Prefactor  = 25.7312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.33393
  norm       = 2.41311
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.0307
  norm       = 0.0001
  Normalizat = 0.90685
  Prefactor  = 1.13478
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.906     FROM HESSE     STATUS=OK           594 CALLS     3943 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5633        16.924        .15667E-03   -1.5196    
   2  Prefactor     .10000E-03    6.6916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3863        .86204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4937        18.403        .13758E-03   -1.5125    
   5  Prefactor     1.5007        2.2060        .12128E-03   -1.5463    
   6  Prefactor     .10008E-03    111.79        .46935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1292        .93462        .64436E-04   -1.5495    
   8  Prefactor     8.0755        4.4840        .11298E-03   -1.5140    
   9  Prefactor     10.727        29.625        .12222E-03   -1.5053    
  10  Prefactor     .10000E-03    .80174        .65423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5635        .90890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2462        2.7128        .10592E-03   -1.5348    
  13  Prefactor     1.6531        4.3880        .25027E-03   -1.5451    
  14  Prefactor     2.5699        2.2444        .98732E-04   -1.5387    
  15  Prefactor     3.0636        2.2093        .89087E-04   -1.5358    
  16  Prefactor     .10000E-03    3.4276        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .62676E-01    .17818        .48382E-03   -1.5658    
  18  norm          4.7450        4.0264        .13383E-03   -1.5272    
  19  Prefactor     25.731        13.702        .78975E-04   -1.4693    
  20  Prefactor     .10000E-03    16.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.5005        .89789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3339        5.2521        .18407E-03   -1.5292    
  24  norm          2.4131        3.3374        .15633E-03   -1.5397    
  25  Prefactor     .10000E-03    14.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.4829        .88901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.031        5.2112        .97102E-04   -1.4932    
  28  norm          .10000E-03    3.2199        .13141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .90685        .21966        .24920E-03   -.96220    
  30  Prefactor     1.1348        .24731        .26526E-03   -.88363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83986e-09
Minuit parameter uncertainties:
  1  16.936
  2  8.60344e-06
  3  3.66173e-08
  4  18.4156
  5  2.20613
  6  0.00590459
  7  0.934634
  8  4.48416
  9  29.6653
  10  4.69296e-06
  11  1.81857e-06
  12  2.71287
  13  4.38886
  14  2.2445
  15  2.20937
  16  7.81282e-06
  17  0.178185
  18  4.0266
  19  13.7038
  20  4.51808e-05
  21  4.15921e-05
  22  8.86759e-08
  23  5.25264
  24  3.33762
  25  5.6753e-05
  26  4.67665e-06
  27  5.21133
  28  2.12044e-06
  29  0.219875
  30  0.247565
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.064e+00  2.209e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.135e+00  2.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.069e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.59e-05

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) = 5635.56071591
delta logL = 1.34513413441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5635.3107476
delta logL = 1.59510243954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4719       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1172       1.0000          .0000       10.000    
     3 'Normalizat'    .94041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5635.311     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      208 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4667        1.1677        .88536E-03   -.25595E-03
   2  Index         1.1160        .32822        .16674       -.58949E-04
   3  Normalizat    .94019        .17393        .45416E-01    .81301E-05
   4  Prefactor     1.1182        .20552        .60405E-01   -.11227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46669
  Index      = 1.11598
  Normalizat = 0.940191
  Prefactor  = 1.11821
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.311     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4667        1.6622        .35415E-04   -1.5466    
   2  Index         1.1160        .48514        .70952E-02   -.88958    
   3  Normalizat    .94019        .20750        .24538E-03   -.95062    
   4  Prefactor     1.1182        .24510        .26714E-03   -.88887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54651e-09
Minuit parameter uncertainties:
  1  1.66228
  2  0.487081
  3  0.207679
  4  0.245352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532356': 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) = 5635.31074178
delta logL = 1.59510825788

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.467e+00  1.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.116e+00  4.871e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.118e+00  2.454e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.402e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.61
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.12 +/- 0.49
Photon Flux (Free Index): 9.95e-09 +/- 9.22e-09
Energy Flux (Free Index): 1.06e-04 +/- 1.15e-04

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/532356/cmap_HighResolution_576028801_576288001_4FGL_J1221.5+2814_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='1.06e-04', photon_flux_error='3.23e-08', dlogl='1.60e+00', energy_flux='2.20e-05', photon_flux2='9.95e-09', job_status='DONE', time_completed='2021-09-05 10:13:08.158464', photon_index_error2='0.49', photon_index2='1.12', ts='5.41', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='0.91', time_epoch_completed='1630861988.16', return_code='0', job_id='532356', GAL2='1.12', EG2='0.94', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='9.22e-09', ts2='8.61', photon_index='2.15' WHERE bin_id='1299' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:13:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 532356: <4FGL_J1221.5+2814_daily_bin1299> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1299> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:52 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:00:53 2021
Terminated at Sun Sep  5 10:13:08 2021
Results reported at Sun Sep  5 10:13:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1299 185.378 28.2382 576028801 576288001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

