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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin454
RA = 185.378, Dec = 28.2382
tmin = 357004801, tmax = 357264001
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='526424', job_status='RUN', time_executed='2021-09-05 09:41:23.359390', time_epoch_executed='1630860083.36' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526424/ft1_4FGL_J1221.5+2814_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526424/ft2_4FGL_J1221.5+2814_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526424/ft1_4FGL_J1221.5+2814_daily_bin454.fits outfile=/scratch/kocevski/526424/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin454.fits ra=185.378 dec=28.2382 rad=12.0 tmin=357004801.0 tmax=357264001.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.08
user 3.71
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526424/ft2_4FGL_J1221.5+2814_daily_bin454.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/526424/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin454.fits evtable="EVENTS" outfile="/scratch/kocevski/526424/ft1_filtered_4FGL_J1221.5+2814_daily_bin454.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526424/ft1_filtered_4FGL_J1221.5+2814_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/526424/ft2_4FGL_J1221.5+2814_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/526424/ltcube_357004801_357264001_4FGL_J1221.5+2814_daily_bin454.fits outfile=/scratch/kocevski/526424/expmap_357004801_357264001_4FGL_J1221.5+2814_daily_bin454.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/526424/ltcube_357004801_357264001_4FGL_J1221.5+2814_daily_bin454.fits
.....................!
real 190.11
user 185.24
sys 4.36

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/526424/ft1_filtered_4FGL_J1221.5+2814_daily_bin454.fits scfile=/scratch/kocevski/526424/ft2_4FGL_J1221.5+2814_daily_bin454.fits outfile=/scratch/kocevski/526424/cmap_357004801_357264001_4FGL_J1221.5+2814_daily_bin454.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526424/ft1_filtered_4FGL_J1221.5+2814_daily_bin454.fits scfile=/scratch/kocevski/526424/ft2_4FGL_J1221.5+2814_daily_bin454.fits outfile=/scratch/kocevski/526424/cmap_HighResolution_357004801_357264001_4FGL_J1221.5+2814_daily_bin454.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1904       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0417       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2782       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0347       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0274       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7754       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .69604       1.0000         .10000E-03   10000.    
    18 'norm      '    5.7441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5260       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.7416       1.0000         .10000E-03   10000.    
    27 'norm      '    .52458E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0726       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1251       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=   6139.208     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3933 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.262       -.72932E-05** at limit **
   2  Prefactor     8.1931        16.888       -.32046E-05   -.89479E-03
   3  Prefactor     .10000E-03    3.1765       -.49751E-06** at limit **
   4  Prefactor     .10000E-03    16.890        .28056E-05** at limit **
   5  Prefactor     2.1140        1.7216       -.16945E-07   -.16797E-03
   6  Prefactor     .10000E-03    24.578       -.61619E-05** at limit **
   7  norm          1.0419        .98272       -.30331E-07   -.18733E-03
   8  Prefactor     .10000E-03    4.6101       -.13301E-05** at limit **
   9  Prefactor     .10000E-03    29.186        .13881E-04** at limit **
  10  Prefactor     .20290        1.6992       -.37339E-06   -.12357E-03
  11  Prefactor     4.2790        4.1112        .45852E-07   -.67673E-04
  12  norm          3.0347        2.6448        .37244E-06   -.13877E-03
  13  Prefactor     .10000E-03    9.6500        .44049E-05** at limit **
  14  Prefactor     5.0273        2.8517       -.95410E-06   -.94985E-04
  15  Prefactor     5.7755        3.0785        .84492E-06   -.10509E-03
  16  Prefactor     .10000E-03    2.5291       -.25954E-05** at limit **
  17  norm          .69605        .31243       -.16637E-07   -.70199E-04
  18  norm          5.7442        4.7249        .59874E-07   -.22664E-04
  19  Prefactor     6.5260        6.7345        .73887E-07    .65101E-04
  20  Prefactor     .10000E-03    6.3314        .33236E-05** at limit **
  21  Prefactor     .10000E-03    61.276       -.72849E-05** at limit **
  22  Prefactor     .10000E-03    2.5672        .25199E-05** at limit **
  23  Prefactor     .10000E-03    2.3909        .13239E-05** at limit **
  24  norm          .10000E-03    2.3806       -.11142E-05** at limit **
  25  Prefactor     .10000E-03    8.0338       -.58479E-05** at limit **
  26  norm          1.7416        1.8404        .31420E-07    .19816E-03
  27  norm          .10002E-03    2.1078        .26990E-06** at limit **
  28  norm          .10000E-03    3.7450        .81325E-06** at limit **
  29  Normalizat    1.0726        .18285        .25399E-06    .11055E-05
  30  Prefactor     1.1251        .20138        .15793E-08    .95203E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.19308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11403
  Prefactor  = 0.0001
  norm       = 1.04189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.202902
  Prefactor  = 4.27898
  norm       = 3.03466
  Prefactor  = 0.0001
  Prefactor  = 5.02727
  Prefactor  = 5.77548
  Prefactor  = 0.0001
  norm       = 0.696049
  norm       = 5.74423
  Prefactor  = 6.52597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74161
  norm       = 0.000100016
  norm       = 0.0001
  Normalizat = 1.07261
  Prefactor  = 1.12513
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.208     FROM HESSE     STATUS=OK           590 CALLS     4523 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1931        17.790        .70044E-03   -1.5135    
   3  Prefactor     .10000E-03    3.2123        .13628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1140        1.7171        .89467E-04   -1.5417    
   6  Prefactor     .10000E-03    24.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0419        .97484        .72346E-04   -1.5504    
   8  Prefactor     .10000E-03    4.7885        .32764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20290        7.7930        .18181E-02   -1.5618    
  11  Prefactor     4.2790        4.1181        .13890E-03   -1.5294    
  12  norm          3.0347        2.6414        .11037E-03   -1.5360    
  13  Prefactor     .10000E-03    9.8661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0273        2.8507        .91909E-04   -1.5259    
  15  Prefactor     5.7755        3.0589        .92285E-04   -1.5227    
  16  Prefactor     .10000E-03    2.5247        .12138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .69605        .30801        .27599E-04   -1.5541    
  18  norm          5.7442        4.7168        .14781E-03   -1.5229    
  19  Prefactor     6.5260        6.7343        .15710E-03   -1.5197    
  20  Prefactor     .10000E-03    6.3125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.5583        .12227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3969        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4086        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.9776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.7416        1.8498        .10658E-03   -1.5444    
  27  norm          .10002E-03    20.369        .21922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.7638        .14792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0726        .21817        .25485E-03   -.90636    
  30  Prefactor     1.1251        .24122        .28131E-03   -.88667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32839e-08
