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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1301
RA = 193.637, Dec = 22.1808
tmin = 576547201, tmax = 576806401
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='991625', job_status='RUN', time_executed='2021-09-06 09:19:55.366853', time_epoch_executed='1630945195.37' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991625/ft1_4FGL_J1254.5+2210_daily_bin1301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991625/ft1_4FGL_J1254.5+2210_daily_bin1301.fits outfile=/scratch/kocevski/991625/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1301.fits ra=193.637 dec=22.1808 rad=12.0 tmin=576547201.0 tmax=576806401.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 7.16
user 4.72
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.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/991625/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1301.fits evtable="EVENTS" outfile="/scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits" evtable="EVENTS" scfile=/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits sctable="SC_DATA" outfile=/scratch/kocevski/991625/ltcube_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.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/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits
.....................!
real 11.68
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits sctable="SC_DATA" expcube=/scratch/kocevski/991625/ltcube_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.fits outfile=/scratch/kocevski/991625/expmap_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.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/991625/ltcube_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.fits
.....................!
real 190.42
user 185.49
sys 4.55

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

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits scfile=/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits outfile=/scratch/kocevski/991625/cmap_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.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=193.637 yref=22.1808 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.66
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits scfile=/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits outfile=/scratch/kocevski/991625/cmap_HighResolution_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.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=193.637 yref=22.1808 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991625/Model_4FGL_J1254.5+2210_daily_bin1301.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/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits.....................!
real 50.19
user 48.83
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits', '/scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits', expMap='/scratch/kocevski/991625/expmap_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.fits', expCube='/scratch/kocevski/991625/ltcube_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991625/Model_4FGL_J1254.5+2210_daily_bin1301.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/991625/ft1_filtered_4FGL_J1254.5+2210_daily_bin1301.fits
Spacecraft file(s): /scratch/kocevski/991625/ft2_4FGL_J1254.5+2210_daily_bin1301.fits
Exposure map: /scratch/kocevski/991625/expmap_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.fits
Exposure cube: /scratch/kocevski/991625/ltcube_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991625/Model_4FGL_J1254.5+2210_daily_bin1301.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) = 5404.21751184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52986       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8003       1.0000         .10000E-03   10000.    
     7 'norm      '    .35186       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.969       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .89390E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.8036       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.386       1.0000         .10000E-03   10000.    
    23 'norm      '    38.747       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73297       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2337       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5404.213     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3689 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52990        2.9196        .89571E-07   -.11055E-03
   2  Prefactor     .10000E-03    1.2751        .20674E-07** at limit **
   3  norm          18.942        6.0421       -.26480E-07    .68964E-04
   4  Prefactor     2.1053        3.2900       -.16596E-05   -.19246E-03
   5  Prefactor     5.7197        3.1570        .14722E-05    .11727E-03
   6  Prefactor     1.7997        1.8375        .52382E-06   -.13964E-02
   7  norm          .35187        .25239       -.23706E-07   -.27846E-03
   8  norm          4.5025        4.3075       -.93438E-07   -.40346E-04
   9  Prefactor     3.7076        10.913       -.79707E-07    .65028E-05
  10  Prefactor     .10000E-03    4.6657        .19326E-05** at limit **
  11  Prefactor     .10000E-03    15.792       -.22180E-05** at limit **
  12  Prefactor     .10000E-03    31.528        .31581E-06** at limit **
  13  Prefactor     36.973        61.948        .48511E-05    .23110E-04
  14  Prefactor     .10000E-03    14.883       -.25738E-05** at limit **
  15  Prefactor     .10000E-03    15.584       -.24474E-05** at limit **
  16  norm          .65709        5.7236       -.33145E-05   -.43113E-04
  17  Prefactor     .10000E-03    6.2050       -.27761E-05** at limit **
  18  Prefactor     .10000E-03    16.997        .17112E-06** at limit **
  19  norm          .10007E-03    2.5191        .52347E-06** at limit **
  20  norm          6.8027        4.1773       -.23494E-06    .28402E-03
  21  norm          .10000E-03    4.3411       -.93849E-06** at limit **
  22  norm          16.385        15.736       -.16020E-06   -.19338E-04
  23  norm          38.746        11.541        .36316E-07   -.25421E-04
  24  Prefactor     .10000E-03    20.164        .97732E-05** at limit **
  25  norm          .10000E-03    4.2218       -.20970E-06** at limit **
  26  Prefactor     .10000E-03    7.4660        .28545E-05** at limit **
  27  Prefactor     .10000E-03    32.438       -.61986E-05** at limit **
  28  Normalizat    .73295        .19206       -.18383E-06    .59087E-04
  29  Prefactor     1.2337        .19078       -.64041E-07    .64865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.529903
  Prefactor  = 0.0001
  norm       = 18.9419
  Prefactor  = 2.10532
  Prefactor  = 5.7197
  Prefactor  = 1.79967
  norm       = 0.351867
  norm       = 4.50248
  Prefactor  = 3.70762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.657093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100069
  norm       = 6.80275
  norm       = 0.0001
  norm       = 16.3855
  norm       = 38.7463
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.732953
  Prefactor  = 1.23373
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.213     FROM HESSE     STATUS=OK           551 CALLS     4240 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52990        2.9180        .24091E-03   -1.5562    
   2  Prefactor     .10000E-03    1.2815        .80966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.942        6.0119        .86037E-04   -1.4837    
   4  Prefactor     2.1053        3.2659        .14272E-03   -1.5418    
   5  Prefactor     5.7197        3.1590        .89622E-04   -1.5230    
   6  Prefactor     1.7997        5.9902        .15250E-02   -1.5440    
   7  norm          .35187        .24678        .29493E-04   -1.5589    
   8  norm          4.5025        4.4294        .14274E-03   -1.5284    
   9  Prefactor     3.7076        10.922        .20977E-03   -1.5323    
  10  Prefactor     .10000E-03    4.6660        .15491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.973        62.005        .65915E-04   -1.4491    
  14  Prefactor     .10000E-03    15.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65709        5.8049        .33067E-03   -1.5546    
  17  Prefactor     .10000E-03    6.2201        .17886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10007E-03    31.563        .22132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.8027        4.1383        .11089E-03   -1.5186    
  21  norm          .10000E-03    4.3473        .14903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.385        15.719        .98942E-04   -1.4898    
  23  norm          38.746        11.550        .64391E-04   -1.4462    
  24  Prefactor     .10000E-03    20.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.2318        .14744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.4802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    32.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73295        .22116        .29778E-03   -1.0261    
  29  Prefactor     1.2337        .22366        .24416E-03   -.85299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96518e-09
