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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin510
RA = 185.378, Dec = 28.2382
tmin = 371520001, tmax = 371779201
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='527584', job_status='RUN', time_executed='2021-09-05 09:45:50.262690', time_epoch_executed='1630860350.26' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527584/ft1_4FGL_J1221.5+2814_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527584/ft2_4FGL_J1221.5+2814_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527584/ft1_4FGL_J1221.5+2814_daily_bin510.fits outfile=/scratch/kocevski/527584/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin510.fits ra=185.378 dec=28.2382 rad=12.0 tmin=371520001.0 tmax=371779201.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.41
user 4.15
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/527584/ft1_filtered_4FGL_J1221.5+2814_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/527584/ft2_4FGL_J1221.5+2814_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/527584/ltcube_371520001_371779201_4FGL_J1221.5+2814_daily_bin510.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/527584/ft2_4FGL_J1221.5+2814_daily_bin510.fits
.....................!
real 11.62
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527584/ft1_filtered_4FGL_J1221.5+2814_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/527584/ft2_4FGL_J1221.5+2814_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/527584/ltcube_371520001_371779201_4FGL_J1221.5+2814_daily_bin510.fits outfile=/scratch/kocevski/527584/expmap_371520001_371779201_4FGL_J1221.5+2814_daily_bin510.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/527584/ltcube_371520001_371779201_4FGL_J1221.5+2814_daily_bin510.fits
.....................!
real 189.74
user 185.01
sys 4.26

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/527584/ft1_filtered_4FGL_J1221.5+2814_daily_bin510.fits scfile=/scratch/kocevski/527584/ft2_4FGL_J1221.5+2814_daily_bin510.fits outfile=/scratch/kocevski/527584/cmap_371520001_371779201_4FGL_J1221.5+2814_daily_bin510.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/527584/ft1_filtered_4FGL_J1221.5+2814_daily_bin510.fits scfile=/scratch/kocevski/527584/ft2_4FGL_J1221.5+2814_daily_bin510.fits outfile=/scratch/kocevski/527584/cmap_HighResolution_371520001_371779201_4FGL_J1221.5+2814_daily_bin510.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2776       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.364       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1453       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.952       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3944       1.0000         .10000E-03   10000.    
    17 'norm      '    .66136       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7281       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12871E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6697       1.0000         .10000E-03   10000.    
    24 'norm      '    2.5067       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.3827       1.0000         .10000E-03   10000.    
    27 'norm      '    5.6121       1.0000         .10000E-03   10000.    
    28 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99354       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1147       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=   6231.319     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4569 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.737       -.24592E-06** at limit **
   2  Prefactor     28.720        15.570        .94234E-06   -.68554E-04
   3  Prefactor     .10000E-03    3.8193        .78772E-06** at limit **
   4  Prefactor     .10000E-03    17.988       -.24852E-05** at limit **
   5  Prefactor     2.2776        1.7161        .15565E-07    .28694E-03
   6  Prefactor     28.354        35.694       -.17261E-06    .62435E-04
   7  norm          .10000E-03    .28581       -.16733E-07** at limit **
   8  Prefactor     5.4937        4.4918       -.14538E-06    .18229E-03
   9  Prefactor     .10048E-03    52.723       -.31531E-05** at limit **
  10  Prefactor     .10000E-03    3.1666        .71747E-09** at limit **
  11  Prefactor     5.1456        3.9398        .64418E-07    .64473E-04
  12  norm          4.2038        4.1485        .61874E-07    .10808E-03
  13  Prefactor     13.951        9.1687        .10016E-06   -.10512E-04
  14  Prefactor     2.7195        3.1742       -.25954E-07    .12371E-03
  15  Prefactor     3.0092        2.4779        .14129E-07    .47899E-04
  16  Prefactor     3.3942        3.9685       -.43914E-07    .22006E-04
  17  norm          .66136        .31848       -.67734E-08    .41572E-03
  18  norm          .10000E-03    2.5488       -.88183E-08** at limit **
  19  Prefactor     9.7281        9.1553       -.61798E-08    .14781E-03
  20  Prefactor     .10000E-03    8.4899        .76746E-06** at limit **
  21  Prefactor     .10000E-03    165.56       -.67016E-06** at limit **
  22  Prefactor     .10000E-03    11.629       -.40542E-05** at limit **
  23  Prefactor     9.6694        7.2806        .44977E-08   -.10719E-03
  24  norm          2.5065        2.9332        .17989E-07   -.15992E-03
  25  Prefactor     .10000E-03    16.543        .25947E-05** at limit **
  26  norm          1.3826        4.3750       -.65633E-07    .39476E-03
  27  norm          5.6088        4.5111       -.53864E-06   -.10619E-02
  28  norm          .10000E-03    11.292        .49771E-05** at limit **
  29  Normalizat    .99346        .19680        .60966E-07   -.12232E-04
  30  Prefactor     1.1148        .20275       -.58416E-07    .36666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.7202
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.27758
  Prefactor  = 28.3536
  norm       = 0.0001
  Prefactor  = 5.4937
  Prefactor  = 0.00010048
  Prefactor  = 0.0001
  Prefactor  = 5.14563
  norm       = 4.20377
  Prefactor  = 13.9513
  Prefactor  = 2.71952
  Prefactor  = 3.00923
  Prefactor  = 3.39421
  norm       = 0.661357
  norm       = 0.0001
  Prefactor  = 9.72807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.66942
  norm       = 2.50647
  Prefactor  = 0.0001
  norm       = 1.38256
  norm       = 5.60882
  norm       = 0.0001
  Normalizat = 0.993463
  Prefactor  = 1.11475
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.319     FROM HESSE     STATUS=OK           608 CALLS     5177 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.720        15.566        .74756E-04   -1.4636    
   3  Prefactor     .10000E-03    8.3910        .28407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2776        1.7130        .86337E-04   -1.5406    
   6  Prefactor     28.354        35.879        .75225E-04   -1.4642    
   7  norm          .10000E-03    .28879        .41192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4937        4.4691        .14316E-03   -1.5239    
   9  Prefactor     .10048E-03    46.968        .12997       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2646        .27281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1456        3.9254        .13090E-03   -1.5254    
  12  norm          4.2038        4.1670        .12578E-03   -1.5298    
  13  Prefactor     13.951        9.1737        .10723E-03   -1.4961    
  14  Prefactor     2.7195        3.1829        .12130E-03   -1.5378    
  15  Prefactor     3.0092        2.4714        .10414E-03   -1.5361    
  16  Prefactor     3.3942        3.9615        .16461E-03   -1.5339    
  17  norm          .66136        .31451        .28670E-04   -1.5545    
  18  norm          .10000E-03    2.5827        .12297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.7281        9.1639        .64240E-03   -1.5084    
  20  Prefactor     .10000E-03    8.4758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    167.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.359        .34565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.6694        7.2820        .64435E-03   -1.5086    
  24  norm          2.5065        2.9287        .14172E-03   -1.5391    
  25  Prefactor     .10000E-03    16.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.3826        4.5101        .28636E-03   -1.5473    
  27  norm          5.6088        4.2983        .13755E-03   -1.5234    
  28  norm          .10000E-03    17.488        .34982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99346        .22990        .26927E-03   -.93250    
  30  Prefactor     1.1148        .23608        .28361E-03   -.88996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63298e-10