Minuit parameter uncertainties:
  1  0.000114866
  2  17.8014
  3  8.23823e-06
  4  1.64317e-05
  5  1.71719
  6  2.72877e-05
  7  0.974852
  8  1.88336e-05
  9  4.80057e-05
  10  2.51466
  11  4.11834
  12  2.64151
  13  5.21543e-05
  14  2.85075
  15  3.05895
  16  2.1366e-06
  17  0.308011
  18  4.71715
  19  6.73504
  20  1.35833e-06
  21  7.77152e-07
  22  1.40317e-06
  23  1.46363e-06
  24  7.68944e-07
  25  1.41873e-06
  26  1.84982
  27  0.00113702
  28  3.39529e-06
  29  0.218348
  30  0.241454
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.775e+00  3.059e+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.125e+00  2.415e-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.073e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.37
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.45e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 4.15e-05 +/- 2.20e-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) = 6139.14425575
delta logL = 0.0636700497998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6139.14165021
delta logL = 0.0662755972035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3473       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3163       1.0000          .0000       10.000    
     3 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1371       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=   6139.142     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3501        43.300        .43449E-02    .25213E-03
   2  Index         2.3172        3.0908        .14974        .11392E-03
   3  Normalizat    1.0546        .10386        .58026E-01    .20228E-04
   4  Prefactor     1.1371        .82049E-01    .63295E-01    .51281E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35007
  Index      = 2.31715
  Normalizat = 1.05457
  Prefactor  = 1.13708
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.142     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3501        3.1387        .84086E-04   -1.5245    
   2  Index         2.3172        .46687        .52056E-02   -.56637    
   3  Normalizat    1.0546        .21988        .25660E-03   -.91224    
   4  Prefactor     1.1371        .24297        .27996E-03   -.88290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24237e-11
Minuit parameter uncertainties:
  1  3.13884
  2  0.467825
  3  0.220074
  4  0.243203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526424': 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) = 6139.14164587
delta logL = 0.0662799322554

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.350e+00  3.139e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.317e+00  4.678e-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.137e+00  2.432e-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.055e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.57
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.32 +/- 0.47
Photon Flux (Free Index): 1.01e-07 +/- 6.61e-08
Energy Flux (Free Index): 3.74e-05 +/- 2.10e-05

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/526424/cmap_HighResolution_357004801_357264001_4FGL_J1221.5+2814_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.45e-08', energy_flux2='3.74e-05', photon_flux_error='4.47e-08', dlogl='6.63e-02', energy_flux='4.15e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-05 09:54:24.535802', photon_index_error2='0.47', photon_index2='2.32', ts='8.37', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.07', time_epoch_completed='1630860864.54', return_code='0', job_id='526424', GAL2='1.14', EG2='1.05', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='6.61e-08', ts2='8.57', photon_index='2.15' WHERE bin_id='454' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:54:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 526424: <4FGL_J1221.5+2814_daily_bin454> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin454> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 09:41:11 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:41:13 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:41:13 2021
Terminated at Sun Sep  5 09:54:25 2021
Results reported at Sun Sep  5 09:54:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin454 185.378 28.2382 357004801 357264001 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 :                                   774.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

