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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1542
RA = 185.378, Dec = 28.2382
tmin = 639014401, tmax = 639273601
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='534012', job_status='RUN', time_executed='2021-09-05 10:09:09.390536', time_epoch_executed='1630861749.39' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534012/ft1_4FGL_J1221.5+2814_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534012/ft2_4FGL_J1221.5+2814_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534012/ft1_4FGL_J1221.5+2814_daily_bin1542.fits outfile=/scratch/kocevski/534012/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1542.fits ra=185.378 dec=28.2382 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.33
user 5.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534012/ft2_4FGL_J1221.5+2814_daily_bin1542.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/534012/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/534012/ft1_filtered_4FGL_J1221.5+2814_daily_bin1542.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/534012/ft1_filtered_4FGL_J1221.5+2814_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/534012/ft2_4FGL_J1221.5+2814_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/534012/ltcube_639014401_639273601_4FGL_J1221.5+2814_daily_bin1542.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/534012/ft2_4FGL_J1221.5+2814_daily_bin1542.fits
.....................!
real 11.76
user 11.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534012/ft1_filtered_4FGL_J1221.5+2814_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/534012/ft2_4FGL_J1221.5+2814_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/534012/ltcube_639014401_639273601_4FGL_J1221.5+2814_daily_bin1542.fits outfile=/scratch/kocevski/534012/expmap_639014401_639273601_4FGL_J1221.5+2814_daily_bin1542.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/534012/ltcube_639014401_639273601_4FGL_J1221.5+2814_daily_bin1542.fits
.....................!
real 189.55
user 185.54
sys 3.66

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/534012/ft1_filtered_4FGL_J1221.5+2814_daily_bin1542.fits scfile=/scratch/kocevski/534012/ft2_4FGL_J1221.5+2814_daily_bin1542.fits outfile=/scratch/kocevski/534012/cmap_639014401_639273601_4FGL_J1221.5+2814_daily_bin1542.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534012/ft1_filtered_4FGL_J1221.5+2814_daily_bin1542.fits scfile=/scratch/kocevski/534012/ft2_4FGL_J1221.5+2814_daily_bin1542.fits outfile=/scratch/kocevski/534012/cmap_HighResolution_639014401_639273601_4FGL_J1221.5+2814_daily_bin1542.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.125       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15864E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1331       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5185       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.286       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 '    4.1982       1.0000         .10000E-03   10000.    
    24 'norm      '    .59984E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.452       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.049       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0923       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74730       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=   5766.934     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4012 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3463        29.252        .96121E-05   -.20489E-03
   2  Prefactor     .10000E-03    7.1292        .19921E-05** at limit **
   3  Prefactor     1.2037        3.7620       -.14085E-05   -.93088E-03
   4  Prefactor     .10000E-03    40.035        .45617E-05** at limit **
   5  Prefactor     6.9123        2.4635       -.13338E-06   -.38071E-03
   6  Prefactor     .10000E-03    15.111       -.13601E-05** at limit **
   7  norm          12.125        2.0272       -.55780E-07   -.18744E-03
   8  Prefactor     .34629        2.1469        .45289E-06   -.11263E-02
   9  Prefactor     .10000E-03    25.796        .18850E-05** at limit **
  10  Prefactor     .10000E-03    1.2027       -.98910E-07** at limit **
  11  Prefactor     .10000E-03    1.0640       -.25871E-07** at limit **
  12  norm          4.2067        2.9456       -.86337E-07   -.12373E-03
  13  Prefactor     .10000E-03    7.7107       -.12638E-05** at limit **
  14  Prefactor     1.9398        1.8061        .35180E-08    .11141E-03
  15  Prefactor     2.1329        1.7148       -.22686E-07   -.80368E-04
  16  Prefactor     .10000E-03    2.5167        .53121E-08** at limit **
  17  norm          .10000E-03    .91285E-01   -.25425E-07** at limit **
  18  norm          4.5181        3.1420       -.71548E-07    .64811E-04
  19  Prefactor     .10000E-03    6.4674       -.12426E-05** at limit **
  20  Prefactor     16.286        13.185        .28106E-07    .30283E-04
  21  Prefactor     .10000E-03    33.669       -.21672E-05** at limit **
  22  Prefactor     .10000E-03    1.7864        .51945E-08** at limit **
  23  Prefactor     4.1973        5.6194       -.48571E-05    .34022E-03
  24  norm          .64743E-03    3.0782        .33524E-05** at limit **
  25  Prefactor     17.560        25.378       -.20243E-04   -.17842E-03
  26  norm          .10000E-03    1.2582       -.14809E-07** at limit **
  27  norm          16.056        6.0744        .13543E-05   -.16024E-02
  28  norm          .10000E-03    3.0007       -.16233E-07** at limit **
  29  Normalizat    1.0924        .17534        .71307E-06   -.56949E-03
  30  Prefactor     .74744        .19157        .62327E-06   -.35007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34626
  Prefactor  = 0.000100001
  Prefactor  = 1.20369
  Prefactor  = 0.000100001
  Prefactor  = 6.91229
  Prefactor  = 0.0001
  norm       = 12.1246
  Prefactor  = 0.346287
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 4.20673
  Prefactor  = 0.0001
  Prefactor  = 1.93977
  Prefactor  = 2.13294
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.51815
  Prefactor  = 0.0001
  Prefactor  = 16.286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19727
  norm       = 0.000647427
  Prefactor  = 17.5601
  norm       = 0.0001
  norm       = 16.0563
  norm       = 0.0001
  Normalizat = 1.09239
  Prefactor  = 0.747438
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.934     FROM HESSE     STATUS=OK           596 CALLS     4608 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3463        28.739        .26638E-03   -1.5402    
   2  Prefactor     .10000E-03    7.1403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2037        3.7556        .25269E-03   -1.5489    
   4  Prefactor     .10000E-03    40.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9123        2.4587        .67816E-04   -1.5182    
   6  Prefactor     .10000E-03    15.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.125        2.0295        .42311E-04   -1.5011    
   8  Prefactor     .34629        9.3332        .20490E-02   -1.5590    
   9  Prefactor     .10000E-03    25.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.065        .15697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0708        .76448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2067        2.9340        .10199E-03   -1.5298    
  13  Prefactor     .10000E-03    7.8011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9398        1.8134        .93113E-04   -1.5429    
  15  Prefactor     2.1329        1.7134        .85282E-04   -1.5416    
  16  Prefactor     .10000E-03    2.5337        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .19753        .44350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5181        3.1424        .10895E-03   -1.5283    
  19  Prefactor     .10000E-03    6.5500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.286        13.185        .99245E-04   -1.4901    
  21  Prefactor     .10000E-03    33.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7887        .99121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.1973        5.5941        .19668E-03   -1.5298    
  24  norm          .64743E-03    7.4956        .40738E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.560        27.050        .95874E-04   -1.4870    
  26  norm          .10000E-03    1.2709        .83179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.056        6.0298        .99976E-04   -1.4906    
  28  norm          .10000E-03    3.0015        .12840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0924        .20335        .22614E-03   -.89996    
  30  Prefactor     .74744        .22227        .30391E-03   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3676e-09