Minuit parameter uncertainties:
  1  5.1423e-05
  2  15.568
  3  0.000211783
  4  0.000144145
  5  1.71304
  6  35.9062
  7  1.07238e-07
  8  4.46936
  9  0.00950863
  10  5.5399e-06
  11  3.92557
  12  4.16732
  13  9.17465
  14  3.18309
  15  2.47148
  16  3.96178
  17  0.314512
  18  9.07345e-07
  19  9.1652
  20  3.33498e-05
  21  0.000128993
  22  0.000129481
  23  7.28265
  24  2.92883
  25  0.000142466
  26  4.51124
  27  4.29855
  28  1.91148e-05
  29  0.230129
  30  0.236304
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.009e+00  2.471e+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.115e+00  2.363e-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.935e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.89
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.40e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.78e-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) = 6227.46812511
delta logL = 3.85061342132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6227.28115893
delta logL = 4.03757959364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28711E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    .24027E-07   1.0000          .0000       10.000    
     3 'Normalizat'    1.0258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1088       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=   6227.281     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28731E-01    .29995E-01    .29339E-02   -.18148E-02
   2  Index         .24803E-10    .27322        .50000    ** at limit **
   3  Normalizat    1.0257        .18049        .42610E-01    .77447E-04
   4  Prefactor     1.1089        .20110        .64328E-01    .80558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0287309
  Index      = 2.48035e-11
  Normalizat = 1.02566
  Prefactor  = 1.10895
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.281     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28731E-01    .28908E-01    .11159E-03   -1.5674    
   2  Index         .24803E-10    .82904        .20905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0257        .20911        .26557E-03   -.92176    
   4  Prefactor     1.1089        .23284        .28453E-03   -.89181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11207e-10
Minuit parameter uncertainties:
  1  0.0289083
  2  9.19955e-06
  3  0.209278
  4  0.233058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527584': 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) = 6227.28115844
delta logL = 4.03758008363

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.873e-02  2.891e-02  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.480e-11  9.200e-06  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.109e+00  2.331e-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:  1.026e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.95
Ra Dec: 185.378 28.238
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.87e-09 +/- 2.89e-09
Energy Flux (Free Index): 1.44e-04 +/- 1.45e-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/527584/cmap_HighResolution_371520001_371779201_4FGL_J1221.5+2814_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.40e-08', energy_flux2='1.44e-04', photon_flux_error='3.62e-08', dlogl='4.04e+00', energy_flux='2.16e-05', photon_flux2='2.87e-09', job_status='DONE', time_completed='2021-09-05 09:59:34.590812', photon_index_error2='0.00', photon_index2='0.00', ts='8.89', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.45e-04', EG='0.99', time_epoch_completed='1630861174.59', return_code='0', job_id='527584', GAL2='1.11', EG2='1.03', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='2.89e-09', ts2='16.95', photon_index='2.15' WHERE bin_id='510' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:59:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 527584: <4FGL_J1221.5+2814_daily_bin510> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin510> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:45:38 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:45:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:45:40 2021
Terminated at Sun Sep  5 09:59:35 2021
Results reported at Sun Sep  5 09:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin510 185.378 28.2382 371520001 371779201 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 :                                   820.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