Minuit parameter uncertainties:
  1  2.48692
  2  1.51567e-07
  3  6.0121
  4  3.26614
  5  3.15908
  6  5.99222
  7  0.246778
  8  4.42969
  9  10.9284
  10  7.15838e-06
  11  5.08336e-06
  12  3.33325e-05
  13  62.1137
  14  1.02835e-05
  15  6.45948e-05
  16  3.9063
  17  5.8683e-06
  18  9.31741e-05
  19  0.00294348
  20  4.13843
  21  2.16317e-05
  22  15.723
  23  11.5504
  24  2.68244e-05
  25  8.72586e-08
  26  7.43072e-06
  27  1.22477e-05
  28  0.221426
  29  0.223832
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.028e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.234e+00  2.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  7.330e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 8.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991625/likelihoodResults_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.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): 102
logL (Free Index) = 5404.21352054
delta logL = -0.000312656278766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5404.21320563
delta logL = 2.2537778932e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5402.372     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      305 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13040E-02    .12307E-01    .39442E-03** at limit **
   2  Index         6.1611        1.8653        .69501E-01   -.29738E-05
   3  Normalizat    .56944        .55468E-01    .75571E-01   -.20052E-03
   4  Prefactor     1.3393        .57666E-01    .53302E-01   -.26190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00130396
  Index      = 6.1611
  Normalizat = 0.569441
  Prefactor  = 1.33934
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.372     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      338 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13040E-02    .23798E-01    .15942E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.1611        2.8172        .28274E-02    .23436    
   3  Normalizat    .56944        .18056        .33459E-03   -1.0930    
   4  Prefactor     1.3393        .18311        .23564E-03   -.82145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4906e-10
Minuit parameter uncertainties:
  1  0.0107055
  2  3.00469
  3  0.180747
  4  0.183197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991625': 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): 102
logL (Free Index) = 5402.37193638
delta logL = 1.84127150972

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.304e-03  1.071e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  6.161e+00  3.005e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.339e+00  1.832e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  5.694e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.18
Ra Dec: 193.637 22.181
Photon Index (Free Index): 6.16 +/- 3.00
Photon Flux (Free Index): 1.46e-07 +/- 8.50e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.11e-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/991625/cmap_HighResolution_576547201_576806401_4FGL_J1254.5+2210_daily_bin1301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='1.84e+00', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-06 09:32:03.685985', photon_index_error2='3.00', photon_index2='6.16', ts='-0.00', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='8.73e-08', energy_flux_error2='1.11e-05', EG='0.73', time_epoch_completed='1630945923.69', return_code='0', job_id='991625', GAL2='1.34', EG2='0.57', return_code2='102', photon_flux_error2='8.50e-08', ts2='4.18', photon_index='2.09' WHERE bin_id='1301' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:32:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 991625: <4FGL_J1254.5+2210_daily_bin1301> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1301> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:16:03 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:16:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:16:05 2021
Terminated at Mon Sep  6 09:32:06 2021
Results reported at Mon Sep  6 09:32:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1301 193.637 22.1808 576547201 576806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            963 sec.

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