Minuit parameter uncertainties:
  1  16.4326
  2  0.000158383
  3  3.75638
  4  0.000442801
  5  2.45874
  6  3.90213e-05
  7  2.02951
  8  3.59563
  9  0.000115866
  10  0.000350911
  11  1.51375e-06
  12  2.93411
  13  2.92752e-05
  14  1.81345
  15  1.71343
  16  2.47797e-06
  17  1.38589e-06
  18  3.14251
  19  2.93892e-05
  20  13.1872
  21  0.000139911
  22  1.23506e-06
  23  5.59484
  24  0.12813
  25  27.0686
  26  1.16672e-06
  27  6.02999
  28  6.16249e-07
  29  0.203493
  30  0.222534
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.133e+00  1.713e+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:  7.474e-01  2.225e-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.092e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.74
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.23e-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) = 5765.93651781
delta logL = 0.997435185907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5765.88530268
delta logL = 1.04865031721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4577       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2867       1.0000          .0000       10.000    
     3 'Normalizat'    1.1119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73946       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=   5765.885     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4576        1.3826        .89129E-02    .31483E-03
   2  Index         1.2867        .38720        .20270       -.68791E-04
   3  Normalizat    1.1119        .16807        .37536E-01    .16788E-05
   4  Prefactor     .73947        .19127        .69070E-01    .22333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45765
  Index      = 1.28672
  Normalizat = 1.11188
  Prefactor  = 0.739465
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.885     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4576        1.9751        .81769E-04   -1.5466    
   2  Index         1.2867        .58961        .82825E-02   -.83703    
   3  Normalizat    1.1119        .19449        .22455E-03   -.89371    
   4  Prefactor     .73947        .22117        .30564E-03   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65022e-11
Minuit parameter uncertainties:
  1  1.97518
  2  0.5927
  3  0.194616
  4  0.221438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534012': 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) = 5765.88530268
delta logL = 1.04865031779

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.458e+00  1.975e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.287e+00  5.927e-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:  7.395e-01  2.214e-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.112e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.84
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.29 +/- 0.59
Photon Flux (Free Index): 9.39e-09 +/- 1.27e-08
Energy Flux (Free Index): 6.00e-05 +/- 7.72e-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/534012/cmap_HighResolution_639014401_639273601_4FGL_J1221.5+2814_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='6.00e-05', photon_flux_error='2.51e-08', dlogl='1.05e+00', energy_flux='1.53e-05', photon_flux2='9.39e-09', job_status='DONE', time_completed='2021-09-05 10:22:17.051468', photon_index_error2='0.59', photon_index2='1.29', ts='5.74', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='7.72e-05', EG='1.09', time_epoch_completed='1630862537.05', return_code='0', job_id='534012', GAL2='0.74', EG2='1.11', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='1.27e-08', ts2='7.84', photon_index='2.15' WHERE bin_id='1542' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 534012: <4FGL_J1221.5+2814_daily_bin1542> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1542> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 10:05:47 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:05:48 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:05:48 2021
Terminated at Sun Sep  5 10:22:17 2021
Results reported at Sun Sep  5 10:22:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1542 185.378 28.2382 639014401 639273601 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 :                                   783.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

