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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1295
RA = 193.637, Dec = 22.1808
tmin = 574992001, tmax = 575251201
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='991615', job_status='RUN', time_executed='2021-09-06 09:18:38.516256', time_epoch_executed='1630945118.52' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991615/ft1_4FGL_J1254.5+2210_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991615/ft1_4FGL_J1254.5+2210_daily_bin1295.fits outfile=/scratch/kocevski/991615/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1295.fits ra=193.637 dec=22.1808 rad=12.0 tmin=574992001.0 tmax=575251201.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.32
user 5.05
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.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/991615/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1295.fits evtable="EVENTS" outfile="/scratch/kocevski/991615/ft1_filtered_4FGL_J1254.5+2210_daily_bin1295.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991615/ft1_filtered_4FGL_J1254.5+2210_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/991615/ltcube_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.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/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits
.....................!
real 12.52
user 12.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991615/ft1_filtered_4FGL_J1254.5+2210_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/991615/ltcube_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.fits outfile=/scratch/kocevski/991615/expmap_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.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/991615/ltcube_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.fits
.....................!
real 190.51
user 185.03
sys 5.06

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/991615/ft1_filtered_4FGL_J1254.5+2210_daily_bin1295.fits scfile=/scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits outfile=/scratch/kocevski/991615/cmap_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991615/ft1_filtered_4FGL_J1254.5+2210_daily_bin1295.fits scfile=/scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits outfile=/scratch/kocevski/991615/cmap_HighResolution_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991615/ft1_filtered_4FGL_J1254.5+2210_daily_bin1295.fits', '/scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits', expMap='/scratch/kocevski/991615/expmap_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.fits', expCube='/scratch/kocevski/991615/ltcube_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991615/Model_4FGL_J1254.5+2210_daily_bin1295.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/991615/ft1_filtered_4FGL_J1254.5+2210_daily_bin1295.fits
Spacecraft file(s): /scratch/kocevski/991615/ft2_4FGL_J1254.5+2210_daily_bin1295.fits
Exposure map: /scratch/kocevski/991615/expmap_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.fits
Exposure cube: /scratch/kocevski/991615/ltcube_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991615/Model_4FGL_J1254.5+2210_daily_bin1295.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) = 5461.98628241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .62991E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .35425E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.120       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15439E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.810       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3114       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5008       1.0000         .10000E-03   10000.    
    21 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8194       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.958       1.0000         .10000E-03   10000.    
    25 'norm      '    7.7829       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.869       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.831       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0801       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0261       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=   5461.982     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3679 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .71921        .36032E-08** at limit **
   2  Prefactor     .10000E-03    1.0997       -.24894E-07** at limit **
   3  norm          6.5479        3.3715        .33744E-07    .50993E-04
   4  Prefactor     5.6437        2.7450        .82233E-07    .44475E-04
   5  Prefactor     3.4219        2.2068        .26192E-07   -.51120E-04
   6  Prefactor     .10000E-03    4.7540        .13547E-05** at limit **
   7  norm          .63031E-01    .18695       -.11043E-06   -.29928E-02
   8  norm          .10001E-03    2.5147       -.33028E-07** at limit **
   9  Prefactor     .10000E-03    5.5242       -.35147E-06** at limit **
  10  Prefactor     .10000E-03    2.6742       -.49040E-06** at limit **
  11  Prefactor     14.967        23.699       -.14790E-05   -.86557E-05
  12  Prefactor     46.118        56.895       -.23092E-05   -.13672E-05
  13  Prefactor     .10003E-03    156.77       -.90489E-05** at limit **
  14  Prefactor     .10000E-03    2.6819        .60144E-06** at limit **
  15  Prefactor     10.799        11.768        .93176E-05    .18014E-04
  16  norm          .10000E-03    1.2614        .59670E-07** at limit **
  17  Prefactor     .10000E-03    4.5417       -.92515E-06** at limit **
  18  Prefactor     .10000E-03    6.8379       -.81384E-06** at limit **
  19  norm          5.3115        3.8514        .17415E-06   -.10118E-03
  20  norm          1.5040        2.2656       -.85606E-07   -.33967E-03
  21  norm          .10000E-03    6.8386        .28262E-06** at limit **
  22  norm          .10000E-03    8.4480        .68828E-06** at limit **
  23  norm          2.8195        3.4933       -.18622E-05   -.40854E-04
  24  Prefactor     24.959        28.852       -.11822E-06   -.31419E-05
  25  norm          7.7836        7.5240        .19707E-06   -.84209E-04
  26  Prefactor     11.867        19.381        .32194E-05   -.22442E-04
  27  Prefactor     16.831        18.649        .56353E-06   -.95244E-05
  28  Normalizat    1.0801        .18889       -.32062E-06    .13268E-04
  29  Prefactor     1.0261        .19335       -.13063E-05    .37348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.54792
  Prefactor  = 5.64366
  Prefactor  = 3.42187
  Prefactor  = 0.0001
  norm       = 0.0630311
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9666
  Prefactor  = 46.118
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 10.7993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.31151
  norm       = 1.50396
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.81948
  Prefactor  = 24.9591
  norm       = 7.78358
  Prefactor  = 11.8666
  Prefactor  = 16.8308
  Normalizat = 1.08007
  Prefactor  = 1.02606
 **********
 **   18 **HESSE 
 **********

 FCN=   5461.982     FROM HESSE     STATUS=OK           559 CALLS     4238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .72215        .61201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.1171        .75662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5479        3.3782        .91516E-04   -1.5196    
   4  Prefactor     5.6437        2.7504        .80225E-04   -1.5233    
   5  Prefactor     3.4219        2.2028        .83929E-04   -1.5338    
   6  Prefactor     .10000E-03    4.8202        .15725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .63031E-01    .19440        .50853E-03   -1.5658    
   8  norm          .10001E-03    21.490        .22415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5333        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6757        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.967        23.689        .10354E-03   -1.4934    
  12  Prefactor     46.118        56.894        .59040E-04   -1.4349    
  13  Prefactor     .10003E-03    161.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6897        .11819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.799        11.640        .12186E-03   -1.5051    
  16  norm          .10000E-03    1.2644        .81046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5691        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3115        3.8491        .11902E-03   -1.5247    
  20  norm          1.5040        2.2146        .13083E-03   -1.5463    
  21  norm          .10000E-03    6.9768        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.4630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8195        3.4843        .14819E-03   -1.5372    
  24  Prefactor     24.959        28.857        .80183E-04   -1.4708    
  25  norm          7.7836        7.5065        .14374E-03   -1.5150    
  26  Prefactor     11.867        19.325        .11628E-03   -1.5019    
  27  Prefactor     16.831        18.630        .97627E-04   -1.4887    
  28  Normalizat    1.0801        .21217        .23807E-03   -.90394    
  29  Prefactor     1.0261        .21978        .25857E-03   -.91866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18471e-09
