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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1087
RA = 185.378, Dec = 28.2382
tmin = 521078401, tmax = 521337601
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='531962', job_status='RUN', time_executed='2021-09-05 10:00:50.473553', time_epoch_executed='1630861250.47' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531962/ft1_4FGL_J1221.5+2814_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531962/ft1_4FGL_J1221.5+2814_daily_bin1087.fits outfile=/scratch/kocevski/531962/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1087.fits ra=185.378 dec=28.2382 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.77
user 4.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.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/531962/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1087.fits evtable="EVENTS" outfile="/scratch/kocevski/531962/ft1_filtered_4FGL_J1221.5+2814_daily_bin1087.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.67
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531962/ft1_filtered_4FGL_J1221.5+2814_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/531962/ltcube_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.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/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits
.....................!
real 12.22
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531962/ft1_filtered_4FGL_J1221.5+2814_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/531962/ltcube_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.fits outfile=/scratch/kocevski/531962/expmap_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.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/531962/ltcube_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.fits
.....................!
real 194.51
user 187.28
sys 4.79

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/531962/ft1_filtered_4FGL_J1221.5+2814_daily_bin1087.fits scfile=/scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits outfile=/scratch/kocevski/531962/cmap_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.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 0.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531962/ft1_filtered_4FGL_J1221.5+2814_daily_bin1087.fits scfile=/scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits outfile=/scratch/kocevski/531962/cmap_HighResolution_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.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.60
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531962/ft1_filtered_4FGL_J1221.5+2814_daily_bin1087.fits', '/scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits', expMap='/scratch/kocevski/531962/expmap_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.fits', expCube='/scratch/kocevski/531962/ltcube_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531962/Model_4FGL_J1221.5+2814_daily_bin1087.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/531962/ft1_filtered_4FGL_J1221.5+2814_daily_bin1087.fits
Spacecraft file(s): /scratch/kocevski/531962/ft2_4FGL_J1221.5+2814_daily_bin1087.fits
Exposure map: /scratch/kocevski/531962/expmap_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.fits
Exposure cube: /scratch/kocevski/531962/ltcube_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531962/Model_4FGL_J1221.5+2814_daily_bin1087.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) = 6251.84582828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.151       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3008       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33502       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1703       1.0000         .10000E-03   10000.    
    12 'norm      '    9.6780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1102       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1927       1.0000         .10000E-03   10000.    
    17 'norm      '    .48479       1.0000         .10000E-03   10000.    
    18 'norm      '    17.608       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6161       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20718E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7235       1.0000         .10000E-03   10000.    
    24 'norm      '    6.2832       1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.852       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1225       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    6.7836       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91870       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93613       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=   6251.821     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3939 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5636        .16570E-07** at limit **
   2  Prefactor     .10000E-03    3.0435       -.12380E-06** at limit **
   3  Prefactor     .10000E-03    1.0798       -.33046E-07** at limit **
   4  Prefactor     38.463        24.087        .13500E-05    .31908E-04
   5  Prefactor     2.1842        1.9037       -.13768E-06   -.13983E-03
   6  Prefactor     11.143        18.170        .18734E-05    .49854E-05
   7  norm          4.3010        1.3132       -.44755E-07   -.12578E-03
   8  Prefactor     6.0024        4.3253        .68382E-07    .37066E-04
   9  Prefactor     .10000E-03    10.663        .14415E-05** at limit **
  10  Prefactor     .33473        1.1312        .16265E-06    .94893E-04
  11  Prefactor     1.1701        1.6377        .38228E-07    .33766E-04
  12  norm          9.6784        3.4910       -.18659E-06   -.10466E-03
  13  Prefactor     6.1184        5.9625       -.12797E-07   -.22875E-04
  14  Prefactor     .10000E-03    .84603        .44406E-07** at limit **
  15  Prefactor     1.1100        2.1971        .18017E-06    .13762E-03
  16  Prefactor     1.1915        4.4261        .40963E-06    .68179E-04
  17  norm          .48479        .24665        .16459E-07    .80484E-05
  18  norm          17.610        6.3570       -.11878E-07   -.35092E-04
  19  Prefactor     4.6154        6.8070        .88003E-06    .25333E-03
  20  Prefactor     .10000E-03    10.672        .15024E-05** at limit **
  21  Prefactor     .10000E-03    27.106        .61454E-06** at limit **
  22  Prefactor     .10000E-03    8.3732        .40873E-05** at limit **
  23  Prefactor     4.7244        5.6309        .11554E-05    .37106E-03
  24  norm          6.2828        4.1582        .16115E-06   -.18104E-03
  25  Prefactor     29.858        25.927       -.19508E-05   -.16529E-03
  26  norm          5.1233        3.6160        .96012E-07   -.62888E-04
  27  norm          .10000E-03    2.3035        .11171E-05** at limit **
  28  norm          6.7848        5.7147        .52944E-07   -.44705E-03
  29  Normalizat    .91844        .17935       -.15642E-06   -.13584E-03
  30  Prefactor     .93654        .20053       -.24773E-06   -.14474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.4628
  Prefactor  = 2.18416
  Prefactor  = 11.1429
  norm       = 4.30103
  Prefactor  = 6.00239
  Prefactor  = 0.0001
  Prefactor  = 0.334726
  Prefactor  = 1.17015
  norm       = 9.67841
  Prefactor  = 6.11843
  Prefactor  = 0.0001
  Prefactor  = 1.10995
  Prefactor  = 1.19155
  norm       = 0.484791
  norm       = 17.6096
  Prefactor  = 4.61542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.72444
  norm       = 6.28284
  Prefactor  = 29.8583
  norm       = 5.12331
  norm       = 0.000100001
  norm       = 6.78485
  Normalizat = 0.918437
  Prefactor  = 0.936543
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.821     FROM HESSE     STATUS=OK           600 CALLS     4539 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5655        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0471        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0819        .80242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.463        24.155        .64622E-04   -1.4467    
   5  Prefactor     2.1842        1.8861        .94159E-04   -1.5412    
   6  Prefactor     11.143        18.183        .11997E-03   -1.5040    
   7  norm          4.3010        1.3132        .47768E-04   -1.5293    
   8  Prefactor     6.0024        4.2908        .13173E-03   -1.5218    
   9  Prefactor     .10000E-03    10.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33473        1.1448        .14862E-03   -1.5592    
  11  Prefactor     1.1701        1.5974        .11634E-03   -1.5492    
  12  norm          9.6784        3.4667        .83277E-04   -1.5086    
  13  Prefactor     6.1184        5.9653        .16231E-03   -1.5213    
  14  Prefactor     .10000E-03    .85845        .70901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1100        2.1381        .15077E-03   -1.5497    
  16  Prefactor     1.1915        4.3817        .30562E-03   -1.5490    
  17  norm          .48479        .24377        .26438E-04   -1.5569    
  18  norm          17.610        6.3339        .95447E-04   -1.4868    
  19  Prefactor     4.6154        7.0110        .93668E-03   -1.5278    
  20  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.750        .31362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7244        6.0670        .92572E-03   -1.5273    
  24  norm          6.2828        4.1516        .12245E-03   -1.5207    
  25  Prefactor     29.858        26.051        .73330E-04   -1.4615    
  26  norm          5.1233        3.6100        .12181E-03   -1.5255    
  27  norm          .10000E-03    6.9108        .20608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.7848        5.4110        .15405E-03   -1.5187    
  29  Normalizat    .91844        .21198        .24987E-03   -.95815    
  30  Prefactor     .93654        .23688        .28897E-03   -.94876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82915e-10