Minuit parameter uncertainties:
  1  1.03998e-06
  2  2.60652e-06
  3  3.37833
  4  2.75047
  5  2.20288
  6  1.18605e-05
  7  0.1944
  8  0.00104466
  9  7.65844e-06
  10  1.41649e-06
  11  23.7036
  12  56.9609
  13  0.00417712
  14  2.39662e-06
  15  11.6425
  16  2.14867e-06
  17  3.36645e-05
  18  2.77452e-06
  19  3.84924
  20  2.21469
  21  1.55557e-05
  22  9.21109e-06
  23  3.48453
  24  28.8728
  25  7.50743
  26  19.3347
  27  18.636
  28  0.212336
  29  0.219972
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.397e-06  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.026e+00  2.200e-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:  1.080e+00  2.123e-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: 5.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991615/likelihoodResults_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.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) = 5461.98405571
delta logL = -0.00175796403801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5461.98229773
delta logL = 1.70257408172e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0828       1.0000          .0000       10.000    
     3 'Normalizat'    1.0801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0261       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=   5461.982     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.029        .90712E-02** at limit **
   2  Index         2.0765        8.8032        .50000        .18814E-04
   3  Normalizat    1.0801        .20660E-01    .38875E-01    .74896E-05
   4  Prefactor     1.0261        .22036E-01    .41582E-01    .90433E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0765
  Normalizat = 1.08007
  Prefactor  = 1.02606
 **********
 **   18 **HESSE 
 **********

 FCN=   5461.982     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      231 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    499.48        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0765        5.9804        .50000       -.62451    
   3  Normalizat    1.0801        .92764E-01    .23807E-03   -.90394    
   4  Prefactor     1.0261        .98900E-01    .25857E-03   -.91866    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.36712e-08
Minuit parameter uncertainties:
  1  3.21986e-05
  2  55.6851
  3  0.0927782
  4  0.0989179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991615': 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) = 5461.98229769
delta logL = 5.93518052483e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.220e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.077e+00  5.569e+01  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.026e+00  9.892e-02  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:  1.080e+00  9.278e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

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/991615/cmap_HighResolution_574992001_575251201_4FGL_J1254.5+2210_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2021-09-06 09:31:15.821313', job_id='991615', GAL2='1.03', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630945875.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1295' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 991615: <4FGL_J1254.5+2210_daily_bin1295> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1295> 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) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:16:04 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:04 2021
Terminated at Mon Sep  6 09:31:16 2021
Results reported at Mon Sep  6 09:31:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1295 193.637 22.1808 574992001 575251201 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 :                                   753.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