Minuit parameter uncertainties:
  1  4.20256e-06
  2  5.49214e-06
  3  2.0256e-06
  4  24.1606
  5  1.88612
  6  18.1919
  7  1.31319
  8  4.29103
  9  8.12232e-06
  10  1.14487
  11  1.59743
  12  3.46679
  13  5.96583
  14  3.18001e-06
  15  2.13823
  16  4.38292
  17  0.243769
  18  6.33412
  19  7.01223
  20  2.08807e-05
  21  1.92331e-05
  22  0.000353483
  23  6.06783
  24  4.1518
  25  26.0614
  26  3.61014
  27  0.000177395
  28  5.41138
  29  0.212176
  30  0.237139
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.110e+00  2.138e+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:  9.365e-01  2.371e-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.184e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531962/likelihoodResults_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.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) = 6251.61393172
delta logL = 0.20686670281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6251.57900616
delta logL = 0.241792260899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67956       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9650       1.0000          .0000       10.000    
     3 'Normalizat'    .88918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95751       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=   6251.579     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      224 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67926        11.233        .11983E-01    .13611E-02
   2  Index         2.9655        2.5496        .18538        .91176E-04
   3  Normalizat    .88911        .30908E-01    .44763E-01    .15837E-04
   4  Prefactor     .95761        .36225E-01    .45734E-01    .94721E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.679265
  Index      = 2.96546
  Normalizat = 0.889106
  Prefactor  = 0.957608
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.579     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67926        2.4366        .73819E-04   -1.5543    
   2  Index         2.9655        1.9094        .65203E-02   -.41907    
   3  Normalizat    .88911        .20759        .25327E-03   -.96844    
   4  Prefactor     .95761        .23954        .28575E-03   -.94156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95759e-11
Minuit parameter uncertainties:
  1  2.43692
  2  1.96994
  3  0.207777
  4  0.239809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531962': 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) = 6251.57900602
delta logL = 0.241792401596

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.793e-01  2.437e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.965e+00  1.970e+00  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:  9.576e-01  2.398e-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:  8.891e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
Ra Dec: 185.378 28.238

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/531962/cmap_HighResolution_521078401_521337601_4FGL_J1221.5+2814_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-05 10:16:43.210319', job_id='531962', GAL2='0.96', fit_tolerance='1e-08', EG2='0.89', EG='0.92', time_epoch_completed='1630862203.21', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.42e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1087' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:16:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 531962: <4FGL_J1221.5+2814_daily_bin1087> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1087> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:24 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:26 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:26 2021
Terminated at Sun Sep  5 10:16:43 2021
Results reported at Sun Sep  5 10:16:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1087 185.378 28.2382 521078401 521337601 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 :                                   940.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

